You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Moved permission checks to the BaseModel class
* Refactor Job model permission checks to include job type for finer-grained control
* Added fine-grained permissions for each job type
* Modified roles to use the fine-grained job permissions
* Updated views to use the new permission checks
* Removed old job permissions from tests
* Added permission for processing single source image
* Changed PermissionError to PermissionDenied
* tests: Added tests for fine-grained job run permission
* Move process single source image permission from source image to job model
* Remove process_sourceimage permission from job details response
* Added type hints
* Modified process single image permission name
* Changed tests to check for run single image permission in the job details response
* chore: update FE permission handling for processing single captures
* chore: update FE permission handling to use single run permission
* Cleaned up permission check classes defined for each model and used a generic permission check instead
* Cleaned up BaseModel permission checks
* Returned run_single_image_ml_job permission with the source image object
* Implemented custom permission checks for the identification model to handle the delete action.
* Removed generic job run, cancel and retry permissions
* Revoked ml job run permission
* Added a migration to delete deprecated job permissions
* Added tests to make sure that job permissions are returned correctly to the front-end
* Changed permission name for run single image
* Added tests for single image ml job
* Use logger.info instead of print in migration for deleting deprecated permissions
* Merged migrations
* Granted basic members create_job permission
* Modified tests to allow basic members to create a job
---------
Co-authored-by: Anna Viklund <annamariaviklund@gmail.com>
Co-authored-by: Michael Bunsen <notbot@gmail.com>
0 commit comments