Repository navigation
chore(release): pull main into develop post release v1.107.1 - #4576
Conversation
Summary by CodeRabbit
WalkthroughAdds handling for Ajv’s unevaluatedProperties keyword by treating it like additionalProperties in event validation. The error construction now extracts property and message from either additionalProperty or unevaluatedProperty fields, keeping other error fields unchanged. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant V as Validator
participant AJV as Ajv
participant EH as Error Handler
V->>AJV: validate(event, schema)
AJV-->>V: result or errors[]
alt has errors
V->>EH: process AjvError
alt keyword == additionalProperties or unevaluatedProperties
note right of EH: Extract property from params.additionalProperty<br/>or params.unevaluatedProperty
EH-->>V: rudderValidationError (type, meta, instancePath, schemaPath, property, message)
else other keywords
EH-->>V: existing handling
end
else valid
V-->>V: proceed
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Suggestions:
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. ✨ Finishing Touches
🧪 Generate unit tests
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. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
Status, Documentation and Community
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/util/eventValidation.js (1)
224-226: Harden and DRY the property extraction to avoid “undefined” in messagesUse nullish coalescing with optional chaining and a safe fallback to prevent leaking “undefined” into logs if Ajv ever omits params. This also de-dupes the expression.
Apply this diff:
- message: `${error.message} '${error.params.additionalProperty || error.params.unevaluatedProperty}'`, - property: error.params.additionalProperty || error.params.unevaluatedProperty, + message: `${error.message} '${error.params?.additionalProperty ?? error.params?.unevaluatedProperty ?? '(unknown-property)'}'`, + property: error.params?.additionalProperty ?? error.params?.unevaluatedProperty ?? '(unknown-property)',
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
⛔ Files ignored due to path filters (4)
CHANGELOG.mdis excluded by!**/*.mdpackage-lock.jsonis excluded by!**/package-lock.json,!**/*.jsonpackage.jsonis excluded by!**/*.jsontest/__tests__/trackingPlan.test.jsis excluded by!**/test/**
📒 Files selected for processing (1)
src/util/eventValidation.js(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.js
⚙️ CodeRabbit Configuration File
Focus on ESLint errors (max 3) and warnings (max 5).
Files:
src/util/eventValidation.js
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
- GitHub Check: Code Coverage
- GitHub Check: UT Tests
- GitHub Check: test_and_publish
- GitHub Check: Analyze (go)
- GitHub Check: Analyze (javascript-typescript)
- GitHub Check: Analyze (javascript-typescript)
- GitHub Check: Analyze (go)
🔇 Additional comments (1)
src/util/eventValidation.js (1)
220-231: Good call: handle Ajv’s unevaluatedProperties like additionalPropertiesAdding the unevaluatedProperties branch keeps behavior consistent across drafts and Ajv versions by mapping both to Additional-Properties. This is a sensible, backward-compatible change.
|
Allure Test reports for this run are available at:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #4576 +/- ##
========================================
Coverage 91.81% 91.81%
========================================
Files 642 642
Lines 33927 33930 +3
Branches 8039 8041 +2
========================================
+ Hits 31149 31152 +3
+ Misses 2548 2526 -22
- Partials 230 252 +22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|



👑 An automated PR