-
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: Fix migration for removing time_range_endpoints 3 #19767
Conversation
do you want to make cecc6bf46990 a noop again? |
Codecov Report
@@ Coverage Diff @@
## master #19767 +/- ##
=======================================
Coverage 66.51% 66.51%
=======================================
Files 1687 1690 +3
Lines 64618 64616 -2
Branches 6646 6656 +10
=======================================
Hits 42978 42978
+ Misses 19940 19937 -3
- Partials 1700 1701 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Looks good. Can you confirm in the description if the upgrade and downgrade have both been run?
Verifed locally that this migration works:
|
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.
Left a few minor comments
session.merge(slc) | ||
slices_updated += 1 | ||
|
||
print(f"slices updated with no time_range_endpoints: {slices_updated}") |
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.
What if the update_slice method only returns a value if it actually finds the json key it's looking for? Then the log message would be accurate.
session.merge(slc) | ||
slices_updated += 1 | ||
|
||
print(f"slices updated with no time_range_endpoints: {slices_updated}") |
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.
Please use logger.info instead of print.
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.
logger.info wasn't properly printing when the running the upgrade
* fix migration * so dumb * update test * add code change * retest (cherry picked from commit 7e92340)
🏷️ preset:2022.15 |
* fix migration * so dumb * update test * add code change * retest
SUMMARY
Update on #19728 to also remove
time_range_endpoints
fromform_data
payload as well.Benchmarking Results:
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION