Skip to content

[SECURITY SOLUTIONS] Keep context of timeline when switching tabs in security solutions#82237

Merged
XavierM merged 24 commits intoelastic:masterfrom
XavierM:keep_state_of_timeline_in_redux_2
Nov 6, 2020
Merged

[SECURITY SOLUTIONS] Keep context of timeline when switching tabs in security solutions#82237
XavierM merged 24 commits intoelastic:masterfrom
XavierM:keep_state_of_timeline_in_redux_2

Conversation

@XavierM
Copy link
Copy Markdown
Contributor

@XavierM XavierM commented Nov 2, 2020

Summary

This PR is related to this issue #81833 with the caveat that I am not able to fix all the issues at once since the main problem is about how we are bootstrapping our different tabs as a sub plugin to have the kibana menu on the left. So we won't be able to close the issue for 7.10, but we will give at least a better experience for the end user

So this PR will eliminate these:

  • Timeline's query does NOT re-execute
  • The selected page does NOT reset from 3 to 1
  • The expanded event remains expanded

but I was not able to keep the scroll position of the table the same.

We also add a small bug on the popover on the network page
image

@XavierM XavierM added bug Fixes for quality problems that affect the customer experience v8.0.0 release_note:skip Skip the PR/issue when compiling release notes impact:critical This issue should be addressed immediately due to a critical level of impact on the product. v7.10.0 Team:Threat Hunting Security Solution Threat Hunting Team labels Nov 2, 2020
@XavierM XavierM requested review from a team as code owners November 2, 2020 05:17
@XavierM XavierM self-assigned this Nov 2, 2020
@XavierM XavierM force-pushed the keep_state_of_timeline_in_redux_2 branch 3 times, most recently from 62138c3 to b97fde3 Compare November 2, 2020 23:03
@XavierM XavierM force-pushed the keep_state_of_timeline_in_redux_2 branch from b97fde3 to 91ef942 Compare November 2, 2020 23:04
@XavierM XavierM added v7.10.1 and removed v7.10.0 labels Nov 4, 2020
Copy link
Copy Markdown
Contributor

@andrew-goldstein andrew-goldstein left a comment

Choose a reason for hiding this comment

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

Thanks @XavierM for tenaciously pursuing a fix for this, and patiently working through all the permutations 🙏
Desk tested locally throughout the app
LGTM 🚀

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

@kbn/optimizer bundle module count

id before after diff
securitySolution 2067 2066 -1

async chunks size

id before after diff
securitySolution 7.8MB 7.8MB -11.8KB

History

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

@XavierM XavierM merged commit f3599fe into elastic:master Nov 6, 2020
XavierM added a commit to XavierM/kibana that referenced this pull request Nov 6, 2020
…security solutions (elastic#82237)

* try to keep timeline context when switching tabs

* fix popover

* simpler solution to keep timelien context between tabs

* fix timeline context with relative date

* allow update on the kql bar when opening new timeline

* keep detail view in context when savedObjectId of the timeline does not chnage

* remove redux solution and just KISS it

* add unit test for the popover

* add test on timeline context cache

* final commit -> to fix context of timeline between tabs

* keep timerange kind to absolute when refreshing

* fix bug today/thiw week to be absolute and not relative

* add unit test for absolute date for today and this week

* fix absolute today/this week on timeline

* fix refresh between page and timeline when link

* clean up

* remove nit

Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
XavierM added a commit to XavierM/kibana that referenced this pull request Nov 6, 2020
…security solutions (elastic#82237)

* try to keep timeline context when switching tabs

* fix popover

* simpler solution to keep timelien context between tabs

* fix timeline context with relative date

* allow update on the kql bar when opening new timeline

* keep detail view in context when savedObjectId of the timeline does not chnage

* remove redux solution and just KISS it

* add unit test for the popover

* add test on timeline context cache

* final commit -> to fix context of timeline between tabs

* keep timerange kind to absolute when refreshing

* fix bug today/thiw week to be absolute and not relative

* add unit test for absolute date for today and this week

* fix absolute today/this week on timeline

* fix refresh between page and timeline when link

* clean up

* remove nit

Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
XavierM added a commit that referenced this pull request Nov 6, 2020
…security solutions (#82237) (#82793)

* try to keep timeline context when switching tabs

* fix popover

* simpler solution to keep timelien context between tabs

* fix timeline context with relative date

* allow update on the kql bar when opening new timeline

* keep detail view in context when savedObjectId of the timeline does not chnage

* remove redux solution and just KISS it

* add unit test for the popover

* add test on timeline context cache

* final commit -> to fix context of timeline between tabs

* keep timerange kind to absolute when refreshing

* fix bug today/thiw week to be absolute and not relative

* add unit test for absolute date for today and this week

* fix absolute today/this week on timeline

* fix refresh between page and timeline when link

* clean up

* remove nit

Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>

Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
XavierM added a commit that referenced this pull request Nov 9, 2020
…abs in security solutions (#82237) (#82794)

* [SECURITY SOLUTIONS] Keep context of timeline when switching tabs in security solutions (#82237)

* try to keep timeline context when switching tabs

* fix popover

* simpler solution to keep timelien context between tabs

* fix timeline context with relative date

* allow update on the kql bar when opening new timeline

* keep detail view in context when savedObjectId of the timeline does not chnage

* remove redux solution and just KISS it

* add unit test for the popover

* add test on timeline context cache

* final commit -> to fix context of timeline between tabs

* keep timerange kind to absolute when refreshing

* fix bug today/thiw week to be absolute and not relative

* add unit test for absolute date for today and this week

* fix absolute today/this week on timeline

* fix refresh between page and timeline when link

* clean up

* remove nit

Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>

* increase limits

Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
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 impact:critical This issue should be addressed immediately due to a critical level of impact on the product. release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting Security Solution Threat Hunting Team v7.10.1 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants