-
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][Endpoint][Response Actions] Fix table navigation when trays are expanded #157777
Merged
ashokaditya
merged 19 commits into
elastic:main
from
ashokaditya:fix/dw-response-actions-history-tray-back-page-6603
May 23, 2023
Merged
[Security Solution][Endpoint][Response Actions] Fix table navigation when trays are expanded #157777
Changes from 5 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
fa0c798
fix error when action details trays are expanded and paging is used
ashokaditya 890eb1d
rename redundant callback
ashokaditya 9e743e2
rename for readability
ashokaditya cf8dbfc
update missing dependencies
ashokaditya 3bc094b
expand already open trays on page re-load
ashokaditya 08ffdc7
tests to verify paging shows expanded rows
ashokaditya 2801a75
add test for page reload using withOutputs
ashokaditya cbf0aa1
review changes
ashokaditya b6f3bbe
test for setting URL param
ashokaditya c09b974
Merge branch 'main' into fix/dw-response-actions-history-tray-back-pa…
ashokaditya bdac04c
typo
ashokaditya a173f3e
Merge branch 'main' into fix/dw-response-actions-history-tray-back-pa…
ashokaditya df6d583
Cypress tests for page reload withOutputs
ashokaditya fd389bf
Merge branch 'main' into fix/dw-response-actions-history-tray-back-pa…
ashokaditya e3b26f4
Merge branch 'main' into fix/dw-response-actions-history-tray-back-pa…
ashokaditya 555a9bf
remvoe redundant test
ashokaditya ca1919b
update cypress task
ashokaditya 50e8995
remove redundant assertion
ashokaditya 82b4a74
Merge branch 'main' into fix/dw-response-actions-history-tray-back-pa…
ashokaditya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -226,7 +226,7 @@ export const ResponseActionsLog = memo< | |
setUrlWithOutputs(actionIds.join()); | ||
} | ||
}, | ||
[isFlyout, setUrlWithOutputs] | ||
[isFlyout, setUrlWithOutputs, setQueryParams] | ||
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. This was not related to the bug, only a missing dependency |
||
); | ||
|
||
if (error?.body?.statusCode === 404 && error?.body?.message === 'index_not_found_exception') { | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This case was not handled earlier and adding this change fixes the issue.
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.
Good fix 👍
Just a detail that I was thinking about and maybe would make sense to you - it's personal preference, I can't justify which approach is better :P Would you consider wrapping openDetails in useMemo and use it with setExpandedRowMap in useEffect instead of using redoOpenTrans wrapper in useCallback?