-
Notifications
You must be signed in to change notification settings - Fork 113
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
fix: lowercase null check for track event adobe analytics #2840
Conversation
@@ -306,7 +306,7 @@ const processTrackEvent = (message, adobeEventName, destinationConfig, extras = | |||
destinationConfig; | |||
const { event: rawMessageEvent, properties } = message; | |||
const { overrideEventString, overrideProductString } = properties; | |||
const event = rawMessageEvent.toLowerCase(); | |||
const event = rawMessageEvent?.toString()?.toLowerCase(); |
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.
can we have util to check for
- event mandatory ?
- event exists ?
- event exists & not object
- event is string & then lowercase conversion
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #2840 +/- ##
========================================
Coverage 87.20% 87.20%
========================================
Files 864 864
Lines 29373 29373
Branches 6854 6854
========================================
Hits 25616 25616
Misses 3411 3411
Partials 346 346 ☔ View full report in Codecov by Sentry. |
Kudos, SonarCloud Quality Gate passed! |
585d2db
to
7b8dfb7
Compare
Important Auto Review SkippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the To trigger a single review, invoke the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChat with CodeRabbit Bot (
|
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
This PR is considered to be stale. It has been open for 20 days with no further activity thus it is going to be closed in 7 days. To avoid such a case please consider removing the stale label manually or add a comment to the PR. |
This PR is considered to be stale. It has been open for 20 days with no further activity thus it is going to be closed in 7 days. To avoid such a case please consider removing the stale label manually or add a comment to the PR. |
This PR is considered to be stale. It has been open for 20 days with no further activity thus it is going to be closed in 7 days. To avoid such a case please consider removing the stale label manually or add a comment to the PR. |
Description of the change
Type of change
Related issues
Checklists
Development
Code review