-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…1669) * feature: New endpoint to return total counters for subject (M2- 7889) * Refactoring to better understading code * Improvments on tests * Fix change in old endpoint response * Fix duplicate acitivity ids and activities counts * Update src/apps/activities/router.py Co-authored-by: Farmer Paul <[email protected]> * Change to union to be more clear * fix: refactory code to count correctly * fix lint * Refactoring code * Fix in related endpoint * Filtering out soft deleted subjects in submissions * fix: use internal classes * fix: counting submissions when have soft deleted subjects * fix lint * Add counting for deleted activities * Filtering out deleted subject for submissions queries to avoid wroing activity listing * Update src/apps/activities/api/activities.py Co-authored-by: Farmer Paul <[email protected]> * Update src/apps/activities/api/activities.py Co-authored-by: Farmer Paul <[email protected]> * Removing limited account from auto-assigned activites * Rename endpoint to Metadata * fix: use `submit_id`s for flow submission counts * fix: exclude flows that have not been completed For all the PDP queries, a "submission" for a flow should only be **completed** ones. A flow that has only been partially completed (say, only the 1st activity of 5 activities have been submitted) should not count towards having any submissions, and thus should NOT be: - listed on the PDP pages for the associated subjects - included in the tallying of activities/flows for that tab - included in the submissions count on the flow level within each tab - included in that flow's expanded view's submissions counts * Add more tests --------- Co-authored-by: Farmer Paul <[email protected]>
- Loading branch information
1 parent
7def9b1
commit f6990e6
Showing
15 changed files
with
1,146 additions
and
555 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.