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

[ML] Data Frame Analytics maps view: ensure nodes reload correctly after using timepicker refresh #145265

Merged
merged 3 commits into from Nov 17, 2022

Conversation

alvarezmelissa87
Copy link
Contributor

@alvarezmelissa87 alvarezmelissa87 commented Nov 15, 2022

Summary

Fixes #144308

This PR adds tracking of node ids that have been used to fetch additional node data so that, on refresh, the data for these nodes is also refetched.

Before:

dfa_maps_crash

After:

dfaMapFix.mp4

Checklist

Delete any items that are not applicable to this PR.

@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@alvarezmelissa87 alvarezmelissa87 changed the title fix crash on refresh for map [ML] DFA maps view: ensure nodes reload correctly after using timepicker refresh Nov 15, 2022
@alvarezmelissa87 alvarezmelissa87 changed the title [ML] DFA maps view: ensure nodes reload correctly after using timepicker refresh [ML] Data Frame Analytics maps view: ensure nodes reload correctly after using timepicker refresh Nov 15, 2022
Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

Tested and LGTM

@alvarezmelissa87
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Contributor

@walterra walterra left a comment

Choose a reason for hiding this comment

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

LGTM - was able to reproduce the issue on main and the fix in this PR.

@alvarezmelissa87
Copy link
Contributor Author

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 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
ml 3.4MB 3.4MB +148.0B
Unknown metric groups

ESLint disabled in files

id before after diff
osquery 1 2 +1

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
fleet 59 65 +6
osquery 108 113 +5
securitySolution 441 447 +6
total +19

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
fleet 67 73 +6
osquery 109 115 +6
securitySolution 518 524 +6
total +20

History

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

cc @alvarezmelissa87

@alvarezmelissa87 alvarezmelissa87 merged commit baf450d into elastic:main Nov 17, 2022
@alvarezmelissa87 alvarezmelissa87 deleted the ml-dfa-maps-fix branch November 17, 2022 18:33
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 17, 2022
…ter using timepicker refresh (elastic#145265)

## Summary

Fixes elastic#144308

This PR adds tracking of node ids that have been used to fetch
additional node data so that, on refresh, the data for these nodes is
also refetched.

Before:

![dfa_maps_crash](https://user-images.githubusercontent.com/1945390/199214556-2b165ac5-26d6-4e45-bfe0-a531494df40f.gif)

After:

https://user-images.githubusercontent.com/6446462/201964406-39689a3c-76f9-4132-ad62-5c2bccc17622.mp4

### Checklist

Delete any items that are not applicable to this PR.
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit baf450d)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.6

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 Nov 17, 2022
…tly after using timepicker refresh (#145265) (#145607)

# Backport

This will backport the following commits from `main` to `8.6`:
- [[ML] Data Frame Analytics maps view: ensure nodes reload correctly
after using timepicker refresh
(#145265)](#145265)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"Melissa
Alvarez","email":"melissa.alvarez@elastic.co"},"sourceCommit":{"committedDate":"2022-11-17T18:32:02Z","message":"[ML]
Data Frame Analytics maps view: ensure nodes reload correctly after
using timepicker refresh (#145265)\n\n## Summary\r\n\r\nFixes
#144308 PR adds
tracking of node ids that have been used to fetch\r\nadditional node
data so that, on refresh, the data for these nodes is\r\nalso
refetched.\r\n\r\nBefore:\r\n\r\n\r\n![dfa_maps_crash](https://user-images.githubusercontent.com/1945390/199214556-2b165ac5-26d6-4e45-bfe0-a531494df40f.gif)\r\n\r\nAfter:\r\n\r\n\r\nhttps://user-images.githubusercontent.com/6446462/201964406-39689a3c-76f9-4132-ad62-5c2bccc17622.mp4\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n- [x] Any UI touched in this PR is usable by keyboard only (learn
more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n\r\nCo-authored-by:
Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"baf450ddde6726b9523e20519585caa002cd8197","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix",":ml","Feature:Data
Frame
Analytics","v8.6.0","v8.7.0"],"number":145265,"url":"#145265
Data Frame Analytics maps view: ensure nodes reload correctly after
using timepicker refresh (#145265)\n\n## Summary\r\n\r\nFixes
#144308 PR adds
tracking of node ids that have been used to fetch\r\nadditional node
data so that, on refresh, the data for these nodes is\r\nalso
refetched.\r\n\r\nBefore:\r\n\r\n\r\n![dfa_maps_crash](https://user-images.githubusercontent.com/1945390/199214556-2b165ac5-26d6-4e45-bfe0-a531494df40f.gif)\r\n\r\nAfter:\r\n\r\n\r\nhttps://user-images.githubusercontent.com/6446462/201964406-39689a3c-76f9-4132-ad62-5c2bccc17622.mp4\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n- [x] Any UI touched in this PR is usable by keyboard only (learn
more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n\r\nCo-authored-by:
Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"baf450ddde6726b9523e20519585caa002cd8197"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"#145265
Data Frame Analytics maps view: ensure nodes reload correctly after
using timepicker refresh (#145265)\n\n## Summary\r\n\r\nFixes
#144308 PR adds
tracking of node ids that have been used to fetch\r\nadditional node
data so that, on refresh, the data for these nodes is\r\nalso
refetched.\r\n\r\nBefore:\r\n\r\n\r\n![dfa_maps_crash](https://user-images.githubusercontent.com/1945390/199214556-2b165ac5-26d6-4e45-bfe0-a531494df40f.gif)\r\n\r\nAfter:\r\n\r\n\r\nhttps://user-images.githubusercontent.com/6446462/201964406-39689a3c-76f9-4132-ad62-5c2bccc17622.mp4\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n- [x] Any UI touched in this PR is usable by keyboard only (learn
more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n\r\nCo-authored-by:
Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"baf450ddde6726b9523e20519585caa002cd8197"}}]}]
BACKPORT-->

Co-authored-by: Melissa Alvarez <melissa.alvarez@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ML] DFA maps view crashes when clicking result index node after refresh
6 participants