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

[Discover] Fix flaky test for "context encoded URL params" #132808

Merged
merged 5 commits into from
May 25, 2022

Conversation

jughosta
Copy link
Contributor

@jughosta jughosta commented May 24, 2022

Closes #132553

Flaky test runner 50x https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/667

Checklist

@jughosta jughosta added Feature:Discover Discover Application release_note:fix backport:skip This commit does not require backporting Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. v8.4.0 labels May 24, 2022
@jughosta jughosta self-assigned this May 24, 2022
@jughosta jughosta marked this pull request as ready for review May 24, 2022 18:57
@jughosta jughosta requested a review from a team as a code owner May 24, 2022 18:57
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@jughosta
Copy link
Contributor Author

@elasticmachine merge upstream

Comment on lines 34 to 37
await kibanaServer.uiSettings.update({
'doc_table:legacy': false,
'discover:searchOnPageLoad': true,
});
Copy link
Member

@kertal kertal May 25, 2022

Choose a reason for hiding this comment

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

this is an interesting case since discover:searchOnPageLoad should already be true. I'd suggest to add to the after part of _search_on_page_load.ts

await kibanaServer.uiSettings.replace(defaultSettings);

So it should be cleaned up correctly , and since L34-L37 are setting default values, it could be removed.

@jughosta
Copy link
Contributor Author

@elasticmachine merge upstream

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.

LGTM, thx for cleaning this up! 👍

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @jughosta

@jughosta jughosta merged commit 06a98d7 into elastic:main May 25, 2022
@jughosta jughosta deleted the 132553-flaky-test-context-encoded-url branch May 25, 2022 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Discover Discover Application release_note:fix Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. v8.4.0
Projects
None yet
5 participants