Giter VIP home page Giter VIP logo

ccdnuserprofilebundle's People

Contributors

boonkerz avatar maartenjacobs avatar reecefowell avatar waffle-with-pears avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

arthurpetit

ccdnuserprofilebundle's Issues

Users with numeric usernames

The UserModel defines a generic find-method which can be used to find profiles on id as well as username. The issue is that it needs to decide whether to find on either of these criteria, and it can do so wrongly.

The easiest example is a user with the name 0xbad1dea. When entered as a parameter to the find method, the method will throw a tantrum. The same can be achieved with users with integer names.

Personally, I'd change the find method to accept only one criteria, but people might be relying on URLs such as /en/profile/tom to return something.

Docs are out-of-date

The documentation mentions Symfony 2.1.x is required, but composer.json requires 2.4.*. This requirement is mentioned in README.md and in Resources/doc/index.md

KnpPaginatorBundle dependency

Whilst installing this bundle, I received the error:

[Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]               
The service "ccdn_user_profile.gateway.user" has a dependency on a non-existent service  
"knp_paginator".

Although the paginator bundle is a dependency, I think it needs to be registered as a bundle in app/AppKernel.php before it registers its services

Unwanted creation of profiles

I've noticed some odd behaviour in the UserModel, whilst looking to improve code coverage: whenever User entities are retrieved through the UserModel, the retrieval method (!) checks if the User has a profile and, if not, creates the profile on the fly.
This seems like unrelated behaviour to the UserModel, and should really be removed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.