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 202 forks source link

[FE] Discovery - Tech Debt - Deprecate use of isVAProfileServiceConfigured in Profile #40898

Closed adamwhitlock1 closed 2 years ago

adamwhitlock1 commented 2 years ago

User Story

Description

Using the isVAProfileServiceConfiguredn function does not allow efficient e2e or local developer experience in that network calls are not made, and the function has to be changed/commented out or manipulated when working on new features.

The ideal would be to maintain a source of truth for network requests through the use of a mock api folder or to fully mock out responses through the betamocks in vets-api.

Tasks

Acceptance Criteria

adamwhitlock1 commented 2 years ago

9 files total are referencing this function in 5 apps plus platform

CONSCLUSION:

Considering that not only is Profile using the function but 4 other apps are using it, then it probably is a good idea to keep it for now and at this point only transactional requests are using it within the profile. Personal information updates are not using it, and notifications are also not using it at this time.

Since no transactional work is being done at this time, then I'd say we hold off on creating any more work around this, and continue to use the mock server that is in place for work going forward and leave this legacy code as is until it is deemed that it needs to be updated specifically.