-
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][Cases] Use deprecation object #201004
[Response Ops][Cases] Use deprecation object #201004
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. |
…s-deprecation-object
…s-deprecation-object
Pinging @elastic/response-ops (Team:ResponseOps) |
Pinging @elastic/response-ops-cases (Feature:Cases) |
@@ -50,6 +50,24 @@ For Elastic Security solution release information, refer to {security-guide}/rel | |||
|
|||
|
|||
[discrete] | |||
[[breaking-201004]] |
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.
How did you find out these needed to be updated too?
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.
Because the link to the docs' reference is this value. I just kept "breaking" because of consistency with the other references
That said, I'm still not sure it's working :) I'm waiting for CI to generate the docs
/buildkite run docs-build |
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!
@@ -1004,5 +1004,8 @@ export const getDocLinks = ({ kibanaBranch, buildFlavor }: GetDocLinkOptions): D | |||
inferenceManagement: { | |||
inferenceAPIDocumentation: `${ELASTIC_WEBSITE_URL}docs/api/doc/elasticsearch/operation/operation-inference-put`, | |||
}, | |||
cases: { | |||
legacyDeprecations: `${KIBANA_DOCS}breaking-changes-summary.html#breaking-201004`, |
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.
nit: legacyApiDeprecations
|
||
expect(router.routerOptions?.access).toBe('internal'); | ||
expect(router.routerOptions?.deprecated).toMatchInlineSnapshot(` |
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.
nit: I think it would be better if we had a dedicated test for the deprecation object check. The object is available in all flavors, serverless or non-serverless. Same for all test files.
documentationUrl: docLinks.links.cases.legacyDeprecations, | ||
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.
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.
Minor syntax error and comment, otherwise doc links and upgrade notes LGTM
|
||
expect(router.routerOptions?.access).toBe('internal'); | ||
expect(router.routerOptions?.deprecated).toMatchInlineSnapshot(` | ||
Object { | ||
"documentationUrl": "https://www.elastic.co/guide/en/kibana/test-branch/breaking-changes-summary.html#breaking-201004", |
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.
"documentationUrl": "https://www.elastic.co/guide/en/kibana/test-branch/breaking-changes-summary.html#breaking-201004",
If it's at all possible to make this a fuzzier match that would be a good idea IMO since the initial part of that URL is almost certain to change as we migrate to the new docs system.
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.
We will test that the url ends with #breaking-201004
Co-authored-by: Lisa Cawley <[email protected]>
Co-authored-by: Lisa Cawley <[email protected]>
…ger/kibana into issue-196557-cases-deprecation-object
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 |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Public APIs missing comments
Async chunks
Page load bundle
History
|
## Summary Adds deprecation object in deprecated cases routes Closes [elastic#196557](elastic#196557) --------- Co-authored-by: Lisa Cawley <[email protected]> (cherry picked from commit 0735ab8)
💚 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][Cases] Use deprecation object (#201004)](#201004) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Julian Gernun","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-27T10:37:49Z","message":"[Response Ops][Cases] Use deprecation object (#201004)\n\n## Summary\r\n\r\nAdds deprecation object in deprecated cases routes\r\n\r\nCloses [#196557](https://github.com/elastic/kibana/issues/196557)\r\n\r\n---------\r\n\r\nCo-authored-by: Lisa Cawley <[email protected]>","sha":"0735ab8196e7d11fb099b564b2c9b03ce840aa36","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","v9.0.0","Feature:Cases","backport:prev-minor","v8.18.0"],"title":"[Response Ops][Cases] Use deprecation object","number":201004,"url":"https://github.com/elastic/kibana/pull/201004","mergeCommit":{"message":"[Response Ops][Cases] Use deprecation object (#201004)\n\n## Summary\r\n\r\nAdds deprecation object in deprecated cases routes\r\n\r\nCloses [#196557](https://github.com/elastic/kibana/issues/196557)\r\n\r\n---------\r\n\r\nCo-authored-by: Lisa Cawley <[email protected]>","sha":"0735ab8196e7d11fb099b564b2c9b03ce840aa36"}},"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/201004","number":201004,"mergeCommit":{"message":"[Response Ops][Cases] Use deprecation object (#201004)\n\n## Summary\r\n\r\nAdds deprecation object in deprecated cases routes\r\n\r\nCloses [#196557](https://github.com/elastic/kibana/issues/196557)\r\n\r\n---------\r\n\r\nCo-authored-by: Lisa Cawley <[email protected]>","sha":"0735ab8196e7d11fb099b564b2c9b03ce840aa36"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Julian Gernun <[email protected]>
## Summary Adds deprecation object in deprecated cases routes Closes [elastic#196557](elastic#196557) --------- Co-authored-by: Lisa Cawley <[email protected]>
Summary
Adds deprecation object in deprecated cases routes
Closes #196557