-
Notifications
You must be signed in to change notification settings - Fork 16
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] Ops reports #3284
base: master
Are you sure you want to change the base?
[CAPT-1797] Ops reports #3284
Conversation
d00e400
to
5247399
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me - would check with @slorek and see if this fits with his design for the app
5f9a97f
to
ccf6dc2
Compare
Getting this spike pr in shape, first step is adding some feature specs.
8f20409
to
f5f6dbc
Compare
Some tweaks to the spike code to get this working, we need to handle the eligibility not having an eligibile itt subject, and we also want to scope the claims we're looking at to the current academic year.
Some tweaks to the spike code for this report and adds a test.
Adds a test and fixes up the csv code as not all claims will have a teacher_reference_number
Pull out a claim presenter to match how the other reports work. This will also give us somewhere to store presentation logic if we need any more.
Slightly reduce the number of claims we need to check!
Don't need to stub the duplciates, pretty straightforward to set up a basic duplicate scenario.
Even if this claim doesn't have duplicates we still access the eligibility as part of the matching attribute checking code (to grab thhe policy), so it's worth eager loading.
Adds a button to the report page
Greatly speeds up the duplicate checking
We don't need to keep old reports around so there's no need to generate a new report each time the job runs.
Limiting the duplicate claims checking to unpaid claims only the reporting can be run everyday as it's pretty quick (sub one minute).
f5f6dbc
to
1690825
Compare
I've decided to use the background job based approach in this spike pr and have cleaned up this PR so it's good to review. I've profiled the duplicate claim report against the production database. |
Claim::DataReportRequest
class