Repository navigation
feat: shopify enhancements - #2300
Merged
Merged
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #2300 +/- ##
==========================================
Coverage ? 87.05%
==========================================
Files ? 500
Lines ? 25646
Branches ? 6339
==========================================
Hits ? 22327
Misses ? 2947
Partials ? 372
☔ View full report in Codecov by Sentry. |
koladilip
reviewed
Jun 22, 2023
|
Kudos, SonarCloud Quality Gate passed! |
koladilip
approved these changes
Jun 22, 2023
Contributor
|
@anantjain45823 where did we update the cart update event behaviour? I am not seeing it |
anantjain45823
commented
Jun 23, 2023
utsabc
approved these changes
Jun 23, 2023
krishna2020
reviewed
Jun 23, 2023
| if (isDefinedAndNotNull(noteAttributes)) { | ||
| anonymousId = getRudderIdFromNoteAtrributes(noteAttributes, "rudderAnonymousId"); | ||
| } | ||
| // falling back to cartToken mapping or its hash in case no rudderAnonymousId is found |
Collaborator
There was a problem hiding this comment.
wrong placement of comment, should be post this if clause
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.








Description of the change
Cart Update events would be dropped only if we have a duplicate of
lineItemsHashin redis. In all other scenarios like redis failures or NO mapping in redis we pass the event.For mapping anonymousId we would be following this structure:
A. Checks for
rudderAnonymousIdinnote_atrributesB. if redis is enabled checks in redis
C. This means we don't have
anonymousIdand hence events CAN NOT be stitched and we check for cartTokena. if cartToken is available we return its hash value
b. else we check if the event is an SHOPIFY_ADMIN_ONLY_EVENT
-> if true we return
null;-> else we don't have any identifer (very edge case) we return
random anonymousIdType of change
Related issues
Checklists
Development
Code review