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

chore: add app name to support requests #6029

Merged
merged 3 commits into from
Sep 20, 2024
Merged

Conversation

kathaypacific
Copy link
Collaborator

Description

Context - the ask is to add the app name in the support request body and also add it as a zendesk property so that it can be tracked more easily.

Test plan

n/a

Related issues

n/a

Backwards compatibility

Y

Network scalability

If a new NetworkId and/or Network are added in the future, the changes in this PR will:

  • Continue to work without code changes, OR trigger a compilation error (guaranteeing we find it when a new network is added)

Copy link

codecov bot commented Sep 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.70%. Comparing base (b567c8d) to head (971bb4a).
Report is 23 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #6029      +/-   ##
==========================================
+ Coverage   88.61%   88.70%   +0.09%     
==========================================
  Files         725      727       +2     
  Lines       30488    30769     +281     
  Branches     5231     5305      +74     
==========================================
+ Hits        27017    27295     +278     
- Misses       3428     3431       +3     
  Partials       43       43              
Files with missing lines Coverage Δ
src/account/SupportContact.tsx 96.25% <100.00%> (ø)
src/account/zendesk.ts 93.33% <100.00%> (ø)

... and 26 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b567c8d...971bb4a. Read the comment docs.

Copy link
Member

@jeanregisser jeanregisser left a comment

Choose a reason for hiding this comment

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

👍

await _createRequest({
message: `${message}

${JSON.stringify(deviceInfo)}
${JSON.stringify(userProperties)}
Copy link
Member

Choose a reason for hiding this comment

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

Wondering if we should indent it, so the support team can more easily read it?

Suggested change
${JSON.stringify(userProperties)}
${JSON.stringify(userProperties, null, 2)}

@@ -48,7 +53,7 @@ describe('Zendesk', () => {
sessionId: '1234',
numberVerifiedCentralized: true,
network: 'mainnet',
} as DeviceInfo,
} as SupportRequestUserProperties,
Copy link
Member

Choose a reason for hiding this comment

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

nit: unrelated to the changes here, but I'm wondering if we could remove the cast. Maybe using as const or sastifies SupportRequestUserProperties

@kathaypacific kathaypacific added this pull request to the merge queue Sep 20, 2024
Merged via the queue into main with commit ed3a1b9 Sep 20, 2024
15 checks passed
@kathaypacific kathaypacific deleted the kathy/zendesk-app-field branch September 20, 2024 13:45
kathaypacific added a commit to mobilestack-xyz/mobilestack-shefi that referenced this pull request Sep 20, 2024
### Description


[Context](https://valora-app.slack.com/archives/C07KBTP7RC2/p1726606329650329)
- the ask is to add the app name in the support request body and also
add it as a zendesk property so that it can be tracked more easily.

### Test plan

n/a

### Related issues

n/a

### Backwards compatibility

Y

### Network scalability

If a new NetworkId and/or Network are added in the future, the changes
in this PR will:

- [ ] Continue to work without code changes, OR trigger a compilation
error (guaranteeing we find it when a new network is added)
MuckT pushed a commit that referenced this pull request Sep 21, 2024
### Description


[Context](https://valora-app.slack.com/archives/C07KBTP7RC2/p1726606329650329)
- the ask is to add the app name in the support request body and also
add it as a zendesk property so that it can be tracked more easily.

### Test plan

n/a

### Related issues

n/a

### Backwards compatibility

Y

### Network scalability

If a new NetworkId and/or Network are added in the future, the changes
in this PR will:

- [ ] Continue to work without code changes, OR trigger a compilation
error (guaranteeing we find it when a new network is added)
jeanregisser pushed a commit to mobilestack-xyz/mobilestack-shefi that referenced this pull request Sep 26, 2024
### Description


[Context](https://valora-app.slack.com/archives/C07KBTP7RC2/p1726606329650329)
- the ask is to add the app name in the support request body and also
add it as a zendesk property so that it can be tracked more easily.

### Test plan

n/a

### Related issues

n/a

### Backwards compatibility

Y

### Network scalability

If a new NetworkId and/or Network are added in the future, the changes
in this PR will:

- [ ] Continue to work without code changes, OR trigger a compilation
error (guaranteeing we find it when a new network is added)
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.

2 participants