You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Security Solution][Detections] Value Lists Modal supports multiple exports (#73532)
* Remove need for ValueListsTable
Modifying columns has revealed that they should be exposed as props, at
which point we have no real need for the table component.
* Unroll the ActionButton component
I thought this was useful when I wrote it!
* Handle multiple simultaneous exports on value lists modal
Instead of passing our export function to GenericDownloader, we now
manage the multiple exports ourselves, and when successful we pass the blob to
GenericDownloader.
* tracks a list of exporting IDs instead of single ID
* chains onto the export promise to set local state
* Port useful table tests over to modal tests
These verify that we've wired up our table actions to our API calls. A
little brittle/tied to implementation, but I'd rather have them than
not.
* WIP: Simpler version of GenericDownloader
* Replace use of GenericDownloader with simpler AutoDownload
This component takes a blob and downloads it in a
cross-browser-compatible manner.
* Handle error when uploading value lists
Converts to the try/catch/finally form as well.
* Fix failing cypress test
We lost this test subj during our refactor, oops
* More explicit setting of global DOM function
Our component fails due to this method being undefined, so we mock it
out for these tests. We do not need to reset the mock as it is assigned
fresh on every test.
* Fixes jest failures on CI
Defines a global static method in a more portable way, as the regular
assignment was failing on CI as the property was readonly.
* Simplify our export/delete clicks in jest tests
The less we assume about the UI, the more robust these'll be.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
0 commit comments