Content
View differences
Updated by Marc Alcobé about 3 years ago
**As** a **project member** (includes all roles)
**I want to** work with a full automatically managed _project folder_
**so that** no manual tasks are needed to keep it operational at all time.
## **Acceptance criteria**
* [ ] The system must detect all errors for the _project folder._
* [ ] The system must repair all occurring errors automatically.
* [ ] New **project members** are automatically inserted into groups.
* [ ] When a **project member** is removed from a project they loose all permissions on the _project folder_.
* [ ] In order to allow this automation, an extra step of both Nextcloud and OpenProject setup will be added in order to select if the users want the "Automatically managed folders" active or not. (see visuals)
* [ ] In case the user selects to use the "Automatic managed folders" a new step (number 5) will be added to Nextcloud in order to see the application password the admin need to copy to OpenProject.
* [ ] As the setup steps are now 4 or 5 the action on the button of the step 3 also changes. (see visuals)
* [ ] The user should be able to deactivate the "Automatically managed folders" or reset this password once all the process is completed. (see visual)
## Hints
* Most probably this can only be achieved by having a storage provider that has a flexible enough API (e.g. Nextcloud).
* Consider debounce for reducing queue size for permission syncing task.
* The Nextcloud part of the process is specified in <mention class="mention" data-id="46179" data-type="work_package" data-text="#46179">#46179</mention>.
## Additional Information
Triggers:
* Groups
* Add user to group
* Removing user from group
* Project member
* User becomes member of a project
* Group becomes member of a project
* Removing project memberships (user and group)
* Roles
* Created
* Deleted
* Edited
* Project
* Activate a storage on a project
* Deactivate a storage on a project
* Storage
* Remove storage from OpenProject (before delete hook)
ToDo: move these out to a new WP
* Map Nextcloud permissions to OpenProject
* Check for defaults for permissions
## Visuals
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52516/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52520/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52522/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52517/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52518/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52525/content"> src="/api/v3/attachments/52525/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52528/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52524/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52527/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52519/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52521/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52530/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52526/content">
##
## Figma
https://www.figma.com/file/gtLQfPe09X7XugAH8L7dTy/Nextcloud-Integration?node-id=3557%3A102571&t=AslZQbmqBNi3drq4-4
**I want to** work with a full automatically managed _project folder_
**so that** no manual tasks are needed to keep it operational at all time.
## **Acceptance criteria**
* [ ] The system must detect all errors for the _project folder._
* [ ] The system must repair all occurring errors automatically.
* [ ] New **project members** are automatically inserted into groups.
* [ ] When a **project member** is removed from a project they loose all permissions on the _project folder_.
* [ ] In order to allow this automation, an extra step of both Nextcloud and OpenProject setup will be added in order to select if the users want the "Automatically managed folders" active or not. (see visuals)
* [ ] In case the user selects to use the "Automatic managed folders" a new step (number 5) will be added to Nextcloud in order to see the application password the admin need to copy to OpenProject.
* [ ] As the setup steps are now 4 or 5 the action on the button of the step 3 also changes. (see visuals)
* [ ] The user should be able to deactivate the "Automatically managed folders" or reset this password once all the process is completed. (see visual)
## Hints
* Most probably this can only be achieved by having a storage provider that has a flexible enough API (e.g. Nextcloud).
* Consider debounce for reducing queue size for permission syncing task.
* The Nextcloud part of the process is specified in <mention class="mention" data-id="46179" data-type="work_package" data-text="#46179">#46179</mention>.
## Additional Information
Triggers:
* Groups
* Add user to group
* Removing user from group
* Project member
* User becomes member of a project
* Group becomes member of a project
* Removing project memberships (user and group)
* Roles
* Created
* Deleted
* Edited
* Project
* Activate a storage on a project
* Deactivate a storage on a project
* Storage
* Remove storage from OpenProject (before delete hook)
ToDo: move these out to a new WP
* Map Nextcloud permissions to OpenProject
* Check for defaults for permissions
## Visuals
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52516/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52520/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52522/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52517/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52518/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52525/content">
https://www.figma.com/file/gtLQfPe09X7XugAH8L7dTy/Nextcloud-Integration?node-id=3557%3A102571&t=AslZQbmqBNi3drq4-4