Make resource presets configurable per project
- Dominant language
- Python
- Stars
- 670
- Forks
- 183
- Avg merge
- 17h 7m
- Merged PRs (30d)
- 358
Description
Currently resource presets do not have any visibility settings.
Let's make them per-project items.(resource preset entry : project = N : 1)For now, let's allow editing this per-project resource preset only to superadmins and domain-admins.
Once we introduce the proper RBAC, any user who has the `project_admin` role on a project will be able to edit them.
## Migration
After adding the project foreign key to the resource preset table with the default value to the default project (or any first project entry found), replicate all presets to all existing projects. If there is no project configured at all, remove them after dumping the rows to the console output.
## Extra
#1633 may be implemented as a project-level configuration.
JIRA Issue: BA-171
Contributor guide
Assessment
This issue has not been assessed yet.