-
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
[ResponseOps][Alerting] Add deprecation object to legacy rule endpoints #201550
[ResponseOps][Alerting] Add deprecation object to legacy rule endpoints #201550
Conversation
A documentation preview will be available soon. Request a new doc build by commenting
If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here. |
docs/upgrade-notes.asciidoc
Outdated
`POST /api/alerts/alert/{id}/_mute_all` has been replaced by `POST /api/alerting/rule/{id}/_mute_all` | ||
`POST /api/alerts/alert/{id}/_unmute_all` has been replaced by `POST /api/alerting/rule/{id}/_unmute_all` | ||
`POST /api/alerts/alert/{id}/_update_api_key` has been replaced by `POST /api/alerting/rule/{id}/_update_api_key` | ||
`GET /api/alerts/{id}/_instance_summary` has been deprecated without replacement |
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.
I couldn't find a replacement for this, therefore the deprecation note
docs/upgrade-notes.asciidoc
Outdated
`POST /api/alerts/alert/{id}/_unmute_all` has been replaced by `POST /api/alerting/rule/{id}/_unmute_all` | ||
`POST /api/alerts/alert/{id}/_update_api_key` has been replaced by `POST /api/alerting/rule/{id}/_update_api_key` | ||
`GET /api/alerts/{id}/_instance_summary` has been deprecated without replacement | ||
`GET /api/alerts/{id}/state` has been deprecated without replacement |
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.
I found this replacement route but it's internal and therefore the deprecation note. Wdyt?
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.
Yes, we should not offer the internal APIs as alternatives.
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.
LGMT! I think we should put in the upgrade notes a link to our documentation (https://www.elastic.co/docs/api/doc/kibana/v8/group/endpoint-alerting) if users want to learn about the new routes in more detail.
documentationUrl: docLinks.links.alerting.legacyRuleApiDeprecations, | ||
severity: 'warning', | ||
reason: { | ||
type: 'deprecate', |
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.
I think this should be remove
as the API will be removed in 9.0.
documentationUrl: docLinks.links.alerting.legacyRuleApiDeprecations, | ||
severity: 'warning', | ||
reason: { | ||
type: 'deprecate', |
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.
I think this should be remove
as the API will be removed in 9.0.
docs/upgrade-notes.asciidoc
Outdated
`POST /api/alerts/alert/{id}/_unmute_all` has been replaced by `POST /api/alerting/rule/{id}/_unmute_all` | ||
`POST /api/alerts/alert/{id}/_update_api_key` has been replaced by `POST /api/alerting/rule/{id}/_update_api_key` | ||
`GET /api/alerts/{id}/_instance_summary` has been deprecated without replacement | ||
`GET /api/alerts/{id}/state` has been deprecated without replacement |
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.
Yes, we should not offer the internal APIs as alternatives.
Yes, I've tried already with a list but didn't work, it's gonna be html so I'm trying with empty lines in between now. I would like to avoid adding |
Ok! Maybe someone from the docs team can help with this. cc @lcawl |
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!
…s-deprecation-object
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
Page load bundle
History
|
I've added bulleted lists in b07b47e |
I've copied the content so it appears in both places and edited the subtitle to align with the other breaking changes via ad0e7cc |
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.
Docs LGTM!
Note we'll also need to clean up the API docs, so I've left a comment in #196556
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/12064571460 |
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…ts (elastic#201550) ## Summary Adds deprecation object in deprecated alerting routes Closes elastic#196556 --------- Co-authored-by: lcawl <lcawley@elastic.co> (cherry picked from commit 93b67fb) # Conflicts: # docs/CHANGELOG.asciidoc
…ndpoints (#201550) (#202165) # Backport This will backport the following commits from `main` to `8.x`: - [[ResponseOps][Alerting] Add deprecation object to legacy rule endpoints (#201550)](#201550) <!--- Backport version: 8.9.8 --> ### 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-11-28T07:45:11Z","message":"[ResponseOps][Alerting] Add deprecation object to legacy rule endpoints (#201550)\n\n## Summary\r\n\r\nAdds deprecation object in deprecated alerting routes\r\n\r\nCloses https://github.com/elastic/kibana/issues/196556\r\n\r\n---------\r\n\r\nCo-authored-by: lcawl <lcawley@elastic.co>","sha":"93b67fb1a37b397284c92309e3ca864580b9fcfc","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"],"number":201550,"url":"https://github.com/elastic/kibana/pull/201550","mergeCommit":{"message":"[ResponseOps][Alerting] Add deprecation object to legacy rule endpoints (#201550)\n\n## Summary\r\n\r\nAdds deprecation object in deprecated alerting routes\r\n\r\nCloses https://github.com/elastic/kibana/issues/196556\r\n\r\n---------\r\n\r\nCo-authored-by: lcawl <lcawley@elastic.co>","sha":"93b67fb1a37b397284c92309e3ca864580b9fcfc"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201550","number":201550,"mergeCommit":{"message":"[ResponseOps][Alerting] Add deprecation object to legacy rule endpoints (#201550)\n\n## Summary\r\n\r\nAdds deprecation object in deprecated alerting routes\r\n\r\nCloses https://github.com/elastic/kibana/issues/196556\r\n\r\n---------\r\n\r\nCo-authored-by: lcawl <lcawley@elastic.co>","sha":"93b67fb1a37b397284c92309e3ca864580b9fcfc"}},{"branch":"8.x","label":"v8.18.0","labelRegex":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
…ts (elastic#201550) ## Summary Adds deprecation object in deprecated alerting routes Closes elastic#196556 --------- Co-authored-by: lcawl <lcawley@elastic.co>
Summary
Adds deprecation object in deprecated alerting routes
Closes #196556