-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Response Ops][Alerting] Backfill actions schema changes for intermediate release #203184
Conversation
5b214dc
to
c59ae5f
Compare
Pinging @elastic/response-ops (Team:ResponseOps) |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]
History
cc @ymao1 |
@@ -15,6 +15,7 @@ export const scheduleBodySchema = schema.arrayOf( | |||
rule_id: schema.string(), | |||
start: schema.string(), | |||
end: schema.maybe(schema.string()), | |||
run_actions: schema.maybe(schema.boolean({ defaultValue: true })), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be optional? Already has a default value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are existing UI places that call this API so I think it has to be optional. I can remove the defaultValue if that makes more sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/12282900705 |
…iate release (elastic#203184) ## Summary This PR contains just the schema changes required to support backfill actions. This is meant for an intermediate release and then the full PR: elastic#200784 will follow after that. --------- Co-authored-by: Elastic Machine <[email protected]> (cherry picked from commit b9bac16)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…iate release (elastic#203184) ## Summary This PR contains just the schema changes required to support backfill actions. This is meant for an intermediate release and then the full PR: elastic#200784 will follow after that. --------- Co-authored-by: Elastic Machine <[email protected]>
…termediate release (#203184) (#203885) # Backport This will backport the following commits from `main` to `8.x`: - [[Response Ops][Alerting] Backfill actions schema changes for intermediate release (#203184)](#203184) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Ying Mao","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-11T18:47:01Z","message":"[Response Ops][Alerting] Backfill actions schema changes for intermediate release (#203184)\n\n## Summary\r\n\r\nThis PR contains just the schema changes required to support backfill\r\nactions. This is meant for an intermediate release and then the full PR:\r\nhttps://github.com//pull/200784 will follow after that.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"b9bac1628bc489efec2da0f8f6fecf66962a6a51","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Alerting","release_note:skip","Team:ResponseOps","v9.0.0","backport:prev-minor","v8.18.0"],"title":"[Response Ops][Alerting] Backfill actions schema changes for intermediate release","number":203184,"url":"https://github.com/elastic/kibana/pull/203184","mergeCommit":{"message":"[Response Ops][Alerting] Backfill actions schema changes for intermediate release (#203184)\n\n## Summary\r\n\r\nThis PR contains just the schema changes required to support backfill\r\nactions. This is meant for an intermediate release and then the full PR:\r\nhttps://github.com//pull/200784 will follow after that.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"b9bac1628bc489efec2da0f8f6fecf66962a6a51"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203184","number":203184,"mergeCommit":{"message":"[Response Ops][Alerting] Backfill actions schema changes for intermediate release (#203184)\n\n## Summary\r\n\r\nThis PR contains just the schema changes required to support backfill\r\nactions. This is meant for an intermediate release and then the full PR:\r\nhttps://github.com//pull/200784 will follow after that.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"b9bac1628bc489efec2da0f8f6fecf66962a6a51"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Ying Mao <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
…intermediate release (elastic#203184)" This reverts commit b9bac16.
…intermediate release (elastic#203184)" (elastic#204218) This reverts commit b9bac16. ## Summary Reverting to investigate `Failed to poll for work: Invalid interval "PT1M". Intervals must be of the form {number}m. Example: 5m.` logs which may be caused by the updated task schema (cherry picked from commit 42693ca)
…hanges for intermediate release (#203184)" (#204218) (#204266) # Backport This will backport the following commits from `main` to `8.x`: - [Revert "[Response Ops][Alerting] Backfill actions schema changes for intermediate release (#203184)" (#204218)](#204218) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Ying Mao","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-13T17:30:12Z","message":"Revert \"[Response Ops][Alerting] Backfill actions schema changes for intermediate release (#203184)\" (#204218)\n\nThis reverts commit b9bac16.\r\n\r\n## Summary\r\n\r\nReverting to investigate `Failed to poll for work: Invalid interval\r\n\"PT1M\". Intervals must be of the form {number}m. Example: 5m.` logs\r\nwhich may be caused by the updated task schema","sha":"42693caf5f274b9cc3c30d3305961430b31d8ae3","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Alerting","release_note:skip","Team:ResponseOps","v9.0.0","backport:prev-minor","v8.18.0"],"title":"Revert \"[Response Ops][Alerting] Backfill actions schema changes for intermediate release (#203184)\"","number":204218,"url":"https://github.com/elastic/kibana/pull/204218","mergeCommit":{"message":"Revert \"[Response Ops][Alerting] Backfill actions schema changes for intermediate release (#203184)\" (#204218)\n\nThis reverts commit b9bac16.\r\n\r\n## Summary\r\n\r\nReverting to investigate `Failed to poll for work: Invalid interval\r\n\"PT1M\". Intervals must be of the form {number}m. Example: 5m.` logs\r\nwhich may be caused by the updated task schema","sha":"42693caf5f274b9cc3c30d3305961430b31d8ae3"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/204218","number":204218,"mergeCommit":{"message":"Revert \"[Response Ops][Alerting] Backfill actions schema changes for intermediate release (#203184)\" (#204218)\n\nThis reverts commit b9bac16.\r\n\r\n## Summary\r\n\r\nReverting to investigate `Failed to poll for work: Invalid interval\r\n\"PT1M\". Intervals must be of the form {number}m. Example: 5m.` logs\r\nwhich may be caused by the updated task schema","sha":"42693caf5f274b9cc3c30d3305961430b31d8ae3"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Ying Mao <[email protected]>
… intermediate release (elastic#203184)" (elastic#204218) This reverts commit 42693ca.
Summary
This PR contains just the schema changes required to support backfill actions. This is meant for an intermediate release and then the full PR: #200784 will follow after that.