Repository navigation
fix: property validations in mixpanel - #4269
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
Allure Test reports for this run are available at:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## hotfix/20250422 #4269 +/- ##
===================================================
- Coverage 91.21% 91.17% -0.05%
===================================================
Files 632 632
Lines 33057 33075 +18
Branches 7826 7832 +6
===================================================
+ Hits 30154 30156 +2
+ Misses 2688 2674 -14
- Partials 215 245 +30 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|



What are the changes introduced in this PR?
This pull request removes the validation for maximum nesting depth in Mixpanel payloads and updates the related code, configurations, and tests accordingly. The changes ensure that payloads are no longer restricted by a nesting depth limit while maintaining other existing validations.
Removal of Maximum Nesting Depth Validation:
MAX_NESTING_DEPTHconstant fromsrc/v0/destinations/mp/config.jsand its references in the module exports. ([[1]](https://github.com/rudderlabs/rudder-transformer/pull/4269/files#diff-b086c0407309f7eb2db3193bf41d6d974ae42cdbcee756cd90d412d2958c2f96L63),[[2]](https://github.com/rudderlabs/rudder-transformer/pull/4269/files#diff-b086c0407309f7eb2db3193bf41d6d974ae42cdbcee756cd90d412d2958c2f96L84))validateObjectRecursivelyfunction insrc/v0/destinations/mp/util.jsto eliminate the depth parameter and remove the logic for checking nesting depth. ([[1]](https://github.com/rudderlabs/rudder-transformer/pull/4269/files#diff-94e841c0e46947151ce5b7bc7eecf1002a9afc1d579ad57b1cf373118a74fff3L53-R52),[[2]](https://github.com/rudderlabs/rudder-transformer/pull/4269/files#diff-94e841c0e46947151ce5b7bc7eecf1002a9afc1d579ad57b1cf373118a74fff3L85-R88),[[3]](https://github.com/rudderlabs/rudder-transformer/pull/4269/files#diff-94e841c0e46947151ce5b7bc7eecf1002a9afc1d579ad57b1cf373118a74fff3L115-R106))validateMixpanelPayloadLimitsfunction to reflect the removal of nesting depth validation. ([src/v0/destinations/mp/util.jsL115-R106](https://github.com/rudderlabs/rudder-transformer/pull/4269/files#diff-94e841c0e46947151ce5b7bc7eecf1002a9afc1d579ad57b1cf373118a74fff3L115-R106))Codebase Adjustments:
validateMixpanelPayloadLimitsin specific parts of the codebase where it was no longer required, such as insrc/v0/destinations/mp/transform.jsandsrc/v0/destinations/mp/util.js. ([[1]](https://github.com/rudderlabs/rudder-transformer/pull/4269/files#diff-5208294c2bfab48d117a1b6c92ffd316a5efd733831419bb7ed12484d30e9a77L65),[[2]](https://github.com/rudderlabs/rudder-transformer/pull/4269/files#diff-5208294c2bfab48d117a1b6c92ffd316a5efd733831419bb7ed12484d30e9a77L191-R190),[[3]](https://github.com/rudderlabs/rudder-transformer/pull/4269/files#diff-5208294c2bfab48d117a1b6c92ffd316a5efd733831419bb7ed12484d30e9a77R383),[[4]](https://github.com/rudderlabs/rudder-transformer/pull/4269/files#diff-94e841c0e46947151ce5b7bc7eecf1002a9afc1d579ad57b1cf373118a74fff3L210-L212))Test Updates:
src/v0/destinations/mp/util.test.jsto ensure that payloads with deep nesting no longer throw errors. ([[1]](https://github.com/rudderlabs/rudder-transformer/pull/4269/files#diff-8c2d27692294dbb8dc6ba62734ef3f2b5ea72bcbca2c5fbd597570e522542a41L868-R868),[[2]](https://github.com/rudderlabs/rudder-transformer/pull/4269/files#diff-8c2d27692294dbb8dc6ba62734ef3f2b5ea72bcbca2c5fbd597570e522542a41L931-R928))What is the related Linear task?
Resolves INT-3555
Please explain the objectives of your changes below
Put down any required details on the broader aspect of your changes. If there are any dependent changes, mandatorily mention them here
Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
N/A
Any new dependencies introduced with this change?
N/A
Any new generic utility introduced or modified. Please explain the changes.
N/A
Any technical or performance related pointers to consider with the change?
N/A
@coderabbitai review
Developer checklist
My code follows the style guidelines of this project
No breaking changes are being introduced.
All related docs linked with the PR?
All changes manually tested?
Any documentation changes needed with this change?
Is the PR limited to 10 file changes?
Is the PR limited to one linear task?
Are relevant unit and component test-cases added in new readability format?
Reviewer checklist
Is the type of change in the PR title appropriate as per the changes?
Verified that there are no credentials or confidential data exposed with the changes.