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

[Entity Analytics] Fix flickering "Enable risk engine" button #204486

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

hop-dev
Copy link
Contributor

@hop-dev hop-dev commented Dec 16, 2024

Summary

When we refetch the engine status, the enable component was flickering, I have changed it so we only load on the first request, after that we keep displaying the "stale" value while the request is fetching.

Here is the flicker, blink and you'll miss it!

Screen.Recording.2024-12-16.at.20.38.21.mov

@hop-dev hop-dev added bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes v9.0.0 Team:Entity Analytics Security Entity Analytics Team backport:version Backport to applied version labels v8.18.0 labels Dec 16, 2024
@hop-dev hop-dev self-assigned this Dec 16, 2024
@hop-dev hop-dev requested a review from a team as a code owner December 16, 2024 20:56
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-entity-analytics (Team:Entity Analytics)

@hop-dev
Copy link
Contributor Author

hop-dev commented Dec 17, 2024

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

merge conflict between base and head

@elasticmachine
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 14.7MB 14.7MB +4.0B

History

cc @hop-dev

@hop-dev hop-dev merged commit c4cf9fe into elastic:main Dec 17, 2024
8 checks passed
@hop-dev hop-dev deleted the flickering-risk-engine-status branch December 17, 2024 10:22
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/12371007945

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 17, 2024
…c#204486)

## Summary

When we refetch the engine status, the enable component was flickering,
I have changed it so we only load on the first request, after that we
keep displaying the "stale" value while the request is fetching.

Here is the flicker, blink and you'll miss it!

https://github.com/user-attachments/assets/5271674c-1534-470a-996f-058afd5ed76f
(cherry picked from commit c4cf9fe)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

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 Dec 17, 2024
…; button (#204486) (#204534)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Entity Analytics] Fix flickering "Enable risk engine"
button (#204486)](#204486)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Mark
Hopkin","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-17T10:22:29Z","message":"[Entity
Analytics] Fix flickering \"Enable risk engine\" button (#204486)\n\n##
Summary\n\nWhen we refetch the engine status, the enable component was
flickering,\nI have changed it so we only load on the first request,
after that we\nkeep displaying the \"stale\" value while the request is
fetching.\n\nHere is the flicker, blink and you'll miss
it!\n\n\n\nhttps://github.com/user-attachments/assets/5271674c-1534-470a-996f-058afd5ed76f","sha":"c4cf9fe8a53174fd61eedf4a7cd3e1b3988decab","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","v9.0.0","Team:Entity
Analytics","backport:version","v8.18.0"],"title":"[Entity Analytics] Fix
flickering \"Enable risk engine\"
button","number":204486,"url":"https://github.com/elastic/kibana/pull/204486","mergeCommit":{"message":"[Entity
Analytics] Fix flickering \"Enable risk engine\" button (#204486)\n\n##
Summary\n\nWhen we refetch the engine status, the enable component was
flickering,\nI have changed it so we only load on the first request,
after that we\nkeep displaying the \"stale\" value while the request is
fetching.\n\nHere is the flicker, blink and you'll miss
it!\n\n\n\nhttps://github.com/user-attachments/assets/5271674c-1534-470a-996f-058afd5ed76f","sha":"c4cf9fe8a53174fd61eedf4a7cd3e1b3988decab"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/204486","number":204486,"mergeCommit":{"message":"[Entity
Analytics] Fix flickering \"Enable risk engine\" button (#204486)\n\n##
Summary\n\nWhen we refetch the engine status, the enable component was
flickering,\nI have changed it so we only load on the first request,
after that we\nkeep displaying the \"stale\" value while the request is
fetching.\n\nHere is the flicker, blink and you'll miss
it!\n\n\n\nhttps://github.com/user-attachments/assets/5271674c-1534-470a-996f-058afd5ed76f","sha":"c4cf9fe8a53174fd61eedf4a7cd3e1b3988decab"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Mark Hopkin <[email protected]>
JoseLuisGJ pushed a commit to JoseLuisGJ/kibana that referenced this pull request Dec 19, 2024
…c#204486)

## Summary

When we refetch the engine status, the enable component was flickering,
I have changed it so we only load on the first request, after that we
keep displaying the "stale" value while the request is fetching.

Here is the flicker, blink and you'll miss it!



https://github.com/user-attachments/assets/5271674c-1534-470a-996f-058afd5ed76f
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Jan 13, 2025
…c#204486)

## Summary

When we refetch the engine status, the enable component was flickering,
I have changed it so we only load on the first request, after that we
keep displaying the "stale" value while the request is fetching.

Here is the flicker, blink and you'll miss it!



https://github.com/user-attachments/assets/5271674c-1534-470a-996f-058afd5ed76f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team:Entity Analytics Security Entity Analytics Team v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants