Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.8] [Security Solution][Endpoint][Response Actions] Fix table navig…
…ation when trays are expanded (#157777) (#158306) # Backport This will backport the following commits from `main` to `8.8`: - [[Security Solution][Endpoint][Response Actions] Fix table navigation when trays are expanded (#157777)](#157777) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Ashokaditya","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-05-23T18:49:02Z","message":"[Security Solution][Endpoint][Response Actions] Fix table navigation when trays are expanded (#157777)\n\n## Summary\r\n\r\nFixes an issue where when an action detail is shown via an expanded tray\r\nitem and the total number of items goes beyond the first page on the\r\nresponse actions history page/flyout, switching between pages while the\r\ntray is open breaks the page.\r\n\r\n- [x] fix paging with trays expanded on a flyout \r\n- [x] fix paging with trays expanded on a page\r\n- [x] ensure when the page is loaded with `?withOutputs=` with action\r\nids from different sets of pages, table paging doesn't break when paged,\r\nand trays show open for the action ids in `?withOutputs=` URL param\r\n- tests:\r\n - [x] page navigation flyout/page view\r\n - [x] page reload with URL params (cypress)\r\n \r\n**flyout**\r\n\r\n![response-logs-flyout](https://github.com/elastic/kibana/assets/1849116/c7c91d0d-3279-4813-b7dd-1365313b7fe4)\r\n\r\n**page**\r\n\r\n![response-logs-page](https://github.com/elastic/kibana/assets/1849116/b68f6e5d-9d0e-456f-8b07-dea07526571b)\r\n\r\n*page with URL load*\r\n- three actions are open on two different pages\r\n- we re-load page 2 with two open trays and then navigate to page 1 to\r\nsee the third one open\r\n- also re-load page 1; we see the tray open, then navigate to page 2 to\r\nsee the other two trays open.\r\n\r\n![response-logs-page-reload](https://github.com/elastic/kibana/assets/1849116/58896b2e-4078-42c0-ac6c-c34d5b1cd42b)\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"9e01dc815f87ccb70f961852f6d7c014e3e43c0b","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Defend Workflows","OLM Sprint","v8.9.0","v8.8.1"],"number":157777,"url":"https://github.com/elastic/kibana/pull/157777","mergeCommit":{"message":"[Security Solution][Endpoint][Response Actions] Fix table navigation when trays are expanded (#157777)\n\n## Summary\r\n\r\nFixes an issue where when an action detail is shown via an expanded tray\r\nitem and the total number of items goes beyond the first page on the\r\nresponse actions history page/flyout, switching between pages while the\r\ntray is open breaks the page.\r\n\r\n- [x] fix paging with trays expanded on a flyout \r\n- [x] fix paging with trays expanded on a page\r\n- [x] ensure when the page is loaded with `?withOutputs=` with action\r\nids from different sets of pages, table paging doesn't break when paged,\r\nand trays show open for the action ids in `?withOutputs=` URL param\r\n- tests:\r\n - [x] page navigation flyout/page view\r\n - [x] page reload with URL params (cypress)\r\n \r\n**flyout**\r\n\r\n![response-logs-flyout](https://github.com/elastic/kibana/assets/1849116/c7c91d0d-3279-4813-b7dd-1365313b7fe4)\r\n\r\n**page**\r\n\r\n![response-logs-page](https://github.com/elastic/kibana/assets/1849116/b68f6e5d-9d0e-456f-8b07-dea07526571b)\r\n\r\n*page with URL load*\r\n- three actions are open on two different pages\r\n- we re-load page 2 with two open trays and then navigate to page 1 to\r\nsee the third one open\r\n- also re-load page 1; we see the tray open, then navigate to page 2 to\r\nsee the other two trays open.\r\n\r\n![response-logs-page-reload](https://github.com/elastic/kibana/assets/1849116/58896b2e-4078-42c0-ac6c-c34d5b1cd42b)\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"9e01dc815f87ccb70f961852f6d7c014e3e43c0b"}},"sourceBranch":"main","suggestedTargetBranches":["8.8"],"targetPullRequestStates":[{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/157777","number":157777,"mergeCommit":{"message":"[Security Solution][Endpoint][Response Actions] Fix table navigation when trays are expanded (#157777)\n\n## Summary\r\n\r\nFixes an issue where when an action detail is shown via an expanded tray\r\nitem and the total number of items goes beyond the first page on the\r\nresponse actions history page/flyout, switching between pages while the\r\ntray is open breaks the page.\r\n\r\n- [x] fix paging with trays expanded on a flyout \r\n- [x] fix paging with trays expanded on a page\r\n- [x] ensure when the page is loaded with `?withOutputs=` with action\r\nids from different sets of pages, table paging doesn't break when paged,\r\nand trays show open for the action ids in `?withOutputs=` URL param\r\n- tests:\r\n - [x] page navigation flyout/page view\r\n - [x] page reload with URL params (cypress)\r\n \r\n**flyout**\r\n\r\n![response-logs-flyout](https://github.com/elastic/kibana/assets/1849116/c7c91d0d-3279-4813-b7dd-1365313b7fe4)\r\n\r\n**page**\r\n\r\n![response-logs-page](https://github.com/elastic/kibana/assets/1849116/b68f6e5d-9d0e-456f-8b07-dea07526571b)\r\n\r\n*page with URL load*\r\n- three actions are open on two different pages\r\n- we re-load page 2 with two open trays and then navigate to page 1 to\r\nsee the third one open\r\n- also re-load page 1; we see the tray open, then navigate to page 2 to\r\nsee the other two trays open.\r\n\r\n![response-logs-page-reload](https://github.com/elastic/kibana/assets/1849116/58896b2e-4078-42c0-ac6c-c34d5b1cd42b)\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"9e01dc815f87ccb70f961852f6d7c014e3e43c0b"}},{"branch":"8.8","label":"v8.8.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Ashokaditya <[email protected]>
- Loading branch information