Skip to content
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(mixpanel): batch event ordering #2608

Merged
merged 9 commits into from
Sep 18, 2023
Merged

Conversation

Gauravudia
Copy link
Contributor

@Gauravudia Gauravudia commented Sep 13, 2023

Description of the change

Resolves INT-390
Fix mixpanel batch even ordering and move utility functions to utils.js

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

@Gauravudia Gauravudia self-assigned this Sep 13, 2023
@Gauravudia Gauravudia requested review from a team as code owners September 13, 2023 14:36
@Gauravudia Gauravudia added the enhancement New feature or request label Sep 13, 2023
@Gauravudia Gauravudia removed the request for review from shrouti1507 September 13, 2023 14:37
@codecov
Copy link

codecov bot commented Sep 18, 2023

Codecov Report

Patch coverage: 98.63% and no project coverage change.

Comparison is base (fd81211) 86.89% compared to head (1035264) 86.89%.
Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2608   +/-   ##
========================================
  Coverage    86.89%   86.89%           
========================================
  Files          603      603           
  Lines        28140    28129   -11     
  Branches      6697     6693    -4     
========================================
- Hits         24451    24442    -9     
+ Misses        3356     3354    -2     
  Partials       333      333           
Files Changed Coverage Δ
src/v0/destinations/iterable/transform.js 95.41% <ø> (ø)
src/v0/destinations/iterable/util.js 94.02% <ø> (-0.45%) ⬇️
src/v0/destinations/mp/transform.js 98.23% <96.00%> (+0.86%) ⬆️
src/v0/destinations/mp/util.js 99.18% <100.00%> (-0.82%) ⬇️
src/v0/util/index.js 87.19% <100.00%> (+0.31%) ⬆️

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

@sonarqubecloud
Copy link

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 1 Code Smell

95.1% 95.1% Coverage
0.0% 0.0% Duplication

