-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Conversation
Pinging @elastic/security-entity-analytics (Team:Entity Analytics) |
@elasticmachine merge upstream |
merge conflict between base and head |
💚 Build Succeeded
Metrics [docs]Async chunks
History
cc @hop-dev |
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/12371007945 |
…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)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…; 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]>
…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
…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
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