Repository navigation
fix: added missing email check during primary email id filtering in zendesk destination - #4124
Conversation
…endesk destination
| { | ||
| httpReq: { | ||
| headers: { | ||
| Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', |
Check failure
Code scanning / CodeQL
Hard-coded credentials
| { | ||
| httpReq: { | ||
| headers: { | ||
| Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', |
Check failure
Code scanning / CodeQL
Hard-coded credentials
| { | ||
| httpReq: { | ||
| headers: { | ||
| Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', |
Check failure
Code scanning / CodeQL
Hard-coded credentials
| { | ||
| httpReq: { | ||
| headers: { | ||
| Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', |
Check failure
Code scanning / CodeQL
Hard-coded credentials
| { | ||
| httpReq: { | ||
| headers: { | ||
| Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', |
Check failure
Code scanning / CodeQL
Hard-coded credentials
| { | ||
| httpReq: { | ||
| headers: { | ||
| Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', |
Check failure
Code scanning / CodeQL
Hard-coded credentials
| params: {}, | ||
| headers: { | ||
| 'Content-Type': 'application/json', | ||
| Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', |
Check failure
Code scanning / CodeQL
Hard-coded credentials
| method: 'POST', | ||
| endpoint: 'https://rudderlabshelp.zendesk.com/api/v2/users/create_or_update.json', | ||
| headers: { | ||
| Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', |
Check failure
Code scanning / CodeQL
Hard-coded credentials
| method: 'POST', | ||
| endpoint: 'https://rudderlabshelp.zendesk.com/api/v2/users/create_or_update.json', | ||
| headers: { | ||
| Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', |
Check failure
Code scanning / CodeQL
Hard-coded credentials
| method: 'POST', | ||
| endpoint: 'https://rudderlabshelp.zendesk.com/api/v2/users/create_or_update.json', | ||
| headers: { | ||
| Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', |
Check failure
Code scanning / CodeQL
Hard-coded credentials
|
Allure Test reports for this run are available at: |
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #4124 +/- ##
===========================================
+ Coverage 91.12% 91.17% +0.04%
===========================================
Files 631 632 +1
Lines 32944 33098 +154
Branches 7807 7836 +29
===========================================
+ Hits 30021 30177 +156
- Misses 2673 2703 +30
+ Partials 250 218 -32 ☔ View full report in Codecov by Sentry. |



What are the changes introduced in this PR?
Previously, when filtering for the primary email, we missed the
type="email"condition. As a result, the code could mistakenly pick a different primary id, such as a phone primary id. This PR fixes the issue by ensuring that the primary email id is selected if a primary email is available.What is the related Linear task?
Resolves INT-3329
Please explain the objectives of your changes below
Put down any required details on the broader aspect of your changes. If there are any dependent changes, mandatorily mention them here
Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
N/A
Any new dependencies introduced with this change?
N/A
Any new generic utility introduced or modified. Please explain the changes.
N/A
Any technical or performance related pointers to consider with the change?
N/A
@coderabbitai review
Developer checklist
My code follows the style guidelines of this project
No breaking changes are being introduced.
All related docs linked with the PR?
All changes manually tested?
Any documentation changes needed with this change?
Is the PR limited to 10 file changes?
Is the PR limited to one linear task?
Are relevant unit and component test-cases added in new readability format?
Reviewer checklist
Is the type of change in the PR title appropriate as per the changes?
Verified that there are no credentials or confidential data exposed with the changes.