-
Notifications
You must be signed in to change notification settings - Fork 66
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
Use New Status Field to Maintain InProgressForm Data for Dependents Application #16097
Conversation
Error: A file (or its parent directories) does not have a CODEOWNERS entry. Please update the .github/CODEOWNERS file and add the entry for the Offending file: |
Error: A file (or its parent directories) was deleted but its reference still exists in CODEOWNERS. Please update the .github/CODEOWNERS file and delete the entry for the Offending file: |
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.
👍
@tfink419 Can you confirm the CODEOWNERS file is correct for all of these files? Should the @department-of-veterans-affairs/benefits-dependents-management be added to these other files in CODEOWNERS? |
@tfink419 Is this PR still relevant? |
@RachalCassity |
I noticed that the in_progress_form shows I also noticed this in SavedClaim and UserAccount. These should be in the schema as well. |
@RachalCassity I do see the foreign key constraints in the schema already. I can add them to the model files |
@RachalCassity I'm not sure anything should be done, form submission has those 3 other models as optional which aligns with nullifying the id. |
@tfink419 Thank you for your patience. In the past, I have seen errors with InProgressForms which is why I'm digging through the models and controllers. Here's one sentry issue, here. I noticed during the update, a InProgressForm is initialized here:
Would it make sense to use find_or_initialize_by?
I also noticed in the model, the user.account is being used.
I'm wondering if this is the issue: |
@RachalCassity I'll look into it for a new ticket but for now this PR is overdue to be merged so I will proceed with that |
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 from an identity perspective. One small unrelated suggestion
@@ -17,7 +17,7 @@ def create | |||
dependent_service.submit_686c_form(claim) | |||
|
|||
Rails.logger.info "ClaimID=#{claim.confirmation_number} Form=#{claim.class::FORM}" | |||
clear_saved_form(claim.form_id) | |||
# clear_saved_form(claim.form_id) # We do not want to destroy the InProgressForm for this submission |
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.
Can this just be removed?
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.
I'll remove this in a new ticket along with the suggestions from Rachal. I wanted to leave that comment in initially to point out the change in the logic
Summary
Related issue(s)
department-of-veterans-affairs/va.gov-team/issues/77171
Testing done
Screenshots
Pending Submission:
Processing Submission:
What areas of the site does it impact?
Dependents application submission
Acceptance criteria
Documentation has been updated (link to documentation)If app impacted requires authentication, did you login to a local build and verify all authenticated routes work as expectedI added a screenshot of the developed feature