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] Fix inspect button bug on the overview page #113161

Merged
merged 2 commits into from
Sep 27, 2021

Conversation

ecezalp
Copy link
Contributor

@ecezalp ecezalp commented Sep 27, 2021

Previously we had identified a bug (while working on elastic/security-team#1308) where sometimes the inspect modals on the Overview page did not open when the inspect button was clicked.

This change fixes the bug by disabling the clearAllQuery logic in the useGlobalTime hook used in the alerts histogram panel.

Testing:

  • Go to the overview page and ensure that clicking an inspect button anywhere on the page always opens a modal.

Further testing:

  • you can install redux dev tools and observe inputs.global.queries array. When the clearAllQuery is true and you refresh the page, you can see that the array usually has two or three items. When you make clearAllQuery false, you can see that there are consistently 7 items in the input.global.queries array and all of the inspect modals work as expected.

@ecezalp ecezalp added release_note:fix v8.0.0 Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. auto-backport Deprecated - use backport:version if exact versions are needed Team: CTI v7.16.0 backport-v7.16.0 labels Sep 27, 2021
@ecezalp ecezalp requested a review from a team September 27, 2021 18:59
@ecezalp ecezalp self-assigned this Sep 27, 2021
@ecezalp ecezalp requested a review from a team as a code owner September 27, 2021 18:59
@elasticmachine
Copy link
Contributor

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

@ecezalp
Copy link
Contributor Author

ecezalp commented Sep 27, 2021

@elasticmachine merge upstream

Copy link
Contributor

@rylnd rylnd left a comment

Choose a reason for hiding this comment

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

A nice, simple fix 🥲

LGTM

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 4.3MB 4.3MB +2.0B

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

cc @ecezalp

@ecezalp ecezalp merged commit 5955ed5 into elastic:master Sep 27, 2021
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Sep 27, 2021
…tic#113161)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Sep 27, 2021
) (#113187)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Ece Özalp <ozale272@newschool.edu>
@ecezalp
Copy link
Contributor Author

ecezalp commented Oct 30, 2021

testing instructions

  • Navigate to the Overview page.
  • Confirm that clicking any inspect button always opens the appropriate inspect modal.
    • try multiple different inspect modals on the page
    • try hard refresh and click on an inspect button as quickly as possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:fix Team: CTI Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v7.16.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants