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

Make call to next_steps_email on downloads button click #32029

Merged
merged 22 commits into from
Sep 30, 2024

Conversation

holdenhinkle
Copy link
Contributor

@holdenhinkle holdenhinkle commented Sep 20, 2024

Resolves department-of-veterans-affairs/va.gov-team#92783

When a user clicks "Continue" on the download page, we make a request to VA Notify to send a confirmation email.

Are you removing, renaming or moving a folder in this PR?

  • No, I'm not changing any folders (skip to Summary and delete the rest of this section)
  • Yes, I'm removing, renaming or moving a folder

Did you change site-wide styles, platform utilities or other infrastructure?

Summary

When a user clicks "Continue" on the download page, we make a request to VA Notify to send a confirmation email.

Related issue(s)

Testing done

  • Lots of unit tests added for helper functions
  • Update unit tests for ConfirmationPage.jsx

Screenshots

NA

What areas of the site does it impact?

Just the Appoint a Rep app which is still behind a feature flag.

Acceptance criteria

Quality Assurance & Testing

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

Error Handling

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

Authentication

NA

@va-vfs-bot va-vfs-bot temporarily deployed to master/hh-92783-make-call-to-next_steps_email-endpoint/main September 20, 2024 19:40 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to master/hh-92783-make-call-to-next_steps_email-endpoint/main September 20, 2024 23:40 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to master/hh-92783-make-call-to-next_steps_email-endpoint/main September 23, 2024 23:46 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to master/hh-92783-make-call-to-next_steps_email-endpoint/main September 25, 2024 16:30 Inactive
formName: getFormName(),
});
} catch (error) {
// Should we set an error state to display a message in the UI?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need to tell the user on the /next-steps page that the call to send the email failed.

@va-vfs-bot va-vfs-bot temporarily deployed to master/hh-92783-make-call-to-next_steps_email-endpoint/main September 26, 2024 05:59 Inactive
@cosu419 cosu419 marked this pull request as ready for review September 26, 2024 18:08
@cosu419 cosu419 requested a review from a team as a code owner September 26, 2024 18:08
@cosu419 cosu419 self-requested a review September 26, 2024 18:37
@va-vfs-bot va-vfs-bot temporarily deployed to master/hh-92783-make-call-to-next_steps_email-endpoint/main September 26, 2024 18:38 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.


return await response.json();
} catch (error) {
Sentry.captureException(new Error(`API request failed: ${error.message}`));

Choose a reason for hiding this comment

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

Sentry found

cosu419
cosu419 previously approved these changes Sep 26, 2024
@va-vfs-bot va-vfs-bot temporarily deployed to master/hh-92783-make-call-to-next_steps_email-endpoint/main September 26, 2024 22:32 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to master/hh-92783-make-call-to-next_steps_email-endpoint/main September 26, 2024 22:41 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to master/hh-92783-make-call-to-next_steps_email-endpoint/main September 27, 2024 16:25 Inactive
@cosu419 cosu419 merged commit b3b9fe8 into main Sep 30, 2024
69 of 70 checks passed
@cosu419 cosu419 deleted the hh-92783-make-call-to-next_steps_email-endpoint branch September 30, 2024 19:02
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.

When advancing from the download page, make a call to VA Notify endpoint
4 participants