fix: Makes time compare migration more resilient#33592
Merged
michael-s-molina merged 3 commits intoapache:masterfrom May 27, 2025
Merged
fix: Makes time compare migration more resilient#33592michael-s-molina merged 3 commits intoapache:masterfrom
michael-s-molina merged 3 commits intoapache:masterfrom
Conversation
There was a problem hiding this comment.
Review by Korbit AI
Korbit automatically attempts to detect when you fix issues in new commits.
| Category | Issue | Status |
|---|---|---|
| Inefficient String Operations in List Comprehension ▹ view | 🧠 Not in standard |
Files scanned
| File Path | Reviewed |
|---|---|
| superset/migrations/shared/migrate_viz/processors.py | ✅ |
Explore our documentation to understand the languages and file types we support and the files we ignore.
Check out our docs on how you can make Korbit work best for you and your team.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #33592 +/- ##
===========================================
+ Coverage 60.48% 83.02% +22.53%
===========================================
Files 1931 554 -1377
Lines 76236 40670 -35566
Branches 8568 0 -8568
===========================================
- Hits 46114 33766 -12348
+ Misses 28017 6904 -21113
+ Partials 2105 0 -2105
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
betodealmeida
approved these changes
May 27, 2025
michael-s-molina
added a commit
that referenced
this pull request
May 28, 2025
(cherry picked from commit b7ba500)
LevisNgigi
pushed a commit
to LevisNgigi/superset
that referenced
this pull request
Jun 18, 2025
9 tasks
This was referenced Jan 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SUMMARY
While testing 5.0, we noticed that some users manually entered time compare values like
1 year agothat are valid for ECharts visualizations but not for legacy visualizations. We also found empty time compare values instead of an empty list. This fix makes the migration more resilient by handling these cases.TESTING INSTRUCTIONS
CI should be sufficient.
ADDITIONAL INFORMATION