-
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
[Security Solution][RAC] Fixes updatedAt loading bug #111010
Conversation
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
@elasticmachine merge upstream |
@@ -331,8 +336,8 @@ const DetectionEnginePageComponent: React.FC<DetectionEngineComponentProps> = ({ | |||
</EuiFlexItem> | |||
<EuiFlexItem grow={false}> | |||
{timelinesUi.getLastUpdated({ | |||
updatedAt: updatedAt || 0, | |||
showUpdating: loading, | |||
updatedAt: updatedAt || Date.now(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested, and looks good. I wonder if we should do something here like this so it doesn't even show till we have the updatedAt?
{updatedAt && timelinesUi.getLastUpdated({
updatedAt,
showUpdating,
})}
It ends up looking like:
withChanges2.mp4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah we could go with that instead, cover that little gap in the little
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the changes, looks good, just a suggestion about hiding/showing things, but that may be better left to design to make a decision about what they prefer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM,
- Checked out the branch
- Ran the branch and compared against a system without the changes to validate the bug and the fix.
- Looked over the code and searched to see if we had any other strings of the form
updatedAt || 0
but did not see it so I think all instances were fixed. - Turned on rectangle painting within Chrome and validated that only the label is changed when the timer updates.
- Checked the network panel to see if additional network calls were being made or something else (for fun). Did not see anything.
- 👍
0b1a4b1
to
9dfe5fa
Compare
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @dplumlee |
…-link-to-kibana-app * 'master' of github.com:elastic/kibana: (61 commits) [Logs UI] Fix alert previews for thresholds of `0` (elastic#111150) [Archive Migration][Partial] discover apps-discover (elastic#110437) [APM] Set start date of APM ML job to -4 weeks (elastic#111375) [ML] APM Latency Correlations: Code consolidation. (elastic#110790) [Discover] Fix indices permission for multiline test (elastic#111284) [Detection Rules] Add 7.15 rules (elastic#111464) [Security Solution][Endpoint][Host Isolation] Hide isolate host option in alert details rather than disabling (elastic#111064) React version of angular license view (elastic#111317) [APM] Fix link in readme (elastic#111362) [Security Solution] add agent field to generator (elastic#111428) [Dashboard] Retain Tags on Quicksave (elastic#111015) Reorder App Search ingestion methods (elastic#111361) Port performance docs to new docs system. (elastic#111063) [Security Solution][RAC] Fixes updatedAt loading bug (elastic#111010) [sample data] update web log geo.src field to match country code of geo.coordinates (elastic#110885) [Security solution] [Endpoint] Fix bad artifact migration (elastic#111294) Fix copy typo. (elastic#111203) [build] Remove empty optimize directory (elastic#111393) [Maps] fix term join not updating when editing right field (elastic#111030) [Fleet] Set default settings in component template instead of the index template (elastic#111197) ... # Conflicts: # x-pack/plugins/reporting/public/management/__snapshots__/report_listing.test.tsx.snap # x-pack/plugins/reporting/public/management/report_listing.test.tsx
Summary
Addresses #110337
Fixes the "Updated at" field on the Alerts and Rule details page to sync with the timeline data. Also makes the fallback value to no longer be UTC 0, instead defaulting to
Date.now()
Videos
Coming soon
Checklist
Delete any items that are not applicable to this PR.
For maintainers