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

80367: Add form profile for 10-7959F-1 #16446

Merged
merged 3 commits into from
Apr 24, 2024
Merged

Conversation

balexandr
Copy link
Contributor

Add back-end logic to enable prefill for vets-website.

Summary

  • Added 10-7959F-1 for FormProfile

Related issue(s)

Testing done

  • No actual testing. Can't add tests as we are moving from vets-json-schema. WAiting on FE

What areas of the site does it impact?

  • Nothing live

@va-vsp-bot
Copy link
Collaborator

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: config/form_profile_mappings/10-7959F-1.yml

@balexandr
Copy link
Contributor Author

@ndsprinkle I added you after a convo with Eric as I couldn't add a normal tests due to the doc being outdated and relying on vets-json-schema. Let me know how I can improve this if anything from a BE perspective

@va-vfs-bot va-vfs-bot temporarily deployed to 80367-add-prefill-10-7959f-1/main/main April 22, 2024 20:41 Inactive
street: [contact_information, street]
city: [contact_information, city]
state: [contact_information, state]
postal_code: [contact_information, postal_code]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@michaelclement This might have to be adjusted in the future as right now I have physical and mailing the same but I want to see how it works first before I start making customizations if you're okay with that.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah that seems reasonable to me 👍

Copy link
Member

Choose a reason for hiding this comment

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

Looking at other form mappings, the contact address information is being called differently. Does this work?
EX: config/form_profile_mappings/20-0996.yml
non prefill:

  veteranAddress:
    street: [contact_information, address, street]
    street2: [contact_information, address, street2]
    street3: [street3]
    city: [contact_information, address, city]
    state: [contact_information, address, state]
    country: [contact_information, address, country]
    postalCode: [contact_information, address, postal_code]
  veteranSsnLastFour: [identity_information, ssn_last_four]
  veteranVaFileNumberLastFour: [va_file_number_last_four]

Other form mappings:
EX: config/form_profile_mappings/10-10EZR.yml
veteranAddress: [contact_information, address]

Copy link
Member

Choose a reason for hiding this comment

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

@balexandr Can you confirm this works? I would suggest reverting contact_information.street and etc, does not exist. contact_information.address.street does.

Copy link
Member

Choose a reason for hiding this comment

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

@@ -101,7 +101,8 @@ class FormProfile
vre_readiness: ['28-1900'],
coe: ['26-1880'],
adapted_housing: ['26-4555'],
intent_to_file: ['21-0966']
intent_to_file: ['21-0966'],
ivc_champva: ['10-7959F-1']
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we may want to name this something specific to F1 rather than ivc_champva, because as we add other ivc forms they’ll have to have unique entries in this object ignore this

@balexandr balexandr marked this pull request as ready for review April 23, 2024 16:18
@balexandr balexandr requested review from a team as code owners April 23, 2024 16:18
@rmtolmach
Copy link
Contributor

Can't add tests as we are moving from vets-json-schema. WAiting on FE

@balexandr Did you try adding any tests to form_profile_spec.rb? I'm thinking something similar to the expect_prefilled('form number') tests that are in that file.

@balexandr
Copy link
Contributor Author

balexandr commented Apr 23, 2024

Can't add tests as we are moving from vets-json-schema. WAiting on FE

@balexandr Did you try adding any tests to form_profile_spec.rb? I'm thinking something similar to the expect_prefilled('form number') tests that are in that file.

@rmtolmach We found this
image
so I omitted the tests.

@rmtolmach
Copy link
Contributor

Where is that guidance from @balexandr?

@balexandr
Copy link
Contributor Author

Copy link
Contributor

@rmtolmach rmtolmach left a comment

Choose a reason for hiding this comment

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

ok LGTM

@balexandr balexandr merged commit 6af92d9 into master Apr 24, 2024
22 checks passed
@balexandr balexandr deleted the 80367-add-prefill-10-7959f-1 branch April 24, 2024 17:14
RachalCassity added a commit that referenced this pull request Apr 24, 2024
RachalCassity added a commit that referenced this pull request Apr 24, 2024
* Upgrade Debian to Bookworm (master) (#16454)

* update debian to bookworm

* add test_client.p12

* update ruby version to 2.3.3

* testing with connect_vbms 0.2.0.rc

* add back ruby platform to Gemfile.lock

* update connect_vbms gem to ad hoc fork

* add trailing new line to Dockerfile

* 80367: Add form profile for 10-7959F-1 (#16446)

* 80367: Add form profile for 10-7959F-1

* 80367: Remove vets-json-schema test

* 80367: Add codeowner

* fix error response for submit inquiry and reply (#16480)

Co-authored-by: khoa-v-nguyen <khoa.nguyen@oddball.io>

---------

Co-authored-by: stevenjcumming <134282106+stevenjcumming@users.noreply.github.com>
Co-authored-by: Bryan Alexander <bryan.alexander@adhocteam.us>
Co-authored-by: Khoa Nguyen <134089461+Khoa-V-Nguyen@users.noreply.github.com>
Co-authored-by: khoa-v-nguyen <khoa.nguyen@oddball.io>
michaelclement added a commit that referenced this pull request Apr 29, 2024
* added prefill for 10-7959c

* linting fixes

* added codeowners for 10-7959c mapping file

* adjusting form naming

* updated list formatting

* adjusted to be in line with example set in #16446
@RachalCassity RachalCassity self-assigned this Apr 30, 2024
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.

None yet

7 participants