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

Decode file name on upload value lists and fix bug with removing value list #111838

Merged
merged 7 commits into from
Sep 14, 2021

Conversation

nkhristinin
Copy link
Contributor

Summary

Linked to #93346

  1. Correctly decode fileName when upload value lists. I checked the code and try to find a place, where we should again escape this id, but looks like it was addressed in this PR

Screenshot 2021-09-10 at 11 34 33

Screenshot 2021-09-10 at 11 34 40

  1. Return wait_for for deleting the list, fixing the bug, when the deleted list doesn't disappear from the table.
The bug video https://user-images.githubusercontent.com/7609147/132836105-5f904c56-7304-4748-86bf-9ffda2eaae34.mov

Initially, we added wait_for on this PR.
But then on this migration, it was changed to false.

It should be safe now to return it back to wait_for.

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@nkhristinin nkhristinin added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. auto-backport Deprecated - use backport:version if exact versions are needed v7.16.0 labels Sep 10, 2021
@nkhristinin nkhristinin requested a review from a team as a code owner September 10, 2021 10:03
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@nkhristinin
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Contributor

@rylnd rylnd left a comment

Choose a reason for hiding this comment

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

Approving as-is since the code's :shipit: , but let's please add a translation for the list item descriptions before we merge this.

if (listId == null) {
list = await createListIfItDoesNotExist({
description: `File uploaded from file system of ${fileNameEmitted}`,
description: `File uploaded from file system of ${fileName}`,
Copy link
Contributor

Choose a reason for hiding this comment

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

While we're here we should probably add i18n for this string; see something like this for examples of using values with i18n.

@nkhristinin
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@nkhristinin nkhristinin merged commit 43ea293 into elastic:master Sep 14, 2021
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Sep 14, 2021
…e list (elastic#111838)

* Decode fileName when creating a list

* Return wait_for for delete list item

* Return back import

* Update x-pack/plugins/lists/server/services/items/write_lines_to_bulk_list_items.test.ts

Co-authored-by: Ryland Herrick <[email protected]>

* Use i18n for message

Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Ryland Herrick <[email protected]>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Sep 14, 2021
…e list (#111838) (#112056)

* Decode fileName when creating a list

* Return wait_for for delete list item

* Return back import

* Update x-pack/plugins/lists/server/services/items/write_lines_to_bulk_list_items.test.ts

Co-authored-by: Ryland Herrick <[email protected]>

* Use i18n for message

Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Ryland Herrick <[email protected]>

Co-authored-by: Khristinin Nikita <[email protected]>
Co-authored-by: Ryland Herrick <[email protected]>
@nkhristinin nkhristinin added release_note:fix and removed release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. labels Sep 15, 2021
@nkhristinin nkhristinin added the Team:Detections and Resp Security Detection Response Team label Sep 15, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detections-response (Team:Detections and Resp)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:fix Team:Detections and Resp Security Detection Response Team v7.16.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Security Solution]Log for deleted Value list file retains on the Upload Value List table.
4 participants