-
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
[ML] Data Frame Analytics: Fix race condition and support for feature influence legacy format. #81123
[ML] Data Frame Analytics: Fix race condition and support for feature influence legacy format. #81123
Changes from all commits
de33e97
0785fb7
2768a72
6a6255c
625dc09
dea4599
dbbc3d0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,8 +73,15 @@ export const useExplorationResults = ( | |
dataGrid.resetPagination(); | ||
}, [JSON.stringify(searchQuery)]); | ||
|
||
// The pattern using `didCancel` allows us to abort out of date remote request. | ||
// We wrap `didCancel` in a object so we can mutate the value as it's being | ||
// passed on to `getIndexData`. | ||
useEffect(() => { | ||
getIndexData(jobConfig, dataGrid, searchQuery); | ||
const options = { didCancel: false }; | ||
getIndexData(jobConfig, dataGrid, searchQuery, options); | ||
return () => { | ||
options.didCancel = true; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. shall we create a custom hook, let's call it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yep that's something we could do in a follow up for 7.11 - for this 7.10 fix I wanted to touch as little code as possible that's why I went for duplicate code and no new utils. i'd also like to refactor |
||
}; | ||
// custom comparison | ||
}, [jobConfig && jobConfig.id, dataGrid.pagination, searchQuery, dataGrid.sortingColumns]); | ||
|
||
|
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.
For regression and classification jobs, the results grid is failing to display for me: