department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
282 stars 203 forks source link

Remove feature toggle code from NoK/EC #81337

Closed wesrowe closed 2 months ago

wesrowe commented 6 months ago

Description

User story

As a Cartography team member, I want to remove feature toggle and logic from the NoK/EC code, so that the code is simpler for future dev and maintenance.

Notes

Tasks:

Acceptance criteria

radavis commented 3 months ago

To verify that the feature toggle has been removed, visit {dev-,sandbox-,staging-,_}api.va.gov/flipper, press CTRL+F (CMD+F) and search for profile_contacts. No results should be displayed.

To verify the feature is still enabled, log in with one of the following accounts, and then navigate to /profile/contacts.

allanto-ah commented 3 months ago

@radavis I still see this feature toggle in the production environment, api.va.gov. Is this expected?

Screenshot 2024-07-09 at 8.36.46 AM.png
radavis commented 3 months ago

@allanto-ah, This is definitely not expected behavior. I filed a support request for this issue as it seems there's something happening that is adding profile_contacts and mhv_landing_page_enabled feature toggles to the database after it has been removed from the codebase and database.

radavis commented 3 months ago

Blocked by department-of-veterans-affairs/va.gov-team#88088

allanto-ah commented 3 months ago

@radavis

The feature toggle is still showing in production environment, api.va.gov

Screenshot 2024-07-15 at 8.54.58 AM.png
wesrowe commented 3 months ago

Friends, I seem to recall that in 2023 my team tried to remove a bunch of feature flags and ran into this same problem. I would advise asking Platform whether this is a known issue.

allanto-ah commented 3 months ago

@wesrowe Yeah, Richard has already reached out to Platform in regards to these: link. It seems to be something that works sometimes and not all the time. He was able to get it to work for 81709, but seems like it didn't work for this one.

radavis commented 3 months ago

Looks like I missed a line...

department-of-veterans-affairs/vets-website#30949 removes profile_contacts toggle from featureFlagNames.json

carlosfelix2 commented 2 months ago

Checked and the profile_contacts toggle has been remove from staging and prod.

allanto-ah commented 2 months ago

Environment: Staging, Production

Verified that the EC/NoK is still being shown as expected. No regression issues.