Skip to content

[Security Solution][Case][Bug] Only add rule object for alert comments#92977

Merged
jonathan-buttner merged 4 commits intoelastic:masterfrom
jonathan-buttner:fix-case-rule-migration
Mar 1, 2021
Merged

[Security Solution][Case][Bug] Only add rule object for alert comments#92977
jonathan-buttner merged 4 commits intoelastic:masterfrom
jonathan-buttner:fix-case-rule-migration

Conversation

@jonathan-buttner
Copy link
Copy Markdown
Contributor

@jonathan-buttner jonathan-buttner commented Feb 26, 2021

This PR fixes the migration for 7.12 to only add the rule object for alert comments instead of all comments.

Issue: #91843

@jonathan-buttner jonathan-buttner added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.12.0 Team:Threat Hunting Security Solution Threat Hunting Team v7.13.0 labels Feb 26, 2021
@jonathan-buttner jonathan-buttner requested a review from a team as a code owner February 26, 2021 18:08
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/security-threat-hunting (Team:Threat Hunting)

.set('kbn-xsrf', 'true')
.send()
.expect(200);
describe('7.11.1', () => {
Copy link
Copy Markdown
Member

@cnasikas cnasikas Mar 1, 2021

Choose a reason for hiding this comment

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

nit: I think 7.11 is better as label as it targets the whole transition from 7.11 to 7.12. 7.11.1 is a bit confusing as it seems that this test in only for 7.11.1 and not 7.11. The same for folder structure: cases/migrations/7.11.1

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the review! Yeah I'll add more of a description. I chose 7.11.1 because that's the stack version I used to generate the data so I think I'll leave that as the directory name.

@cnasikas
Copy link
Copy Markdown
Member

cnasikas commented Mar 1, 2021

@elasticmachine merge upstream

@jonathan-buttner jonathan-buttner enabled auto-merge (squash) March 1, 2021 16:06
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@jonathan-buttner jonathan-buttner merged commit b5cd44e into elastic:master Mar 1, 2021
@jonathan-buttner jonathan-buttner deleted the fix-case-rule-migration branch March 1, 2021 16:21
jonathan-buttner added a commit to jonathan-buttner/kibana that referenced this pull request Mar 1, 2021
elastic#92977)

* Adding test for alert rule fields migration

* Fixing directory issue

* Add more descriptive message

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
jonathan-buttner added a commit to jonathan-buttner/kibana that referenced this pull request Mar 1, 2021
elastic#92977)

* Adding test for alert rule fields migration

* Fixing directory issue

* Add more descriptive message

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
jonathan-buttner added a commit that referenced this pull request Mar 1, 2021
#92977) (#93061)

* Adding test for alert rule fields migration

* Fixing directory issue

* Add more descriptive message

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
jonathan-buttner added a commit that referenced this pull request Mar 1, 2021
#92977) (#93060)

* Adding test for alert rule fields migration

* Fixing directory issue

* Add more descriptive message

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
jloleysens added a commit that referenced this pull request Mar 3, 2021
… ilm/rollup-v2-action

* 'ilm/rollup-v2-action' of github.com:elastic/kibana:
  [Security Solution][Case][Bug] Only add rule object for alert comments (#92977)
  [Security Solution][Case] Show the current connector name in case view (#93018)
  [Security Solution] Remove unused mock data (#92357)
  Adds mapping to the signals for the indicator rules that were missing (#92928)
  skip flaky suite (#85208)
  Cleanup spaces plugin (#91976)
  Control round and decimal places in Gauge Visualization when using aggregate functions like average (#91293)
  Added alerting ui mock for jest test (#92604)
  Remove "beta" label from URL Drilldown as it is now GA (#92859)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting Security Solution Threat Hunting Team v7.12.0 v7.13.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants