Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[57] Update 'not_started' query #395

Closed
wants to merge 3 commits into from
Closed

Conversation

emmabjj
Copy link
Contributor

@emmabjj emmabjj commented Feb 6, 2025

Linked ticket: #57

Updated the not_started query to:

  • include submissions that do not have an evaluator_submission_assignment yet (brand new submissions)
  • include only submissions that are assigned or unassigned
  • include evaluations that are nil (not started)

I suspect the error that Renata found while testing, i.e. a submission with a completed evaluation was filtered under not_started, had the submission include an evaluation in which the evaluator had been recused_unassigned. The recused_unassigned evaluator did not show up under the submission row, so the evaluation looked like it was only assigned and completed, which is incorrect for the not_started filter.

@emmabjj emmabjj requested a review from stepchud February 6, 2025 19:15
@emmabjj emmabjj self-assigned this Feb 6, 2025
@r-bartlett-gsa r-bartlett-gsa added this to the Sprint 02/11/25 milestone Feb 6, 2025
@r-bartlett-gsa r-bartlett-gsa linked an issue Feb 6, 2025 that may be closed by this pull request
46 tasks
Copy link
Contributor

@stepchud stepchud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good start but we should add some specs that test these queries better. There is a submissions request spec it 'displays all submissions with status: "submitted" and their status counts but it doesn't fail and we probably need to test several different scenarios anyways. It might be easier to test them in isolation if they're moved into the model instead of in the controller.
Each of these categories are mutually exclusive. A submission can only fall into one of them. As currently written, a submission with a mixture of evaluation progress can be included in different statuses, both for the counts and the filters.
Screenshot 2025-02-07 at 9 52 17 AM
In this example, only submissions 1 & 6 are not_started. 3 & 5 are in_progress. none are completed (all evaluations must be completed). I was working on a related issue with the progress counts last night, it's coming from the same underlying issue in these queries. Maybe we should pair on this to figure out a solution?

EDIT: sorry I even got my explanation wrong. it turns out that submissions that are not "Eligible for Evaluation" are not considered "not_started", i.e. submission 6 is not not_started. this is one of the most complicated queries I've worked on and I'm not even sure it's possible. we also need to factor in recusal and deleted states.

@emmabjj emmabjj closed this Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sort & Filter Submissions
3 participants