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

[7.9] [Security Solution][Detections] Value Lists Modal supports multiple exports (#73532) #73622

Merged
merged 2 commits into from
Jul 29, 2020

Conversation

rylnd
Copy link
Contributor

@rylnd rylnd commented Jul 29, 2020

Backports the following commits to 7.9:

…xports (elastic#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 <[email protected]>
@rylnd rylnd added the backport label Jul 29, 2020
These passed on master but are now failing on this backport branch.
Skipping them for now.
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

History

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

@rylnd rylnd merged commit 9a8202d into elastic:7.9 Jul 29, 2020
@rylnd rylnd deleted the backport/7.9/pr-73532 branch July 29, 2020 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants