[Response Ops][Rules] Version Mute All Rule API#195572
Conversation
e164b25 to
7855b81
Compare
|
Pinging @elastic/response-ops (Team:ResponseOps) |
| async function muteAllWithOCC(context: RulesClientContext, { id }: { id: string }) { | ||
| async function muteAllWithOCC(context: RulesClientContext, params: MuteAllRuleParams) { | ||
| try { | ||
| muteAllRuleParamsSchema.validate(params); |
There was a problem hiding this comment.
Could you please add a unit test for this new change?
| params: paramSchema, | ||
| params: muteAllRuleRequestParamsSchemaV1, | ||
| }, | ||
| response: { |
There was a problem hiding this comment.
Previously, when we did this versioning we ended up also updating the documentation. I don't know if we will do another passing but I noticed 403 is missing from the response. Maybe you could update that here? 🙏
There was a problem hiding this comment.
Maybe 400 and 404 also. I'm thinking of this PR.
There was a problem hiding this comment.
If I'm not mistaken, there is an extra issue to do it afterwards (which should be also be ready for next ff) #195182. Are we talking about the same?
There was a problem hiding this comment.
ah, I didn't realize there was a separate issue. Nevermind then!
…_mute_all-api-versioning
|
Starting backport for target branches: 8.x |
💚 Build Succeeded
Metrics [docs]
History
|
## Summary
`POST /api/alerting/rule/{id}/_mute_all` in
elastic#195181
(cherry picked from commit f787b85)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
) # Backport This will backport the following commits from `main` to `8.x`: - [[Response Ops][Rules] Version Mute All Rule API (#195572)](#195572) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Julian Gernun","email":"17549662+jcger@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-10-14T12:18:42Z","message":"[Response Ops][Rules] Version Mute All Rule API (#195572)\n\n## Summary\r\n\r\n`POST /api/alerting/rule/{id}/_mute_all` in\r\nhttps://github.com//issues/195181","sha":"f787b852b23139fbc8e9926263d827ded4a1f451","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","v9.0.0","backport:prev-minor","v8.16.0"],"title":"[Response Ops][Rules] Version Mute All Rule API","number":195572,"url":"https://github.com/elastic/kibana/pull/195572","mergeCommit":{"message":"[Response Ops][Rules] Version Mute All Rule API (#195572)\n\n## Summary\r\n\r\n`POST /api/alerting/rule/{id}/_mute_all` in\r\nhttps://github.com//issues/195181","sha":"f787b852b23139fbc8e9926263d827ded4a1f451"}},"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/195572","number":195572,"mergeCommit":{"message":"[Response Ops][Rules] Version Mute All Rule API (#195572)\n\n## Summary\r\n\r\n`POST /api/alerting/rule/{id}/_mute_all` in\r\nhttps://github.com//issues/195181","sha":"f787b852b23139fbc8e9926263d827ded4a1f451"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Julian Gernun <17549662+jcger@users.noreply.github.com>
Summary
POST /api/alerting/rule/{id}/_mute_allin #195181