Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: OPTIC-391: Tasks rendered incomplete by low agreement should not…
… count on project cards (HumanSignal#5684) ### PR fulfills these requirements - [X] Commit message(s) and PR title follows the format `[fix|feat|ci|chore|doc]: TICKET-ID: Short description of change made` ex. `fix: DEV-XXXX: Removed inconsistent code usage causing intermittent errors` - [X] Tests for the changes have been added/updated (for bug fixes/features) - [ ] Docs have been added/updated (for bug fixes/features) - [X] Best efforts were made to ensure docs/code are concise and coherent (checked for spelling/grammatical errors, commented out code, debug logs etc.) - [X] Self-reviewed and ran all changes on a local instance (for bug fixes/features) #### Change has impacts in these area(s) _(check all that apply)_ - [ ] Product design - [ ] Backend (Database) - [X] Backend (API) - [ ] Frontend ### Describe the reason for change #### What Given an enterprise user is utilizing the Low Agreement strategy to assign tasks to annotators, this was not correctly reflecting in the project cards for Admin/Manager/Owner often having a higher number reported than it should be. #### Why The total completed tasks were not accounting for the low agreement aspect, and reporting just the base raw `is_labeled` of the project based tasks. #### How By refactoring the ProjectManager to be extensible, this allowed the annotated fields to be replaced at a granular level. In this case only `finished_task_number` required a differing calculation. The implementation of which can be seen in the parent PR to this one, along with tests.
- Loading branch information