-
Notifications
You must be signed in to change notification settings - Fork 14k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(migrations): Fixing cross filter migration #24279
fix(migrations): Fixing cross filter migration #24279
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Go go go
|
||
if "global_chart_configuration" in json_metadata: | ||
del json_metadata["global_chart_configuration"] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
if "global_chart_configuration" in json_metadata: | |
del json_metadata["global_chart_configuration"] | |
json_metadata.pop('global_chart_configuration') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.pop()
fails if the key doesn't exist:
>>> {}.pop(1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyError: 1
Codecov Report
@@ Coverage Diff @@
## master #24279 +/- ##
==========================================
+ Coverage 68.29% 68.31% +0.01%
==========================================
Files 1957 1957
Lines 75624 75624
Branches 8223 8223
==========================================
+ Hits 51649 51664 +15
+ Misses 21867 21852 -15
Partials 2108 2108
Flags with carried forward coverage won't be shown. Click here to find out more. see 5 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
🏷️ preset:2023.21 |
(cherry picked from commit c5ea40f)
SUMMARY
Fixing bug in down migration for Cross Filtering