Skip to content

[7.9] [Security Solution] [Detections] Remove file validation on import route (#77770)#77822

Merged
dhurley14 merged 1 commit intoelastic:7.9from
dhurley14:backport/7.9/pr-77770
Sep 17, 2020
Merged

[7.9] [Security Solution] [Detections] Remove file validation on import route (#77770)#77822
dhurley14 merged 1 commit intoelastic:7.9from
dhurley14:backport/7.9/pr-77770

Conversation

@dhurley14
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.9:

…te (elastic#77770)

* utlize schema.any() for validation on file in body of import rules request, adds new functional tests and unit tests to make sure we can reach and don't go past bounds. These tests would have helped uncover performance issues io-ts gave us with validating the import rules file object

* fix type check failure

* updates getSimpleRule and getSimpleRuleAsNdjson to accept an enabled param defaulted to false

* updates comments in e2e tests for import rules route

* fix tests after adding enabled boolean in test utils
@dhurley14 dhurley14 added the backport This PR is a backport of another PR label Sep 17, 2020
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Build metrics

‼️ ERROR: unable to find build with id [bd5d82d7-ca76-418d-9c25-917a628f0ea4]

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

@dhurley14 dhurley14 merged commit 8fe4265 into elastic:7.9 Sep 17, 2020
@dhurley14 dhurley14 deleted the backport/7.9/pr-77770 branch September 17, 2020 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants