IA-3893 Extract plugins permissions from main codebase
Currently plugins permissions are in the main codebase in hat/menupermissions. This is an attempt to extract them into the plugin codebase without breaking everything and provide an example and the mechanisms to do it for other plugins like trypelim.
Related JIRA tickets : IA-3893
Self proofreading checklist
- [x] Did I use eslint and black formatters
- [x] Is my code clear enough and well documented
- [x] Are my typescript files well typed
- [x] New translations have been added or updated if new strings have been introduced in the frontend
- [x] My migrations file are included
- [x] Are there enough tests
- [x] Documentation has been included (for new feature)
Doc
See in ...
Changes
- Extract POLIO permissions from
hat/menupermissions - Put into
POLIO_PLUGIN_ROOT/permissions.py - Create a new Permissions "fake" model for Polio.
- Create a "fake" migration for this model.
- Create a custom migration to change all the permissions from the old one to new one for each user.
- Modifications to hat/menupermissions to load pernissions from plugins.
How to test
Nothing should change for the user and all polio pages should still work normally.
Follow the Conventional Commits specification
The merge message of a pull request must follow the Conventional Commits specification.
This convention helps to automatically generate release notes.
Use lowercase for consistency.
fix: empty instance pop up
Refs: IA-3665
Note that the Jira reference is preceded by a line break.
Both the line break and the Jira reference are entered in the Add an optional extended description… field.