-
Notifications
You must be signed in to change notification settings - Fork 86
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ 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
... and 26 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
src/account/zendesk.ts
Outdated
await _createRequest({ | ||
message: `${message} | ||
|
||
${JSON.stringify(deviceInfo)} | ||
${JSON.stringify(userProperties)} |
There was a problem hiding this comment.
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?
${JSON.stringify(userProperties)} | |
${JSON.stringify(userProperties, null, 2)} |
src/account/zendesk.test.ts
Outdated
@@ -48,7 +53,7 @@ describe('Zendesk', () => { | |||
sessionId: '1234', | |||
numberVerifiedCentralized: true, | |||
network: 'mainnet', | |||
} as DeviceInfo, | |||
} as SupportRequestUserProperties, |
There was a problem hiding this comment.
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
### 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)
### 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)
### 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)
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: