Skip to content
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

VACMS-16914: DUW Add prev-application-type question #29288

Merged
merged 5 commits into from
Apr 23, 2024

Conversation

chriskim2311
Copy link
Contributor

@chriskim2311 chriskim2311 commented Apr 19, 2024

Note: Delete the description statements, complete each step. None are optional, but can be justified as to why they cannot be completed as written. Provide known gaps to testing that may raise the risk of merging to production.

Summary

This PR adds the previous application type question.

Also added more robust test cases for the display logic conditions met function that tests the skip ahead functionality of the FORK logic.

Related issue(s)

department-of-veterans-affairs/va.gov-cms#16914

Testing done

Paths to get to Prev Application Type Question
Path 1
Branch: Any
Discharge Year: Any
Reason: 'I received a DD215 that shows my discharge upgrade or correction. But I want an updated DD214.'

Path 2: Long path hit all questions
Branch: Any
Discharge Year: 2009
Discharge Month: Any
Reason: 'I was discharged due to my sexual orientation (including under the Don’t Ask, Don’t Tell policy).'
Discharge Type: My discharge isn't honorable or under honorable conditions.
Intention: Any
Court Martial: Any
Prev Application: “Yes”
Prev Application Year: 'After 2014', 'After 2011',
'After 2017',

Screenshots

How_did_you_apply_for_a_discharge_upgrade_last_time____How_to_Apply_for_A_Discharge_Upgrade___Veterans_Affairs

What areas of the site does it impact?

(Describe what parts of the site are impacted if code touched other areas)

Acceptance criteria

Quality Assurance & Testing

  • I fixed|updated|added unit tests and integration tests for each feature (if applicable).
  • No sensitive information (i.e. PII/credentials/internal URLs/etc.) is captured in logging, hardcoded, or specs
  • Linting warnings have been addressed
  • Documentation has been updated (link to documentation *if necessary)
  • Screenshot of the developed feature is added
  • Accessibility testing has been performed

@va-vfs-bot va-vfs-bot temporarily deployed to master/16914-questions-5/main April 19, 2024 12:46 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to master/16914-questions-5/main April 22, 2024 21:53 Inactive
@@ -32,10 +32,12 @@ export const displayConditionsMet = (SHORT_NAME, formResponses) => {

if (questionRequirements.includes('FORK')) {
const forkedReqs = displayConditionsForShortName?.FORK;
let anyForkConditionsMet = false;
Copy link
Contributor Author

@chriskim2311 chriskim2311 Apr 22, 2024

Choose a reason for hiding this comment

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

I realized we do need these vars for the skip ahead questions and checking for a valid DC. Previous logic did not work for all Fork DCs

@chriskim2311 chriskim2311 marked this pull request as ready for review April 22, 2024 22:59
@chriskim2311 chriskim2311 requested review from a team as code owners April 22, 2024 22:59
@va-vfs-bot va-vfs-bot temporarily deployed to master/16914-questions-5/main April 22, 2024 23:00 Inactive
@laflannery
Copy link

LGTM!

Copy link
Contributor

@randimays randimays left a comment

Choose a reason for hiding this comment

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

LGTM

@chriskim2311 chriskim2311 merged commit d7dbc93 into main Apr 23, 2024
80 of 81 checks passed
@chriskim2311 chriskim2311 deleted the 16914-questions-5 branch April 23, 2024 17:48
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.

5 participants