chore(importers): log field names instead of full config on validation failure#42399
chore(importers): log field names instead of full config on validation failure#42399rusackas wants to merge 2 commits into
Conversation
…n failure The debug log dumped the entire parsed config dict when schema validation failed. Those blobs can be enormous (inline example data, multi-line keys) and bury the actual validation error logged just above. Log the file name and its top-level field names instead. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Code Review Agent Run #49d1abActionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
|
The code change in superset/commands/importers/v1/utils.py |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #42399 +/- ##
==========================================
- Coverage 65.27% 65.23% -0.04%
==========================================
Files 2795 2795
Lines 157555 157629 +74
Branches 36041 36056 +15
==========================================
- Hits 102839 102837 -2
- Misses 52739 52814 +75
- Partials 1977 1978 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…ng and unsortable configs Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
SUMMARY
When schema validation fails during an import, the debug log dumps the entire parsed config dict. Those blobs can be enormous (inline example data, multi-line keys) and bury the actual validation error that's logged right above. This trims the debug line to the file name plus its top-level field names, which is what you actually need to correlate the failure.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A (log output only)
TESTING INSTRUCTIONS
With debug logging enabled, import a bundle with an invalid config and confirm the log shows the field-name list instead of the full config dump.
ADDITIONAL INFORMATION
🤖 Generated with Claude Code