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

76692 - [FSR] - Use Assets New data BE data/calcs #29844

Closed
wants to merge 10 commits into from

Conversation

OptionSelect
Copy link
Contributor

@OptionSelect OptionSelect commented May 17, 2024

Summary

Replace local asset calculations with API response.

Related issue(s)

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

Testing done

Log into app, submit a streamlined long and full FSR.

Screenshots

image

image

image

What areas of the site does it impact?

FSR

Acceptance criteria

Quality Assurance & Testing

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

Error Handling

  • [ X ] Browser console contains no warnings or errors.
  • [ X ] Events are being sent to the appropriate logging solution
  • [ X ] Feature/bug has a monitor built into Datadog or Grafana (if applicable)

Authentication

  • [ X ] Did you login to a local build and verify all authenticated routes work as expected with a test user

⚠️ Team Sites (only applies to modifications made to the VA.gov header) ⚠️

  • The vets-website header does not contain any web-components
  • I used the proxy-rewrite steps to test the injected header scenario
  • I reached out in the #sitewide-public-websites Slack channel for questions

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?

@OptionSelect OptionSelect added front end vsa-benefits-2 PR's for the VSA-Benefits-2 Team labels May 17, 2024
@OptionSelect OptionSelect self-assigned this May 17, 2024
@va-vfs-bot va-vfs-bot temporarily deployed to master/fsr/76692/use-assets-calcs/main May 17, 2024 14:31 Inactive
@OptionSelect OptionSelect marked this pull request as ready for review May 17, 2024 14:39
@OptionSelect OptionSelect requested review from a team as code owners May 17, 2024 14:39
Copy link

@va-vfs-bot va-vfs-bot left a comment

Choose a reason for hiding this comment

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

Sentry call found

Sentry captures a lot of data, and we want to make sure that we only keep information that will be useful for troubleshooting issues. This means that PII should not be recorded.

What you can do

Review your call to Sentry and see if you can reasonably reduce any information that is included, or wait for a VSP review.


return await apiRequest(url, options);
} catch (error) {
Sentry.withScope(scope => {

Choose a reason for hiding this comment

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

Sentry found

} catch (error) {
Sentry.withScope(scope => {
scope.setExtra('error', error);
Sentry.captureMessage(

Choose a reason for hiding this comment

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

Sentry found

@va-vfs-bot va-vfs-bot temporarily deployed to master/fsr/76692/use-assets-calcs/main May 17, 2024 14:47 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to master/fsr/76692/use-assets-calcs/main May 17, 2024 17:54 Inactive
Copy link

@va-vfs-bot va-vfs-bot left a comment

Choose a reason for hiding this comment

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

Sentry call found

Sentry captures a lot of data, and we want to make sure that we only keep information that will be useful for troubleshooting issues. This means that PII should not be recorded.

What you can do

Review your call to Sentry and see if you can reasonably reduce any information that is included, or wait for a VSP review.

},
});
} catch (error) {
Sentry.withScope(scope => {

Choose a reason for hiding this comment

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

Sentry found

});
} catch (error) {
Sentry.withScope(scope => {
scope.setExtra('error', error);

Choose a reason for hiding this comment

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

Sentry found

},
});
} catch (error) {
Sentry.withScope(scope => {

Choose a reason for hiding this comment

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

Sentry found

} catch (error) {
Sentry.withScope(scope => {
scope.setExtra('error', error);
Sentry.captureMessage(

Choose a reason for hiding this comment

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

Sentry found

@va-vfs-bot va-vfs-bot temporarily deployed to master/fsr/76692/use-assets-calcs/main May 17, 2024 20:57 Inactive
Copy link

@va-vfs-bot va-vfs-bot left a comment

Choose a reason for hiding this comment

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

Sentry call found

Sentry captures a lot of data, and we want to make sure that we only keep information that will be useful for troubleshooting issues. This means that PII should not be recorded.

What you can do

Review your call to Sentry and see if you can reasonably reduce any information that is included, or wait for a VSP review.

} catch (error) {
Sentry.withScope(scope => {
scope.setExtra('error', error);
Sentry.captureMessage(

Choose a reason for hiding this comment

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

Sentry found

@va-vfs-bot va-vfs-bot temporarily deployed to master/fsr/76692/use-assets-calcs/main May 20, 2024 13:00 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to master/fsr/76692/use-assets-calcs/main May 20, 2024 15:40 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to master/fsr/76692/use-assets-calcs/main May 20, 2024 18:16 Inactive
@OptionSelect
Copy link
Contributor Author

Fixed merge conflicts from merging expenses endpoint implementation.

@va-vfs-bot va-vfs-bot temporarily deployed to master/fsr/76692/use-assets-calcs/main May 21, 2024 13:33 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to master/fsr/76692/use-assets-calcs/main May 21, 2024 14:44 Inactive
Copy link
Contributor

Choose a reason for hiding this comment

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

After looking at what we replaced and the feature flags, I'm not sure we need this calculation anymore! Especially once the streamlinedWaiverAssetUpdate has been deprecated. The API returns total assets, and we're only looking at liquid for streamlined calculations

@OptionSelect
Copy link
Contributor Author

Per convos with @Dr-Pongo and @amponce, this work is unnecessary. Closing PR and removing branch.

@OptionSelect OptionSelect deleted the fsr/76692/use-assets-calcs branch May 21, 2024 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
front end vsa-benefits-2 PR's for the VSA-Benefits-2 Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants