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

Change check for isQueryFilter #43356

Merged

Conversation

stacey-gammon
Copy link
Contributor

@stacey-gammon stacey-gammon commented Aug 15, 2019

Change check for isQueryFilter back to original, but acknowledge query_string property could be undefined.

The original fix (#41245) to solve the one migration error mentioned here: #41240 actually caused another bug.

It turns out that the original logic for determining an old style query filter vs a new filter was accurate, so that it should not have been left in the old filters array. We just needed to make sure that if it was an empty query, and query_string is undefined, we don't blow up the conversion.

Fixes #43189

@stacey-gammon stacey-gammon added release_note:skip Skip the PR/issue when compiling release notes release_note:fix v7.3.1 and removed release_note:fix labels Aug 15, 2019
Copy link
Member

@lukeelmers lukeelmers left a comment

Choose a reason for hiding this comment

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

Tested (Chrome OSX) and confirmed it fixes the issue once the new migrations are run against the imported saved objects. Code LGTM 🚀

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@stacey-gammon stacey-gammon merged commit 6700508 into elastic:master Aug 15, 2019
stacey-gammon added a commit to stacey-gammon/kibana that referenced this pull request Aug 15, 2019
stacey-gammon added a commit to stacey-gammon/kibana that referenced this pull request Aug 15, 2019
stacey-gammon added a commit that referenced this pull request Aug 15, 2019
stacey-gammon added a commit that referenced this pull request Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes v7.3.1 v7.4.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

commons.bundle.js:3 Uncaught (in promise) TypeError: Cannot read property 'type' of undefined
3 participants