Filter out dataset-field and spec fields for correct download#1162
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughExpanded system-field suppression: Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
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. Comment Tip You can disable poems in the walkthrough.Disable the |
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/middleware/common.middleware.js`:
- Line 469: The logging call currently dereferences req.dataset.dataset
unconditionally in logger.info, which can throw if req.dataset is undefined;
update the middleware to guard access to req.dataset (e.g., check if req.dataset
exists or use optional chaining when building the log payload) and log a safe
value (null/undefined or an empty object/string) for dataset when absent; ensure
you update the specific logger.info invocation that references
req.uniqueDatasetFields and req.dataset.dataset so unit tests no longer throw.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 86c5ebad-ef10-44aa-9264-af0dbad07bcf
📒 Files selected for processing (1)
src/middleware/common.middleware.js
Description
Please replace this line with a brief description of the changes made.
What type of PR is this? (check all applicable)
Related Tickets & Documents
QA Instructions, Screenshots, Recordings
Before
Before screenshot here
After
After screenshot here
Added/updated tests?
We encourage you to keep the code coverage percentage at 80% and above.
QA sign off
[optional] Are there any post-deployment tasks we need to perform?
[optional] Are there any dependencies on other PRs or Work?
Summary by CodeRabbit
Bug Fixes
Documentation