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

CAPT 1797/qualification report tweak #3531

Merged
merged 4 commits into from
Jan 29, 2025

Conversation

rjlynch
Copy link
Contributor

@rjlynch rjlynch commented Jan 28, 2025

Some tweaks to the DQT qualifications report:

  • Include claims which failed dqt checks
  • Pull dqt data from notes

Might be easier to review each commit separately.

Want to use an or condition on task and it's neater to call a scope
rather than where with the string name!
This context allows skipping validations and is used in the claim
verifiers models, if we want to set up tasks in our specs to match
those created in claim verifiers we need to be able to use this context.
Even if the task has passed we want to include claims that failed the
DQT api checks. We can identify these claimms as they have a task with a
`claim_verifier_match` of `:none`.
Claims don't persist `dqt_teacher_status`
On prod db: `Claim.where.not(dqt_teacher_status: {}).count #=> 3` and we
don't want to hit the dqt api for each claim when generating the report,
so we need to parse the notes file to get the DQT data into the report.
Copy link
Contributor

@kenfodder kenfodder left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@@ -30,5 +30,9 @@
trait :automated do
manual { false }
end

trait :claim_verifier_context do
to_create { it.save!(context: :claim_verifier) }
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice approach 👍

@rjlynch rjlynch merged commit 4e2bbd6 into master Jan 29, 2025
15 checks passed
@rjlynch rjlynch deleted the CAPT-1797/qualification-report-tweak branch January 29, 2025 13:13
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.

2 participants