@chandumlg chandumlg merged commit 36c7f06 into develop Sep 18, 2023
@chandumlg chandumlg deleted the fix/mixpanel-ordering branch September 18, 2023 15:53
anantjain45823 added a commit that referenced this pull request Oct 3, 2023
* fix(mixpanel): batch event ordering (#2608)

* fix: bqstream event ordering fix (#2624)

* fix: bqstream event ordering fix

* fix: review comments addressed

* fix: importing the common util function

* fix: putting both error and successful events logic back

* fix: test cases addition and code clean up

* fix: code clean up

* fix: resolving sonar error

* fix: removing network handler for bqstream

* fix: refactor process router dest

* fix: use promise for prompts in personalize create tracking script (#2635)

* fix(snyk): snyk updated versions merged to oen pr

* chore: add ttl values for cache (#2593)

* fix(hubspot): add validation for hubspotEvents (#2643)

* fix: add optional chaining for error message in network handler of Intercom (#2648)

fix bugsnag issue

* fix(snyk): removed the new added dependencies

* fix(snyk): removed aws-sdk dependency

* feat: add circular reference check in flattern json (#2650)

* chore: update fb_error message for invalid type of property value (#2656)

fix: fb_error message for invalid type of property value

* feat(iterable): user deletion support (#2621)

* feat(iterable): user deletion support

* feat(iterable): user deletion improvements

* chore: added comments

* feat(gaec): partial failures handling (#2631)

* chore: partial failure handling

* chore: code review changes

* chore: move unit tests to correct place for mssql and postgres (#2657)

* chore: move unit tests to correct place for mssql and postgres

* chore: replace var to const

* chore: replace var to const

* feat: add axios mocking to component test-suite (#2638)

* feat: tslint rules enable (#2604)

* feat: remove eslint issues

* fix: fixed es-lint tests

* fix: merge conflicts

* fix: add auth status inactive category handling to GA in userDeletion flow (#2669)

* fix: refactor adjust using optional chaining (#2671)

fix: refactor adj using opitonal chaining

* chore(release): pull main into develop post release v1.43.1 (#2662)

* fix(dm): updated the stats definition for the tracking plan service

* fix(iterable): event id mapping (#2659)

* chore(release): 1.43.1

* chore: update release owners (#2661)

chore: update release stakeholder

---------

Co-authored-by: Abhimanyu Babbar <abhimanyu.babbar89@gmail.com>
Co-authored-by: Mihir Bhalala <77438541+mihir-4116@users.noreply.github.com>
Co-authored-by: GitHub Actions <noreply@github.com>
Co-authored-by: Anant Jain <62471433+anantjain45823@users.noreply.github.com>
Co-authored-by: Sudip Paul <67197965+ItsSudip@users.noreply.github.com>

* chore(release): 1.44.0

* feat(ga4): added support of filter user traits (#2679)

* fix: add optional chaining for traits (#2677)

* fix: add optional chaing for traits

* update changelog

* feat: geolocation support for python transformations (#2678)

* feat: geolocation support for python transformations

* chore: updating changelog

---------

Co-authored-by: Anant Jain <62471433+anantjain45823@users.noreply.github.com>

* update changelog

* Update CHANGELOG.md

---------

Co-authored-by: Gauravudia <60897972+Gauravudia@users.noreply.github.com>
Co-authored-by: shrouti1507 <60211312+shrouti1507@users.noreply.github.com>
Co-authored-by: Dilip Kola <33080863+koladilip@users.noreply.github.com>
Co-authored-by: Sudip Paul <67197965+ItsSudip@users.noreply.github.com>
Co-authored-by: Sanjay <71065320+Sanjay-Veernala@users.noreply.github.com>
Co-authored-by: Siva Shanmukh Vetcha <siva.shanmukh@gmail.com>
Co-authored-by: Ujjwal Abhishek <63387036+ujjwal-ab@users.noreply.github.com>
Co-authored-by: Mihir Bhalala <77438541+mihir-4116@users.noreply.github.com>
Co-authored-by: Sankeerth <sankeerth@rudderstack.com>
Co-authored-by: AASHISH MALIK <imashishmalik.45@gmail.com>
Co-authored-by: Anant Jain <62471433+anantjain45823@users.noreply.github.com>
Co-authored-by: Abhimanyu Babbar <abhimanyu.babbar89@gmail.com>
Co-authored-by: GitHub Actions <noreply@github.com>
Co-authored-by: Jayachand <mjayachand@gmail.com>
Co-authored-by: Anant Jain <anantjain45823@gmail.com>
anantjain45823 added a commit that referenced this pull request Oct 5, 2023
* fix(dm): updated the stats definition for the tracking plan service

* fix(iterable): event id mapping (#2659)

* chore(release): 1.43.1

* chore: update release owners (#2661)

chore: update release stakeholder

* chore(release): pull release/v1.44.0 into main (#2672)

* fix(mixpanel): batch event ordering (#2608)

* fix: bqstream event ordering fix (#2624)

* fix: bqstream event ordering fix

* fix: review comments addressed

* fix: importing the common util function

* fix: putting both error and successful events logic back

* fix: test cases addition and code clean up

* fix: code clean up

* fix: resolving sonar error

* fix: removing network handler for bqstream

* fix: refactor process router dest

* fix: use promise for prompts in personalize create tracking script (#2635)

* fix(snyk): snyk updated versions merged to oen pr

* chore: add ttl values for cache (#2593)

* fix(hubspot): add validation for hubspotEvents (#2643)

* fix: add optional chaining for error message in network handler of Intercom (#2648)

fix bugsnag issue

* fix(snyk): removed the new added dependencies

* fix(snyk): removed aws-sdk dependency

* feat: add circular reference check in flattern json (#2650)

* chore: update fb_error message for invalid type of property value (#2656)

fix: fb_error message for invalid type of property value

* feat(iterable): user deletion support (#2621)

* feat(iterable): user deletion support

* feat(iterable): user deletion improvements

* chore: added comments

* feat(gaec): partial failures handling (#2631)

* chore: partial failure handling

* chore: code review changes

* chore: move unit tests to correct place for mssql and postgres (#2657)

* chore: move unit tests to correct place for mssql and postgres

* chore: replace var to const

* chore: replace var to const

* feat: add axios mocking to component test-suite (#2638)

* feat: tslint rules enable (#2604)

* feat: remove eslint issues

* fix: fixed es-lint tests

* fix: merge conflicts

* fix: add auth status inactive category handling to GA in userDeletion flow (#2669)

* fix: refactor adjust using optional chaining (#2671)

fix: refactor adj using opitonal chaining

* chore(release): pull main into develop post release v1.43.1 (#2662)

* fix(dm): updated the stats definition for the tracking plan service

* fix(iterable): event id mapping (#2659)

* chore(release): 1.43.1

* chore: update release owners (#2661)

chore: update release stakeholder

---------

Co-authored-by: Abhimanyu Babbar <abhimanyu.babbar89@gmail.com>
Co-authored-by: Mihir Bhalala <77438541+mihir-4116@users.noreply.github.com>
Co-authored-by: GitHub Actions <noreply@github.com>
Co-authored-by: Anant Jain <62471433+anantjain45823@users.noreply.github.com>
Co-authored-by: Sudip Paul <67197965+ItsSudip@users.noreply.github.com>

* chore(release): 1.44.0

* feat(ga4): added support of filter user traits (#2679)

* fix: add optional chaining for traits (#2677)

* fix: add optional chaing for traits

* update changelog

* feat: geolocation support for python transformations (#2678)

* feat: geolocation support for python transformations

* chore: updating changelog

---------

Co-authored-by: Anant Jain <62471433+anantjain45823@users.noreply.github.com>

* update changelog

* Update CHANGELOG.md

---------

Co-authored-by: Gauravudia <60897972+Gauravudia@users.noreply.github.com>
Co-authored-by: shrouti1507 <60211312+shrouti1507@users.noreply.github.com>
Co-authored-by: Dilip Kola <33080863+koladilip@users.noreply.github.com>
Co-authored-by: Sudip Paul <67197965+ItsSudip@users.noreply.github.com>
Co-authored-by: Sanjay <71065320+Sanjay-Veernala@users.noreply.github.com>
Co-authored-by: Siva Shanmukh Vetcha <siva.shanmukh@gmail.com>
Co-authored-by: Ujjwal Abhishek <63387036+ujjwal-ab@users.noreply.github.com>
Co-authored-by: Mihir Bhalala <77438541+mihir-4116@users.noreply.github.com>
Co-authored-by: Sankeerth <sankeerth@rudderstack.com>
Co-authored-by: AASHISH MALIK <imashishmalik.45@gmail.com>
Co-authored-by: Anant Jain <62471433+anantjain45823@users.noreply.github.com>
Co-authored-by: Abhimanyu Babbar <abhimanyu.babbar89@gmail.com>
Co-authored-by: GitHub Actions <noreply@github.com>
Co-authored-by: Jayachand <mjayachand@gmail.com>
Co-authored-by: Anant Jain <anantjain45823@gmail.com>

---------

Co-authored-by: Abhimanyu Babbar <abhimanyu.babbar89@gmail.com>
Co-authored-by: Mihir Bhalala <77438541+mihir-4116@users.noreply.github.com>
Co-authored-by: GitHub Actions <noreply@github.com>
Co-authored-by: Sudip Paul <67197965+ItsSudip@users.noreply.github.com>
Co-authored-by: devops-github-rudderstack <88187154+devops-github-rudderstack@users.noreply.github.com>
Co-authored-by: Gauravudia <60897972+Gauravudia@users.noreply.github.com>
Co-authored-by: shrouti1507 <60211312+shrouti1507@users.noreply.github.com>
Co-authored-by: Dilip Kola <33080863+koladilip@users.noreply.github.com>
Co-authored-by: Sanjay <71065320+Sanjay-Veernala@users.noreply.github.com>
Co-authored-by: Siva Shanmukh Vetcha <siva.shanmukh@gmail.com>
Co-authored-by: Ujjwal Abhishek <63387036+ujjwal-ab@users.noreply.github.com>
Co-authored-by: Sankeerth <sankeerth@rudderstack.com>
Co-authored-by: AASHISH MALIK <imashishmalik.45@gmail.com>
Co-authored-by: Jayachand <mjayachand@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants