Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refacto User & Organization #405

Merged
merged 9 commits into from
Nov 4, 2020
Merged

Refacto User & Organization #405

merged 9 commits into from
Nov 4, 2020

Conversation

vincentchalamon
Copy link
Contributor

@vincentchalamon vincentchalamon commented May 14, 2020

Fixes #338 and #360 and #320 and #284

@vincentchalamon vincentchalamon self-assigned this May 14, 2020
@vincentchalamon vincentchalamon changed the title Refacto User login [WIP] Refacto User login May 14, 2020
@vincentchalamon vincentchalamon changed the title [WIP] Refacto User login WIP: Refacto User login May 14, 2020
@vincentchalamon vincentchalamon force-pushed the issues/338 branch 13 times, most recently from 3aac121 to d8f6123 Compare May 18, 2020 18:53
@vincentchalamon vincentchalamon force-pushed the issues/338 branch 4 times, most recently from 443779d to 4dbef0b Compare May 19, 2020 10:04
@vincentchalamon vincentchalamon marked this pull request as ready for review May 19, 2020 10:04
@vincentchalamon vincentchalamon changed the title WIP: Refacto User login Refacto User login May 19, 2020
@vincentchalamon vincentchalamon force-pushed the issues/338 branch 4 times, most recently from 5e98f09 to 9251bbd Compare May 19, 2020 14:31
@vincentchalamon vincentchalamon changed the title Refacto User login Refacto User May 20, 2020
@vincentchalamon vincentchalamon changed the title Refacto User Refacto User & Organization May 20, 2020
* @ORM\ManyToMany(targetEntity="App\Entity\Organization", inversedBy="admins")
* @ORM\OrderBy({"name"="ASC"})
*/
public Collection $organizations;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this property name is clear enough. What about $managedOrganizations or something else ? Imho $user->addOrganization() is not explicit enough

@mRoca
Copy link
Contributor

mRoca commented May 27, 2020

TODO check if the nbUsers is relevant

@mRoca mRoca merged commit 37e57d9 into user-system-refacto Nov 4, 2020
@mRoca mRoca deleted the issues/338 branch November 4, 2020 12:46
mRoca added a commit that referenced this pull request Nov 4, 2020
* Prepare Behat scenarios for User system refacto (#339)

* Refacto User login

* Add reset password

* Add Organization promote/revoke User

* Add ROLE_SUPER_ADMIN

* Add User impersonification for super-admin only

* Remove useless ROLE_VOLUNTEER

* wip

* Fix PHP-CS

Co-authored-by: Michel Roca <[email protected]>
mRoca added a commit that referenced this pull request Nov 13, 2020
* Prepare Behat scenarios for User system refacto (#339)

* Refacto User login

* Add reset password

* Add Organization promote/revoke User

* Add ROLE_SUPER_ADMIN

* Add User impersonification for super-admin only

* Remove useless ROLE_VOLUNTEER

* wip

* Fix PHP-CS

Co-authored-by: Michel Roca <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants