-
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
update assumption that panelIndex may be missing #44793
update assumption that panelIndex may be missing #44793
Conversation
💔 Build Failed |
Everything passed, just firefox smoke is "grey" jenkins, test this |
💚 Build Succeeded |
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 LGTM. Tested locally by upgrading from a 6.8 docker image, to our current 7.x version. Saved object with missing panelIndex was migrated without exception, it failed in 7.3.1. I'd consider a 7.4 merge, another failing migration popped up yesterday.
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 LGTM
@LeeDr - any objections to backporting this to 7.4? It's an upgrade bug. Users who hit it will not be able to upgrade to 7.3 or 7.4. |
Backported to 7.4 as well. |
Summary
Fixes #44639.
Folks upgrading from very old Kibana instances may actually have panels in panelsJSON that are missing the
panelIndex
property. This should only be the case whenuiStateJSON
is an empty object, otherwise you needpanelIndex
to map to whatever is stored in there.No one with panels like this will be able to upgrade to 7.3 without this fix, so we can continue to assume that folks who did upgrade to 7.3 or higher have panels in the right shape (e.g. I can keep the type
RawSavedDashboardPanel730ToLatest
the same, just need to change our assumptions on older type panels).We may want to consider backporting to 7.4, though, not too many issues have come in.