-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Enable Zendesk tickets from Automatticians #21453
base: trunk
Are you sure you want to change the base?
Conversation
Generated by 🚫 Danger |
📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
|
// those with a staff member role (admin, agent, etc.), so insert "-testing" | ||
// into the email to make it work | ||
if ((email.contains("@automattic.com") || email.contains("@a8c.com")) && !email.contains("-testing@")) { | ||
return email.replace("@", "-testing@"); |
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.
I think we are suppose to add an +testing
, not -
? /cc @jkmassel
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.
@crazytonyli Thanks for catching that! I've made the correction.
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.
@crazytonyli Are we okay to merge this or are we waiting for @jkmassel to approve it?
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## trunk #21453 +/- ##
=======================================
Coverage 39.50% 39.50%
=======================================
Files 2119 2119
Lines 99437 99437
Branches 15282 15282
=======================================
Hits 39281 39281
Misses 56674 56674
Partials 3482 3482 ☔ View full report in Codecov by Sentry. |
Quality Gate passedIssues Measures |
Fixes #21449
Automatticians who have a Zendesk staff member role (admin, agent, etc.) identity have long been unable to test creating Zendesk tickets in the apps.
According to Zendesk, a workaround for this is to programmatically append "+testing" when a ticket is submitted from an @automattic.com or @a8c.com email address. This PR does just that.
To test: