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

feat: mixpanel set once feature onboard #2820

Merged
merged 23 commits into from
Nov 23, 2023
Merged

feat: mixpanel set once feature onboard #2820

merged 23 commits into from
Nov 23, 2023

Conversation

shrouti1507
Copy link
Contributor

@shrouti1507 shrouti1507 commented Nov 10, 2023

Description of the change

Resolve INT-948

ref: https://developer.mixpanel.com/reference/profile-set-property-once
Observations :

  • set_once doesn’t set / update values of exisiting fields
  • any fields set via set_once can be updated by set property
  • we need to remove set_once traits from the properties which are being set to mixpanel by default or by users choice - not allow re-writes for set_once traits
  • Need to add a dynamic custom form in UI and pull the trait names from there

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

@shrouti1507 shrouti1507 self-assigned this Nov 10, 2023
Copy link

codecov bot commented Nov 10, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (5c63d2c) 87.15% compared to head (2949fa1) 87.16%.

Files Patch % Lines
src/v0/util/index.js 75.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2820      +/-   ##
===========================================
+ Coverage    87.15%   87.16%   +0.01%     
===========================================
  Files          772      772              
  Lines        28745    28788      +43     
  Branches      6753     6764      +11     
===========================================
+ Hits         25052    25094      +42     
- Misses        3350     3351       +1     
  Partials       343      343              

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

@shrouti1507 shrouti1507 changed the title feat: Mixpanel set once feature onboard feat: mixpanel set once feature onboard Nov 10, 2023
@shrouti1507 shrouti1507 marked this pull request as ready for review November 13, 2023 12:56
@shrouti1507 shrouti1507 requested review from a team and sivashanmukh as code owners November 13, 2023 12:56
@Gauravudia
Copy link
Contributor

@shrouti1507 Unit test cases are missing.

src/v0/destinations/mp/data/MPIdentifyConfig.json Outdated Show resolved Hide resolved
src/v0/destinations/mp/transform.js Outdated Show resolved Hide resolved
src/v0/destinations/mp/transform.js Outdated Show resolved Hide resolved
src/v0/destinations/mp/transform.js Show resolved Hide resolved
src/v0/destinations/mp/transform.js Outdated Show resolved Hide resolved
@shrouti1507
Copy link
Contributor Author

@shrouti1507 Unit test cases are missing.

added

src/v0/destinations/mp/transform.js Outdated Show resolved Hide resolved
src/v0/destinations/mp/util.js Outdated Show resolved Hide resolved
src/v0/destinations/mp/util.test.js Show resolved Hide resolved
src/v0/destinations/mp/util.js Show resolved Hide resolved
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 0 Code Smells

92.6% 92.6% Coverage
0.0% 0.0% Duplication

@shrouti1507 shrouti1507 merged commit 9eda50e into develop Nov 23, 2023
16 checks passed
anantjain45823 pushed a commit that referenced this pull request Dec 1, 2023
* feat: initial commit

* feat: making sure existing functionality is intact

* fix: edits for exclusion keys

* fix: edits for supporting property paths

* fix: delete wrong test case

* fix: test cases

* fix: removed unnecessary code

* fix: adding unit test cases for trimTraits

* fix: changing the order of priority in property mapping

* fix: edited distinct id logic

* fix: small edit

* fix: review comments addressed

* fix: adding dedicated mappingJson for setOnce

* fix: adding all the fields to the dedicated json

* fix: addressing review comments

* feat: review comments addressed
@devops-github-rudderstack devops-github-rudderstack deleted the feat.mp_set_once branch February 24, 2024 01:20
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.

3 participants