add 21-4138 to dashboard and add tests#27583
Merged
dominicpadula1 merged 3 commits intomasterfrom Apr 6, 2026
Merged
Conversation
it-harrison
approved these changes
Apr 6, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds VA Form 21-4138 (Statement in Support of Claim) to the My VA submission statuses dashboard by extending the restricted Benefits Intake allowlist, with supporting specs/factory coverage so 21-4138 submissions appear alongside other tracked forms.
Changes:
- Added
21-4138to therestricted_benefits_intake_formsallowlist used byGET /v0/my_va/submission_statuses. - Added controller spec coverage asserting
21-4138is included in the restricted list. - Added report spec + factory trait coverage to ensure
21-4138FormSubmissionrecords are included and formatted as expected.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
app/controllers/v0/my_va/submission_statuses_controller.rb |
Adds 21-4138 to the restricted Benefits Intake forms allowlist used when returning submission statuses. |
spec/controllers/v0/my_va/submission_statuses_controller_spec.rb |
Updates restricted-list spec to assert 21-4138 is present. |
spec/lib/forms/submission_statuses/report_spec.rb |
Expands report spec allowed forms and adds a 21-4138-specific report inclusion/value check. |
spec/factories/form_submissions.rb |
Adds a factory trait to create FormSubmission records for 21-4138 with a known Benefits Intake UUID. |
stiehlrod
approved these changes
Apr 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
restricted_benefits_intake_formsallowlist inSubmissionStatusesController. No new logic was introduced — 21-4138 is handled by the existing Benefits Intake gateway, formatter, and report pipeline.Related issue(s)
Testing done
restricted_benefits_intake_formsallowlist, so they were filtered out and never surfaced on the My VA dashboard.FormSubmissionrecords, fetches their status from the Lighthouse Benefits Intake bulk status API, and returns them to the frontend.spec/controllers/v0/my_va/submission_statuses_controller_spec.rb— verifies 21-4138 is present inrestricted_benefits_intake_formsand is passed as an allowed form to the report when the feature flag is disabled
spec/lib/forms/submission_statuses/report_spec.rb— verifies 21-4138 submissions are included in report results with correct fieldvalues
spec/factories/form_submissions.rb— addedwith_form214138factory traitScreenshots
N/A
What areas of the site does it impact?
Impacts the My VA dashboard submission statuses endpoint (
GET /v0/my_va/submission_statuses). No other areas are affected.Acceptance criteria