Repository navigation
chore(release): pull release/v1.103.0 into main - #4423
Conversation
* fix: handle empty oauth secret for multiple destination * fix: test * fix: add validation for other field * chore: add missing test * chore: add more test * chore: change test * chore: misc
* feat: implement hasDynamicConfig flag support in routerTransform flow
This implements support for the hasDynamicConfig flag in the routerTransform flow to fix
the issue where events with dynamic configuration were being mixed up during transformation.
The implementation includes:
1. Added a new hasDynamicConfig flag to the Destination type in controlPlaneConfig.ts to indicate
whether a destination's configuration contains dynamic config patterns
2. Modified the dynamicConfigParser.ts to respect the hasDynamicConfig flag:
- Skip processing when hasDynamicConfig is explicitly false
- Process events when hasDynamicConfig is true or undefined (for backward compatibility)
3. Enhanced groupRouterTransformEvents function in src/v0/util/index.js to:
- Group events by destination config when hasDynamicConfig is true or undefined
- Use fast-json-stable-stringify to ensure consistent grouping of configs with different key orders
- Maintain backward compatibility with older server versions where the flag might not be present
4. Added comprehensive test cases for:
- Testing behavior with hasDynamicConfig=false
- Testing behavior with hasDynamicConfig=true
- Testing backward compatibility with hasDynamicConfig=undefined
- Testing mixed hasDynamicConfig flags in a batch
- Testing configs with different key orders
This implementation resolves INT-3633 by ensuring that events with dynamic configuration are properly
grouped and processed in the routerTransform flow, preventing event mix-up issues.
Dependencies:
- Added fast-json-stable-stringify package to ensure consistent JSON string representation regardless of key order
* fix: add hasDynamicConfig flag support in routerTransform flow
* test: add hasDynamicConfig flag to test files
fix tests
* refactor: optimize dynamicConfigParser to avoid deep cloning entire event
* fix: restore unset functionality in dynamic config parser
- Add unset-value import to properly remove extracted fields from events
- Restore unset() call after extracting dynamic config values to prevent downstream issues
- Change from shallow to deep cloning to avoid modifying original events during unset operations
- Add comprehensive test to verify unset functionality works correctly
- Add shouldGroupByDestinationConfig method to JavaScript dynamic config module
- Update groupRouterTransformEvents to use shouldGroupByDestinationConfig function
- Add environment variable tests for USE_HAS_DYNAMIC_CONFIG_FLAG in router grouping logic
This ensures that fields used in dynamic config templates (e.g., {{ message.traits.appId || 'default' }})
are properly removed from events after extraction, preventing potential conflicts in destination processing.
* refactor: optimize dynamic config parser and consolidate utilities
- Move utility functions from dynamicConfig.js to utils.js for better organization
- Optimize DynamicConfigParser with pre-compiled regex patterns and efficient loops
- Replace deep cloning with selective cloning for better performance
- Remove standalone dynamicConfig.js and dynamicConfig.test.js files
- Update imports and references across affected modules
…s offline conversions (#4359) - Add sorting by jobId to removeDuplicateMetadata function - Sort final batch results by minimum jobId for consistent ordering - Re-enable router output assertion for google_adwords_offline_conversions tests - Update test data ordering to match new consistent batch processing behavior - Fix unit test expectations to match new sorted metadata order
* chore: migrate tiktok_ads to new test * chore: review comments * chore: review comments * chore: review comments * chore: review comments * chore: rebase
- Add rudder-test destination for platform testing and development - Implement TypeScript destination with router-only transformation - Support Record v2 events with echo response pattern - Add context-based test behavior control via testBehavior field - Migrate tests to new format using migration script - Optimize tests with generateMetadata utility and common destination - Enable Zod validation and enhanced Allure reporting - Add npm script 'rudder-tests' for convenient test execution - Update README.md with comprehensive destination documentation The rudder-test destination provides a controlled testing environment without external dependencies, ideal for platform feature testing, development workflows, and CI/CD reliability. refactor: reduce code duplication in rudder_test destination - Extract common validation and request building logic to utils.ts - Add processor transformation function alongside existing router function - Create comprehensive component tests for both processor and router - Implement shared utilities for message validation, request config building, and test behavior handling - Maintain different error handling patterns for processor (throws) vs router (returns error objects) - Add 6 test cases covering success scenarios, error responses, and validation failures refactor: improve type safety in rudder_test utils - Replace 'any' types with specific Metadata and RudderTestDestination types - Import proper types from '../../../types' for better type safety - Enhance IntelliSense support and compile-time error detection - Address coderabbitai bot feedback on PR #4352 feat: enhance rudder_test destination with comprehensive dynamic config testing - Modified rudder_test destination to actually use resolved dynamic config values - Added endpoint and apiKey resolution from destination config in utils.ts - Updated transform.ts to pass destination config to utility functions - Enhanced type definitions to support RudderTestConfig interface - Added multi-event test cases for both processor and router - Tests validate multiple events with different dynamic config values resolve correctly - Added mixed destination ID scenarios (different hasDynamicConfig flags) - Added compaction tests with multiple events and dynamic config - All 20 tests now pass and actually validate dynamic config resolution These tests will surface thread safety issues and shared state problems in dynamic config processing by testing scenarios where multiple events have different template variable values that must resolve independently. docs: update rudder_test destination documentation with dynamic config features - Added dynamic config resolution capabilities to feature list - Updated implementation details to reflect both processor and router support - Added comprehensive test coverage information (20 test cases) - Included dynamic config examples with template syntax - Added multi-event testing and thread safety testing use cases - Updated key files list to include utils.ts and enhanced type definitions - Corrected architecture description from router-only to dual implementation
* chore: sfmc ai generated docs * chore: sfmc api section in docs * chore: separate out transformer logic from main doc * chore: vdm-v2 related faulty docs fix
…chore.pull-main-to-develop-2
This reverts commit af6e580.
- Add test behaviors in rudder_test transform to mutate and replace destination config - Add router and processor component tests for both property mutation and config reference replacement in compacted payload flow - Assert correct error handling and status codes when mutation is attempted on frozen config - Ensures immutability of config is enforced and covered in both flows - Remove unneccessary clonedeep in router transform flow by fixing code
* feat: testing tool * chore: changes * chore: code structure * fix: eslint * chore: review comments * chore: review comment * feat: add server request creation flow
* fix: blucore optin event mapping * fix: review comments * chore: add subscription event * chore: add subscription event * fix: reviews comments * chore: blucore add internal doc and migrate test * chore: misc * chore: misc * fix: readme * chore: update docs * fix(bluecore): address PR #4353 reviewer feedback and API documentation corrections ✅ Complete reviewer feedback resolution: - Removed all 16 'NEEDS REVIEW' placeholders with concrete information - Removed AI-generated optimization recommendations section - Simplified repetitive business logic content by creating detailed businesslogic.md - Updated documentation structure to follow rs-ai repository standards 🔧 API Documentation Corrections: - Corrected API type from 'Transactional API' to 'Events API' throughout documentation - Updated endpoint information to reflect actual implementation: https://api.bluecore.app/api/track/mobile/v1 - Fixed authentication method documentation (namespace token in payload vs Bearer header) - Updated rate limiting information to reflect Events API (removed incorrect Transactional API limits) - Updated References section with official Events API documentation link 📚 Documentation Structure Improvements: - Created comprehensive businesslogic.md with detailed field mappings and transformation flows - Streamlined main README by removing repetitive sections and adding cross-references - Consolidated error handling, testing, and performance sections - Updated RETL documentation for consistency 🔍 Code Analysis Verification: - Verified endpoint match between code implementation and documentation - Confirmed authentication method matches actual implementation - Validated all API references against official Bluecore Events API documentation Files modified: - src/cdk/v2/destinations/bluecore/README.md (extensive updates) - src/cdk/v2/destinations/bluecore/docs/businesslogic.md (created) - src/cdk/v2/destinations/bluecore/docs/retl.md (updated) The documentation now accurately reflects the actual Bluecore Events API implementation and provides reliable information for users integrating with Bluecore through RudderStack. * chore: docs * chore: review comments * fix: review comments * fix: review comments * fix: review comments
* fix: make testing tool compatible with cross plateform * fix: review comments * fix: review comments
* chore: criteo audience api version upgrade * chore: add destination integration doc * chore: resolving comments
* fix: router output ordering for tiktok_ads * fix: test * fix: test * fix: test * fix: rt event ordering for hs
…ator (#4413) * feat: update workflow to raise pr for dedicated transformer from operator * Update .github/workflows/prepare-for-prod-dt-deploy.yml Co-authored-by: Krishna Chaitanya <[email protected]> * chore: revert rollback changes --------- Co-authored-by: Sudip Paul <[email protected]> Co-authored-by: Krishna Chaitanya <[email protected]>
chore: remove broken updating dedicated deployment workflow Co-authored-by: Sudip Paul <[email protected]>
…nations (#4419) * chore(mailchimp): add router test with inputs contains different destinations * chore: misc
|
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:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4423 +/- ##
==========================================
- Coverage 91.14% 91.14% -0.01%
==========================================
Files 638 638
Lines 33478 33475 -3
Branches 7902 7905 +3
==========================================
- Hits 30513 30510 -3
Misses 2696 2696
Partials 269 269 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
* fix: enhance config object in ga4v2 instead of mutation * chore: update changelog
|
Allure Test reports for this run are available at:
|
|



👑 An automated PR