-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: OPTIC-139: [M1] Workflow Automation: Task Assignment (#5153)
* feat: OPTIC-251: backend functionality to support low agreement threshold for completeness and auto-assignment to low agreement tasks * Add check for already prioritized task * Add initializer * Refactor max_assignable_annotators to max_additional_annotators_assignable * Linter fix * Fix overlap_with_agreement_threshold so its conditional on the current agreement * fix check which can have None values for agreement * Update queries to account for completeness status when agreement threshold settings are set * Update annotate_completed_at to allow for agreement threshold queries on lse only * Code for get_annotation_agreement which is a singular way to get agreement - we dont need it yet * Fix completeness check on additional annotators strategy to take max additional annotators setting into account * Update query to account for case where additional annotators are needed * Fix index error on empty queryset * Fix concurrent annotations being allowed on tasks which don't meet the agreement threshold * Improve to remove second implicit query * Linter fixes --------- Co-authored-by: Andreas Divaris <[email protected]> Co-authored-by: dredivaris <[email protected]>
- Loading branch information
1 parent
0092831
commit ef18d07
Showing
5 changed files
with
130 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters