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

Created Feature Flipper to Remove PCIU Data Requests in Pre-Fill #19981

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

RachalCassity
Copy link
Member

@RachalCassity RachalCassity commented Dec 20, 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

The current pre-fill process includes PCIU data requests. However, in staging we need to disable these requests to ensure VAProfile Contact Information is properly pre-filling the data. When the remove_pciu_2 flipper is enabled, PCIU data will not be used to fill in missing VAProfile data.

Flipper is enabled in the form_profile_v2_spec in this #18729

Related issue(s)

Testing done

  • New code is covered by unit tests
  • Previously, PCIU data has been used to fill in missing VAProfile data for form pre-fills
  • This was tested in a local environment by updating a veteran's contact info.
  • Flipper will be tested in the form_profile_v2_spec in this PR

Screenshots

Note: Optional

What areas of the site does it impact?

Profile Contact Info in staging

Acceptance criteria

  • I fixed|updated|added unit tests and integration tests for each feature (if applicable).
  • No error nor warning in the console.
  • Events are being sent to the appropriate logging solution
  • Documentation has been updated (link to documentation)
  • No sensitive information (i.e. PII/credentials/internal URLs/etc.) is captured in logging, hardcoded, or specs
  • Feature/bug has a monitor built into Datadog (if applicable)
  • If app impacted requires authentication, did you login to a local build and verify all authenticated routes work as expected
  • I added a screenshot of the developed feature

Requested Feedback

(OPTIONAL)What should the reviewers know in addition to the above. Is there anything specific you wish the reviewer to assist with. Do you have any concerns with this PR, why?

@@ -13,6 +13,9 @@
before do
stub_evss_pciu(user)
described_class.instance_variable_set(:@mappings, nil)
Flipper.disable(:va_v3_contact_information_service)
Flipper.disable(:remove_pciu)
Flipper.disable('remove_pciu_2')
Flipper.disable(:disability_526_toxic_exposure)
Flipper.disable(ApiProviderFactory::FEATURE_TOGGLE_PPIU_DIRECT_DEPOSIT)
Copy link
Member Author

@RachalCassity RachalCassity Dec 20, 2024

Choose a reason for hiding this comment

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

Flipper is enabled in the form_profile_v2_spec in this #18729

before do
Flipper.disable('remove_pciu_2')
end

let(:user) { build(:user, :loa3, address: build(:mpi_profile_address)) }
Copy link
Member Author

@RachalCassity RachalCassity Dec 20, 2024

Choose a reason for hiding this comment

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

Flipper is enabled in the form_profile_v2_spec in this #18729

Copy link
Contributor

Choose a reason for hiding this comment

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

aren't we trying to move towards mocking Flipper instead of using before actions, because it sets it globally and introduces inconsistencies?

Copy link
Member Author

@RachalCassity RachalCassity Dec 20, 2024

Choose a reason for hiding this comment

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

Exactly, this is why we need to fix these specs. I attempted to mock the flipper but due to contact information being used throughout the app and all the flipper inconsistencies, mocking will only give more errors. I even attempted to try to re-work other specs but the work kept growing.

Copy link
Member Author

Choose a reason for hiding this comment

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

I accidentally made a duplicate ticket over this issue when I was drafting this PR.

@RachalCassity RachalCassity requested review from a team as code owners December 20, 2024 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PCIU Replacement Step 4c: Add Feature Flipper to Remove PCIU Data Requests in Pre-Fill
3 participants