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

[alerting] migrates the old alerting consumer to be alerts #69555

Closed

Conversation

gmmorris
Copy link
Contributor

@gmmorris gmmorris commented Jun 18, 2020

Summary

closes #68994

This PR migrates all old alerts with the alerting consumer to have alerts instead.
This is because in 7.9 we changed the feature ID and we need these to remain in sync otherwise the RBAC work (#67157) will break old alerts.

Checklist

Delete any items that are not applicable to this PR.

For maintainers

gmmorris added 11 commits June 17, 2020 14:13
* master: (82 commits)
  Drilldown docs 2 (elastic#69375)
  [APM] Replace ML index queries with searching via mlAnomalySearch API (elastic#69099)
  [Ingest Manager][Endpoint] Add Endpoint Create Policy flow with Ingest (elastic#68955)
  [DOCS] Updates titles in Maps docs (elastic#68703)
  [SIEM][Timeline] Minor timeline improvement (elastic#69386)
  Update dependency @elastic/charts to v19.5.2 (elastic#69126)
  [ML] Functional tests - Reduce DFA job model memory (elastic#69295)
  [ML] Functional tests - add more recognize and setup module API tests (elastic#69251)
  feat: 🎸 don't show drilldown action in "edit" mode (elastic#69371)
  [SIEM][Timeline] Persist timeline to localStorage (elastic#67156)
  Replaces the Custom Color Picker on TSVB with the EuiColorPicker (elastic#68888)
  [APM] Only add decimals for numbers below 10 (elastic#69334)
  Explore underlying data (elastic#68496)
  [SIEM] Adds example unit test to convert KQL using a nested query
  [Component template] Details flyout (elastic#68732)
  [DOCS] Fixes license management links (elastic#69347)
  [BundleRefPlugin] resolve imports to files too (elastic#69241)
  [APM] Fix service maps not loading when there are no APM ML jobs (elastic#69240)
  [Reporting] Prepare export type definitions for Task Manager (elastic#65213)
  [kbn/pm] only count cached project (elastic#69113)
  ...
@gmmorris gmmorris requested review from a team as code owners June 18, 2020 17:52
@gmmorris gmmorris added Feature:Alerting Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.9.0 v8.0.0 labels Jun 18, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-alerting-services (Team:Alerting Services)

@gmmorris gmmorris added the release_note:skip Skip the PR/issue when compiling release notes label Jun 18, 2020
gmmorris added 9 commits June 18, 2020 19:06
…migrate-old-alerting-consumer

* alerting/migrate-old-alerting-consumere:
  fixed incorrect typing
* master: (63 commits)
  Bump jest related packages (elastic#58095)
  [SECURITY] Introduce kibana nav (elastic#68862)
  disable pageLoadMetrics job, it's gotten really flaky
  [Endpoint] Fix flaky endpoints list unit test (elastic#69591)
  skip failing suite (elastic#69595)
  [Security_Solution][Endpoint] Resolver leverage ancestry array for queries  (elastic#69264)
  Fixing resolver alert generation (elastic#69587)
  [Endpoint] add policy empty state (elastic#69449)
  [APM] Add support for dark mode (elastic#69362)
  [ML] Data Grid Histograms (elastic#68359)
  Resolving conflicts (elastic#69597)
  [DOCS] Add related link to the ingest management docs (elastic#69467)
  Remove endpoint alert fields from signal mapping (elastic#68934)
  [ftr] add support for docker servers (elastic#68173)
  Merge/restyle nodes table (elastic#69098)
  skip tests using hostDetailsPolicyResponseActionBadge
  [DOCS] Adds kibana-pull attribute for release docs (elastic#69554)
  [SIEM][Detection Engine] Fixes 7.8 and 7.9 upgrade issue within rules where you can get the error "params invalid: [lists]: definition for this key is missing"
  Document authentication settings. (elastic#69284)
  [CCR] Fix follower indices table not updating after pausing (elastic#69228)
  ...
…migrate-old-alerting-consumer

* alerting/migrate-old-alerting-consumere: (63 commits)
  Bump jest related packages (elastic#58095)
  [SECURITY] Introduce kibana nav (elastic#68862)
  disable pageLoadMetrics job, it's gotten really flaky
  [Endpoint] Fix flaky endpoints list unit test (elastic#69591)
  skip failing suite (elastic#69595)
  [Security_Solution][Endpoint] Resolver leverage ancestry array for queries  (elastic#69264)
  Fixing resolver alert generation (elastic#69587)
  [Endpoint] add policy empty state (elastic#69449)
  [APM] Add support for dark mode (elastic#69362)
  [ML] Data Grid Histograms (elastic#68359)
  Resolving conflicts (elastic#69597)
  [DOCS] Add related link to the ingest management docs (elastic#69467)
  Remove endpoint alert fields from signal mapping (elastic#68934)
  [ftr] add support for docker servers (elastic#68173)
  Merge/restyle nodes table (elastic#69098)
  skip tests using hostDetailsPolicyResponseActionBadge
  [DOCS] Adds kibana-pull attribute for release docs (elastic#69554)
  [SIEM][Detection Engine] Fixes 7.8 and 7.9 upgrade issue within rules where you can get the error "params invalid: [lists]: definition for this key is missing"
  Document authentication settings. (elastic#69284)
  [CCR] Fix follower indices table not updating after pausing (elastic#69228)
  ...
…migrate-old-alerting-consumer

* alerting/migrate-old-alerting-consumere:
  cleaned up platform code
* master: (90 commits)
  [Encrypted Saved Objects] Adds support for migrations in ESO (elastic#69513)
  [SIEM] Replace WithSource with useWithSource hook (elastic#68722)
  [Endpoint]EMT-451: add ability to filter endpoint metadata based on presence of unenrolled events (elastic#69708)
  rename old siem kibana config to securitySolution (elastic#69874)
  Remove unused Resolver code (elastic#69914)
  [Observability] Fixing dynamic return type based on the appName (elastic#69894)
  [SECURITY SOLUTION][INGEST] Task/endpoint list tests (elastic#69419)
  Fixes special clicks and 3rd party icon sizes in nav (elastic#69767)
  [APM] Catch annotations index permission error and log warning (elastic#69881)
  [Endpoint][Ingest Manager] minor code cleanup (elastic#69844)
  [Logs UI] Logs ui context menu (elastic#69915)
  Index pattern serialize and de-serialize (elastic#68844)
  [QA] Unskip functional tests (elastic#69760)
  [SIEM][Detection Engine] - Update DE to work with new exceptions schema (elastic#69715)
  Fixes elastic#69639: Ignore url.url fields above 2048 characters (elastic#69863)
  PR: Provide limit warnings to user when API limits are reached. (elastic#69590)
  [Maps] Remove broken button (elastic#69853)
  Makes usage collection methods available on start (elastic#69836)
  [SIEM][CASE] Improve Jira's labelling (elastic#69892)
  [Logs UI] Access ML via the programmatic plugin API (elastic#68905)
  ...
@gmmorris
Copy link
Contributor Author

This PR got a bit messy, making a fresh one to make it easier to review

@gmmorris gmmorris closed this Jun 25, 2020
@kibanamachine
Copy link
Contributor

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / x-pack-intake-agent / X-Pack Jest Tests.x-pack/plugins/encrypted_saved_objects/server/crypto.#encryptAttributes does not encrypt attributes that are not supposed to be encrypted

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches


Stack Trace

TypeError: Cannot read property 'create' of undefined
    at Object.<anonymous>.beforeEach (/dev/shm/workspace/kibana/x-pack/plugins/encrypted_saved_objects/server/crypto/encrypted_saved_objects_migration_service.test.ts:28:24)
    at Promise (/dev/shm/workspace/kibana/node_modules/jest-circus/build/utils.js:198:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/dev/shm/workspace/kibana/node_modules/jest-circus/build/utils.js:162:10)
    at _callCircusHook (/dev/shm/workspace/kibana/node_modules/jest-circus/build/run.js:168:40)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Kibana Pipeline / x-pack-intake-agent / X-Pack Jest Tests.x-pack/plugins/encrypted_saved_objects/server/crypto.#encryptAttributes encrypts only attributes that are supposed to be encrypted

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches


Stack Trace

TypeError: Cannot read property 'create' of undefined
    at Object.<anonymous>.beforeEach (/dev/shm/workspace/kibana/x-pack/plugins/encrypted_saved_objects/server/crypto/encrypted_saved_objects_migration_service.test.ts:28:24)
    at Promise (/dev/shm/workspace/kibana/node_modules/jest-circus/build/utils.js:198:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/dev/shm/workspace/kibana/node_modules/jest-circus/build/utils.js:162:10)
    at _callCircusHook (/dev/shm/workspace/kibana/node_modules/jest-circus/build/run.js:168:40)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Kibana Pipeline / x-pack-intake-agent / X-Pack Jest Tests.x-pack/plugins/encrypted_saved_objects/server/crypto.#encryptAttributes encrypts only attributes that are supposed to be encrypted even if not all provided

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches


Stack Trace

TypeError: Cannot read property 'create' of undefined
    at Object.<anonymous>.beforeEach (/dev/shm/workspace/kibana/x-pack/plugins/encrypted_saved_objects/server/crypto/encrypted_saved_objects_migration_service.test.ts:28:24)
    at Promise (/dev/shm/workspace/kibana/node_modules/jest-circus/build/utils.js:198:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/dev/shm/workspace/kibana/node_modules/jest-circus/build/utils.js:162:10)
    at _callCircusHook (/dev/shm/workspace/kibana/node_modules/jest-circus/build/run.js:168:40)
    at process._tickCallback (internal/process/next_tick.js:68:7)

and 29 more failures, only showing the first 3.

Build metrics

✅ unchanged

History

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Alerting release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.9.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate feature ID and alerts with alerting consumer to alerts
3 participants