Skip to content

[Issue #8926] During application submission, populate fields needed for award rec#9020

Open
chouinar wants to merge 1 commit intomainfrom
chouinar/8926-submission-fields-populated
Open

[Issue #8926] During application submission, populate fields needed for award rec#9020
chouinar wants to merge 1 commit intomainfrom
chouinar/8926-submission-fields-populated

Conversation

@chouinar
Copy link
Collaborator

Summary

Fixes #8926

Changes proposed

  • Populate application_submission_number / project_title / total_requested_amount when creating the application submission
  • Added a simple util for fetching a field from the forms that may be on an application.

Context for reviewers

These are all fields we want for award recommendation work as they're needed in the UI we display to grantors. They're all nullable, although with the way this is written, the new submission number won't ever be. The others can be null if the fields for them aren't present.

https://navasage.atlassian.net/wiki/spaces/Grantsgov/pages/2735046679/Tech+Spec+-+Award+Recommendation+Data+Model+Initial+Endpoints#Application-Submission

Validation steps

Will test manually (besides the tests written) once it's in staging - my local setup needs a bit of fixing to work with the frontend / handle submission all the way through.

return project_title


REQUESTED_AMOUNT_FORM_FIELDS = [
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm concerned this isn't going to scale well, especially when we start adding new forms or versioning them. Thoughts on shifting to a more configuration driven approach, where we could annotate fields or have a mapping object per form template that talks about how that form template's fields map to SGM concepts?

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.

Backend - Modify our application submission job to populate the new fields

2 participants