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

DT-1144: Update Support Destination URLs #2768

Open
wants to merge 14 commits into
base: develop
Choose a base branch
from
Open

Conversation

rushtong
Copy link
Contributor

@rushtong rushtong commented Jan 16, 2025

Addresses

https://broadworkbench.atlassian.net/browse/DT-1144

Summary

  • Updates the support calls to go through Consent instead of directly to Zendesk
  • Adds unit tests for the two components (RequestForm and SupportRequestModal) that make use of support request functionality.
  • Rename the SupportRequestsPage component to the file name, RequestForm, for consistency
  • There are a lot of linting changes, I suggest hiding whitespace changes when reviewing.

Testing

To test locally, this needs to be run against a local running consent with the following config setting:

services:
  activateSupportNotifications: true

Visit the Contact Us form on any page, and the Request a New Role from the user profile page. These are the two places where we invoke the new support urls.


Have you read Terra's Contributing Guide lately? If not, do that first.

  • Label PR with a Jira ticket number and include a link to the ticket
  • Label PR with a security risk modifier [no, low, medium, high]
  • PR describes scope of changes
  • Get a minimum of one thumbs worth of review, preferably two if enough team members are available
  • Get PO sign-off for all non-trivial UI or workflow changes
  • Verify all tests go green
  • Test this change deployed correctly and works on dev environment after deployment

Comment on lines -77 to -81
export const getFileNameFromHttpResponse = (response) => {
const respHeaders = response.headers;
return respHeaders.get('Content-Disposition').split(';')[1].trim().split('=')[1];
};

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Drive-by fix: unused method.

Comment on lines -45 to -48
export const sleep = (ms) => {
return new Promise(resolve => setTimeout(resolve, ms));
};

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Drive-by fix: unused method.

Comment on lines -20 to -21
getGoogleClientId: async () => (await getConfig()).clientId,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Drive-by fix: unused method.

@rushtong rushtong marked this pull request as ready for review January 28, 2025 12:52
@rushtong rushtong requested a review from a team as a code owner January 28, 2025 12:52
@rushtong rushtong requested review from snf2ye and fboulnois and removed request for a team January 28, 2025 12:52
Copy link
Contributor

@fboulnois fboulnois left a comment

Choose a reason for hiding this comment

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

looks good! 👍

subject: subject,
// BEWARE changing the following ids or values! If you change them then you must thoroughly test.
Copy link
Contributor

Choose a reason for hiding this comment

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

what was the purpose of these fields?

Copy link
Contributor

@rjohanek rjohanek left a comment

Choose a reason for hiding this comment

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

this looks good!

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.

3 participants