-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[TSVB] Add migration script for 'drop_last_bucket' value #110782
[TSVB] Add migration script for 'drop_last_bucket' value #110782
Conversation
src/plugins/visualizations/server/migrations/visualization_common_migrations.ts
Outdated
Show resolved
Hide resolved
Pinging @elastic/kibana-vis-editors (Team:VisEditors) |
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.
LGTM, tested locally
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: cc @alexwizp |
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.
LGTM, I tested locally various cases and the migrations work fine
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.
code review LGTM!
…111091) * [TSVB] Add migration script for 'drop_last_bucket' value * Update visualization_saved_object_migrations.test.ts * fix PR comments # Conflicts: # src/plugins/visualizations/server/embeddable/visualize_embeddable_factory.ts
Fix regression of #97257
Summary
By default,
drop_last_bucket
/series_drop_last_bucket
is not defined in the model. This caused a problem when upgrading to version 7.14 as the default value was changed in #97257. As a result - after updating, saved visualizations show different dataWhat was done in that PR: