You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a new UploadValidation is created the record the treasury report is unaware of these changes and remains in a stale state.
Expected State
When a new UploadValidation is created the record needs to be communicated to the treasury generation process to update the treasury report files if an upload has to be added/removed from the report.
Here is where we are creating the initial UploadValidation record.
Add a call to start execution of the treasury-generation step function and add the appropriate arguments to the call based on UploadValidation.passed == true or UploadValidation.passed == false.
If UploadValidation.passed == true then the details of the upload-file must be passed into the uploadsToAdd list here
If Uploadvalidation.passed == false then the details of the upload-file must be passed into the uploadsToRemove list here
projectLambdaPayload ={
uploadValidation.upload.expenditureCategory.name: {
organization: uploadValidation.upload.agency.organization
user: uploadValidation.upload.uploadedBy
outputTemplateId: uploadValidation.upload.reportingPeriod.outputTemplateId
ProjectType: uploadValidation.upload.expenditureCategory.name
uploadsToAdd: {uploadValidation.upload.agencyId: {objectKey: ....,createdAt: uploadValidation.upload.createdAt,filename: uploadValidation.upload.filename}}// this could be empty if passed == false
uploadsToRemove:{uploadValidation.upload.agencyId: {objectKey: ....,createdAt: uploadValidation.upload.createdAt,filename: uploadValidation.upload.filename}}// this will be empty if passed == true}}subrecipientLambdaPayload={}// this will be emptycreateArchiveLambdaPayload={zip: {organization: uploadValidation.upload.agency.organization}}
Once the payload information is derived you will mimic the code written at the end of the sendTreasuryReport function here:
Keeping open for now while we determine if another issue is needed to subtract projects from treasury report if the file is invalidated or overwritten. @as1729 to assess
Current State
When a new
UploadValidation
is created the record the treasury report is unaware of these changes and remains in a stale state.Expected State
When a new
UploadValidation
is created the record needs to be communicated to the treasury generation process to update the treasury report files if an upload has to be added/removed from the report.Implementation details
eng sub-tasks needed:
Additional notes:
UploadValidation
record.UploadValidation.passed == true
orUploadValidation.passed == false
.If
UploadValidation.passed == true
then the details of the upload-file must be passed into theuploadsToAdd
list hereIf
Uploadvalidation.passed == false
then the details of the upload-file must be passed into theuploadsToRemove
list hereThe text was updated successfully, but these errors were encountered: