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

[Security Solution] Re-enable a skipped url state e2e test #152075

Merged
merged 2 commits into from
Mar 1, 2023

Conversation

maximpn
Copy link
Contributor

@maximpn maximpn commented Feb 24, 2023

Relates to: #151244

Summary

Re-enable Do not clears kql when navigating to a new page url state e2e test.

Details

Investigation has shown that #150787 lead to breaking this test. While it's not clear from the EUI upgrade PR itself the cause lays under the hood. It fixes retrieving the state (current KQL) from the url. As the test visits the page with the saved KQL which is properly restored the next kqlSearch() command types the same KQL in the query bar leading to invalid KQL and broken test eventually. For some reason the KQL wasn't able to restore on this page while it's not an issue anymore I removed kqlSearch() command and fixed the test this way.

@maximpn maximpn added release_note:skip Skip the PR/issue when compiling release notes Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Detection Rule Management Security Detection Rule Management Team backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) v8.7.0 v8.8.0 labels Feb 24, 2023
@maximpn maximpn self-assigned this Feb 24, 2023
@maximpn maximpn marked this pull request as ready for review February 24, 2023 14:42
@maximpn maximpn requested a review from a team as a code owner February 24, 2023 14:42
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detections-response (Team:Detections and Resp)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@maximpn
Copy link
Contributor Author

maximpn commented Feb 28, 2023

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Unknown metric groups

ESLint disabled line counts

id before after diff
securitySolution 428 430 +2

Total ESLint disabled count

id before after diff
securitySolution 506 508 +2

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

cc @maximpn

@maximpn maximpn merged commit 5514f93 into elastic:main Mar 1, 2023
@maximpn maximpn deleted the re-enable-kql-e2e-test branch March 1, 2023 09:04
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 1, 2023
…52075)

**Relates to:** elastic#151244

## Summary

Re-enable `Do not clears kql when navigating to a new page` url state e2e test.

## Details

Investigation has shown that elastic#150787 lead to breaking this test. While it's not clear from the EUI upgrade PR itself the cause lays under the hood. It fixes retrieving the state (current KQL) from the url. As the test visits the page with the saved KQL which is properly restored the next `kqlSearch()` command types the same KQL in the query bar leading to invalid KQL and broken test eventually. For some reason the KQL wasn't able to restore on this page while it's not an issue anymore I removed `kqlSearch()` command and fixed the test this way.

(cherry picked from commit 5514f93)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.7

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Mar 1, 2023
…2075) (#152423)

# Backport

This will backport the following commits from `main` to `8.7`:
- [[Security Solution] Re-enable a skipped url state e2e test
(#152075)](#152075)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Maxim
Palenov","email":"maxim.palenov@elastic.co"},"sourceCommit":{"committedDate":"2023-03-01T09:04:31Z","message":"[Security
Solution] Re-enable a skipped url state e2e test (#152075)\n\n**Relates
to:** https://github.com/elastic/kibana/pull/151244\r\n\r\n##
Summary\r\n\r\nRe-enable `Do not clears kql when navigating to a new
page` url state e2e test.\r\n\r\n## Details\r\n\r\nInvestigation has
shown that #150787 lead to
breaking this test. While it's not clear from the EUI upgrade PR itself
the cause lays under the hood. It fixes retrieving the state (current
KQL) from the url. As the test visits the page with the saved KQL which
is properly restored the next `kqlSearch()` command types the same KQL
in the query bar leading to invalid KQL and broken test eventually. For
some reason the KQL wasn't able to restore on this page while it's not
an issue anymore I removed `kqlSearch()` command and fixed the test this
way.","sha":"5514f93fc8ecccc007d1e25c9413df1c739feae9","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Detections
and Resp","Team: SecuritySolution","Team:Detection
Rules","backport:prev-minor","v8.7.0","v8.8.0"],"number":152075,"url":"https://github.com/elastic/kibana/pull/152075","mergeCommit":{"message":"[Security
Solution] Re-enable a skipped url state e2e test (#152075)\n\n**Relates
to:** https://github.com/elastic/kibana/pull/151244\r\n\r\n##
Summary\r\n\r\nRe-enable `Do not clears kql when navigating to a new
page` url state e2e test.\r\n\r\n## Details\r\n\r\nInvestigation has
shown that #150787 lead to
breaking this test. While it's not clear from the EUI upgrade PR itself
the cause lays under the hood. It fixes retrieving the state (current
KQL) from the url. As the test visits the page with the saved KQL which
is properly restored the next `kqlSearch()` command types the same KQL
in the query bar leading to invalid KQL and broken test eventually. For
some reason the KQL wasn't able to restore on this page while it's not
an issue anymore I removed `kqlSearch()` command and fixed the test this
way.","sha":"5514f93fc8ecccc007d1e25c9413df1c739feae9"}},"sourceBranch":"main","suggestedTargetBranches":["8.7"],"targetPullRequestStates":[{"branch":"8.7","label":"v8.7.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/152075","number":152075,"mergeCommit":{"message":"[Security
Solution] Re-enable a skipped url state e2e test (#152075)\n\n**Relates
to:** https://github.com/elastic/kibana/pull/151244\r\n\r\n##
Summary\r\n\r\nRe-enable `Do not clears kql when navigating to a new
page` url state e2e test.\r\n\r\n## Details\r\n\r\nInvestigation has
shown that #150787 lead to
breaking this test. While it's not clear from the EUI upgrade PR itself
the cause lays under the hood. It fixes retrieving the state (current
KQL) from the url. As the test visits the page with the saved KQL which
is properly restored the next `kqlSearch()` command types the same KQL
in the query bar leading to invalid KQL and broken test eventually. For
some reason the KQL wasn't able to restore on this page while it's not
an issue anymore I removed `kqlSearch()` command and fixed the test this
way.","sha":"5514f93fc8ecccc007d1e25c9413df1c739feae9"}}]}] BACKPORT-->

Co-authored-by: Maxim Palenov <maxim.palenov@elastic.co>
bmorelli25 pushed a commit to bmorelli25/kibana that referenced this pull request Mar 10, 2023
…52075)

**Relates to:** elastic#151244

## Summary

Re-enable `Do not clears kql when navigating to a new page` url state e2e test.

## Details

Investigation has shown that elastic#150787 lead to breaking this test. While it's not clear from the EUI upgrade PR itself the cause lays under the hood. It fixes retrieving the state (current KQL) from the url. As the test visits the page with the saved KQL which is properly restored the next `kqlSearch()` command types the same KQL in the query bar leading to invalid KQL and broken test eventually. For some reason the KQL wasn't able to restore on this page while it's not an issue anymore I removed `kqlSearch()` command and fixed the test this way.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) release_note:skip Skip the PR/issue when compiling release notes Team:Detection Rule Management Security Detection Rule Management Team Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v8.7.0 v8.8.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants