-
Notifications
You must be signed in to change notification settings - Fork 22
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
3802 - Ensure evidence based total spend value is derived from the most recent upload #3851
Conversation
…derived from the most recent upload
…by upload.created-at
Terraform Summary
Hint: If "Terraform Format & Style" failed, run OutputValidation Output
Plan Summary
Pusher: @as1729, Action: |
QA Summary
Test CoverageCoverage report for `packages/client`
Coverage report for `packages/server`Pusher: @as1729, Action: |
projectLogger.debug('populating row from records in project'); | ||
const row = { | ||
'Project ID': projectId, | ||
'Number of Subawards': 0, | ||
'Number of Expenditures': 0, | ||
'Evidence Based Total Spend': 0, | ||
'Evidence Based Total Spend': mostRecentRecord?.content.Spending_Allocated_Toward_Evidence_Based_Interventions || 0, |
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.
is content always guaranteed to be present? In the test data, the first record did not have a content.
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.
This is a good question - records that are filtered by type ec*
should always have a content
. Let me verify that this is the case and if not, I'll add something to check for the existence of content
.
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.
Based on the latest bug- it seems prudent to add a check to make sure these fields are present. Since the data comes directly from the spreadsheets and the users can input anything they want there is no guarantee that all the data is fully available. I added these checks in the latest PR. #3863
Thanks for the quick responses @as1729 - I approved. |
Ticket #3802
Description
Some values in the ARPA audit report must be derived from the most recent upload-file rather than an aggregate of of all the upload-files.
In this case, we updated the
Evidence Based Total Spend
value in the KPI tab to reflect the new logic and take the most-recent value.Screenshots / Demo Video
After
The latest value of $35,000 is being picked.
Before
The KPI tab is returning the summation of two values $100,000 and $35,000 to return $135,000.
Testing
FIRST_UPLOAD
thenSECOND_UPLOAD
into the app through the Submit Workbook Flow. http://localhost:8080/arpa_reporter/new_uploadmain
branch and run the same endpoint: http://localhost:8080/api/audit_report - This time verify that the audit report contains the value $135,000.Automated and Unit Tests
Manual tests for Reviewer
Checklist