Content
View differences
Updated by Oliver Günther over 5 years ago
* The autocompleter completes for users/groups/placeholders
* If you have the permission to add members to a project there is another option always visible "Invite member to project ..."
#### Open
* On which autocompleters should this option exist? (see #35598)
* Assignee
* Responsible
* User custom field
* On work package
* On project
* ~~Watcher~~ watchers can only receive actual users Watcher
* OAuth
* ... (others I don't know right now)
* How to get user's permissions in the front (create/add/invite users...):
1. Creating users (not members) is a different permission but from my understanding of the desired behaviour of the autocompleter, we will need to have the permission for creating members within the autocompleter and the permission to create users within the modal. For creating users I still have to find a good way. There is currently no form end point for users so we might be missing an endpoint as of now. So for every existing users we might want to add to the project as a member we are covered. For inviting/creating a new users we might have to improve the backend.
2. IDK. If there is an extra permission for adding placeholder users to the project as a member, we probably need to trigger a different request. Let’s see after todays round of requirements.
#### Notes
* To check wether the current user can add members to the project, it’s easiest to call
[`http://localhost:3000/api/v3/memberships/available_projects?filters=[{`](http://localhost:3000/api/v3/memberships/available_projects?filters=%5B%7B)`"id": { "operator": "=", "values": ["12"] }}]` Where the id is the id (not the identifier) of the project. There is also an identifier filter if that is more convenient.
*
* If you have the permission to add members to a project there is another option always visible "Invite member to project ..."
#### Open
* On which autocompleters should this option exist? (see #35598)
* Assignee
* Responsible
* User custom field
* On work package
* On project
* ~~Watcher~~ watchers can only receive actual users
* OAuth
* ... (others I don't know right now)
* How to get user's permissions in the front (create/add/invite users...):
1. Creating users (not members) is a different permission but from my understanding of the desired behaviour of the autocompleter, we will need to have the permission for creating members within the autocompleter and the permission to create users within the modal. For creating users I still have to find a good way. There is currently no form end point for users so we might be missing an endpoint as of now. So for every existing users we might want to add to the project as a member we are covered. For inviting/creating a new users we might have to improve the backend.
2. IDK. If there is an extra permission for adding placeholder users to the project as a member, we probably need to trigger a different request. Let’s see after todays round of requirements.
#### Notes
* To check wether the current user can add members to the project, it’s easiest to call
[`http://localhost:3000/api/v3/memberships/available_projects?filters=[{`](http://localhost:3000/api/v3/memberships/available_projects?filters=%5B%7B)`"id": { "operator": "=", "values": ["12"] }}]` Where the id is the id (not the identifier) of the project. There is also an identifier filter if that is more convenient.
*