IA-3205 Backend for multi-projects #1557
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backend for multi-projects.
Related JIRA tickets : IA-3205
Changes
This PR is all about filtering.
Users can be associated with projects (
user.iaso_profile.projects
):This PR uses this information to filter front-end lists.
When a user is linked to one or more projects:
If the user has no projects, he will continue to see all the projects linked to his account.
How to test
These lists should be filtered on user's projects by default (if any):
The API endpoint used for filtering projects should also filter on the user's projects by default (if any):