Skip to content

fix: for group call send email as identifier when userId is in email format - #2404

Merged
anantjain45823 merged 7 commits into
hotfix/customerio-identify-updatefrom
fix.customerIo
Jul 26, 2023
Merged

anantjain45823 merged 7 commits into
hotfix/customerio-identify-updatefrom
fix.customerIo

Conversation

@anantjain45823

@anantjain45823 anantjain45823 commented Jul 26, 2023 •

Copy link
Copy Markdown
Contributor

Description of the change

Problem->
In identify call userId is in email format so customerIo is mapping it to email as identifier and in group call we are grouping on basis of id:some_email for userId: some email
Since there is no id and only email present in customerIo group call is resulting in creating a new user.
Solution ->
While making the group call We will be checking if theuserIdis in email format then we will pass email as identifier else we will pass id as identifier.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Related issues

Fix #1

Checklists

Development

  • Lint rules pass locally
  • The code changed/added as part of this pull request has been covered with tests
  • All tests related to the changed code pass in development

Code review

  • This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached
  • "Ready for review" label attached to the PR and reviewers mentioned in a comment
  • Changes have been reviewed by at least one other engineer
  • Issue from task tracker has a link to this pull request

@anantjain45823
anantjain45823 requested a review from a team as a code owner July 26, 2023 04:28
@anantjain45823 anantjain45823 self-assigned this Jul 26, 2023
@anantjain45823
anantjain45823 requested a review from a team as a code owner July 26, 2023 04:28
@anantjain45823 anantjain45823 changed the title fix: send id in body when is in email format fix: send id in body when id in email format Jul 26, 2023
@anantjain45823 anantjain45823 changed the title fix: send id in body when id in email format fix: for identify call send id in body when id in email format Jul 26, 2023
@anantjain45823
anantjain45823 changed the base branch from develop to main July 26, 2023 04:28
@codecov

codecov Bot commented Jul 26, 2023 •

Copy link
Copy Markdown

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (5bc6360) 86.59% compared to head (5edc4ec) 86.60%.

Additional details and impacted files
@@                        Coverage Diff                         @@
##           hotfix/customerio-identify-update    #2404   +/-   ##
==================================================================
  Coverage                              86.59%   86.60%           
==================================================================
  Files                                    552      552           
  Lines                                  27658    27660    +2     
  Branches                                6610     6611    +1     
==================================================================
+ Hits                                   23951    23954    +3     
+ Misses                                  3352     3351    -1     
  Partials                                 355      355           
Files Changed Coverage Δ
src/cdk/v1/new_relic/transform.js 90.47% <ø> (ø)
src/v0/destinations/customerio/util.js 94.00% <100.00%> (+0.75%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@koladilip
koladilip self-requested a review July 26, 2023 04:41

@koladilip koladilip left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Validate email should be used when you want to fail it if not email

Comment thread src/v0/destinations/customerio/util.js Resolved
Comment thread src/v0/destinations/customerio/util.js Resolved
Comment thread src/v0/util/index.js Resolved
@anantjain45823
anantjain45823 changed the base branch from main to hotfix/customerio-identify-update July 26, 2023 09:57
Comment thread src/v0/destinations/customerio/util.js Resolved
Comment thread src/v0/util/index.js Resolved
@sanpj2292
sanpj2292 self-requested a review July 26, 2023 10:29
Comment thread src/v0/destinations/customerio/util.js Resolved
@anantjain45823 anantjain45823 changed the title fix: for identify call send id in body when id in email format fix: for group call send email as identifier when userId is in email format Jul 26, 2023
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@anantjain45823
anantjain45823 merged commit 91ccca2 into hotfix/customerio-identify-update Jul 26, 2023
@devops-github-rudderstack
devops-github-rudderstack deleted the fix.customerIo branch October 27, 2023 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants