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

Refactor/convert groupfolders #633

Merged
merged 11 commits into from
Dec 23, 2022
Merged

Refactor/convert groupfolders #633

merged 11 commits into from
Dec 23, 2022

Conversation

zak39
Copy link
Collaborator

@zak39 zak39 commented Dec 9, 2022

I decommented the route to convert a groupfolder to a workspace.

I removed groups from advanced permisions when we convert a groupfolder to a workspace.
I took the opportunity to remove some unnecessary code.

zak39 added 2 commits December 9, 2022 11:18
I decommented the route to convert a groupfolder to a workspace.

Signed-off-by: Baptiste Fotia <[email protected]>
I removed groups from advanced permisions when we convert a groupfolder
to a workspace.

I took the opportunity to remove some unnecessary code.

Signed-off-by: Baptiste Fotia <[email protected]>
@zak39 zak39 added backend Modification related to backend frontend Modification related to frontend refactor labels Dec 9, 2022
@zak39 zak39 self-assigned this Dec 9, 2022
I created the new transfertUsersToUserGroup() method to transfer the users to U-<id>.
One more, I splited code snippets into several files to simplefy the
functions and make it easier to read.

Signed-off-by: Baptiste Fotia <[email protected]>
I corrected the spelling mistake "transfert" to "transfert".

Signed-off-by: Baptiste Fotia <[email protected]>
I refactored the code to transfer users into User group (U-<id>) and I created a new feature to import the users into Space Manager groups.

Signed-off-by: Baptiste Fotia <[email protected]>
Don't check if a group has a spaceId as suffix (ex: DRH-2 or Foo-3).
But, can delete the "Bar" group, for example.

Signed-off-by: Baptiste Fotia <[email protected]>
I created a new service to get all group manager type.

Signed-off-by: Baptiste Fotia <[email protected]>
I translated the feature to convert all groupfolders into workspaces.

Signed-off-by: Baptiste Fotia <[email protected]>
I tested the transferUsersToUserGroup function :
- if the return of the function is object type
- if the return is not undefined

Signed-off-by: Baptiste Fotia <[email protected]>
Signed-off-by: Baptiste Fotia <[email protected]>
We can rename a group imported via converting without problem.

Signed-off-by: Baptiste Fotia <[email protected]>
@zak39 zak39 merged commit 7cdfe66 into main Dec 23, 2022
@zak39 zak39 deleted the refactor/convert-groupfolders branch June 30, 2023 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Modification related to backend frontend Modification related to frontend refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant