Skip to content

Refacto User & Organization - #405

Merged
mRoca merged 9 commits into
user-system-refactofrom
issues/338
Nov 4, 2020
Merged

Refacto User & Organization#405
mRoca merged 9 commits into
user-system-refactofrom
issues/338

Conversation

@vincentchalamon

@vincentchalamon vincentchalamon commented May 14, 2020

Copy link
Copy Markdown
Contributor

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 requested review from mRoca and nikophil May 19, 2020 10:35
@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
Comment thread src/Entity/User.php
* @ORM\ManyToMany(targetEntity="App\Entity\Organization", inversedBy="admins")
* @ORM\OrderBy({"name"="ASC"})
*/
public Collection $organizations;

Copy link
Copy Markdown
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

mRoca commented May 27, 2020

Copy link
Copy Markdown
Contributor

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 <mroca.dh@gmail.com>
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 <mroca.dh@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Asset creation from parent organization buggy User system refacto Add functional test for all routes Add organization planning display tests

2 participants