Skip to content
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

Conversation

stacey-gammon
Copy link
Contributor

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 when uiStateJSON is an empty object, otherwise you need panelIndex 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.

@stacey-gammon stacey-gammon added bug Fixes for quality problems that affect the customer experience release_note:fix v8.0.0 v7.5.0 labels Sep 4, 2019
@elasticmachine
Copy link
Contributor

💔 Build Failed

@stacey-gammon
Copy link
Contributor Author

Everything passed, just firefox smoke is "grey"

jenkins, test this

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Member

@kertal kertal left a 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.

Copy link
Member

@ppisljar ppisljar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code LGTM

@stacey-gammon stacey-gammon merged commit d730298 into elastic:master Sep 5, 2019
@stacey-gammon
Copy link
Contributor Author

@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.

@stacey-gammon
Copy link
Contributor Author

Backported to 7.4 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience release_note:fix v7.4.0 v7.5.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migration of dashboard fails due to missing panelIndex property
4 participants