[7.14] [Security Solutions][Detection Engine] Fixes "undefined" crash for author field by adding a migration for it (#107230)#108221
Merged
FrankHassanabad merged 3 commits intoelastic:7.14from Aug 11, 2021
Conversation
…thor field by adding a migration for it (elastic#107230) ## Summary Fixes elastic#106233 During an earlier upgrade/fix to our system to add defaults to our types, we overlooked the "author" field which wasn't part of the original rules. Users upgrading might get errors such as: ``` params invalid: Invalid value "undefined" supplied to "author" ``` This fixes that issue by adding a migration for the `author` field for `7.14.1`. See elastic#106233 for test instructions or manually remove your author field before upgrading your release and then upgrade and this should be fixed on upgrade. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios # Conflicts: # x-pack/plugins/alerting/server/saved_objects/migrations.test.ts
Contributor
⏳ Build in-progress, with failures
Failed CI Steps
Test FailuresJest Tests.x-pack/plugins/alerting/server/saved_objects.7.10.0 marks alerts as legacyStandard OutStack TraceJest Tests.x-pack/plugins/alerting/server/saved_objects.7.10.0 migrates the consumer for metricsStandard OutStack TraceJest Tests.x-pack/plugins/alerting/server/saved_objects.7.10.0 migrates the consumer for siemStandard OutStack Traceand 36 more failures, only showing the first 3. History
To update your PR or re-run it, just comment with: |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Backports the following commits to 7.14: