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.
This pull request includes several changes to enhance the permission checks and improve the query filtering logic in various parts of the codebase. The most important changes include updating the Docker image version, adding superuser checks to permission methods, and incorporating the
Q
object for complex queries.Permission Enhancements:
has_permission
methods across multiple files, ensuring superusers have access. (label_studio/core/api_permissions.py
,label_studio/data_export/mixins.py
,label_studio/data_import/models.py
,label_studio/data_manager/models.py
,label_studio/io_storages/base_models.py
,label_studio/labels_manager/models.py
,label_studio/ml/models.py
,label_studio/organizations/mixins.py
,label_studio/projects/models.py
) [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]Query Filtering Improvements:
Q
object to handle complex query filtering based on user roles and permissions. (label_studio/data_export/api.py
,label_studio/data_manager/api.py
,label_studio/organizations/serializers.py
,label_studio/projects/api.py
) [1] [2] [3] [4]Docker Image Update:
13-alpine
to17-alpine
indocker-compose.yml
to ensure compatibility and leverage new features. (docker-compose.yml
)Import Statements:
Q
objects to support the new query filtering logic. (label_studio/data_export/api.py
,label_studio/data_manager/api.py
,label_studio/organizations/serializers.py
,label_studio/projects/api.py
) [1] [2] [3] [4]Project and Task Management:
label_studio/data_manager/managers.py
,label_studio/projects/api.py
,label_studio/projects/models.py
) [1] [2] [3]