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

[Response Ops][Cases] Use deprecation object #201004

Merged
merged 19 commits into from
Nov 27, 2024

Conversation

jcger
Copy link
Contributor

@jcger jcger commented Nov 20, 2024

Summary

Adds deprecation object in deprecated cases routes

Closes #196557

Copy link
Contributor

A documentation preview will be available soon.

Request a new doc build by commenting
  • Rebuild this PR: run docs-build
  • Rebuild this PR and all Elastic docs: run docs-build rebuild

run docs-build is much faster than run docs-build rebuild. A rebuild should only be needed in rare situations.

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.

@jcger jcger changed the title [Cases] Add deprecation object to deprecated endpoints [Cases] Use deprecation object Nov 20, 2024
@jcger jcger marked this pull request as ready for review November 25, 2024 09:12
@jcger jcger requested review from a team as code owners November 25, 2024 09:12
@jcger jcger added release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v9.0.0 Feature:Cases Cases feature backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) v8.18.0 labels Nov 25, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@elasticmachine
Copy link
Contributor

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]]
Copy link
Contributor

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?

Copy link
Contributor Author

@jcger jcger Nov 25, 2024

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

@jcger
Copy link
Contributor Author

jcger commented Nov 25, 2024

/buildkite run docs-build

@jcger jcger changed the title [Cases] Use deprecation object [Response Ops][Cases] Use deprecation object Nov 26, 2024
Copy link
Member

@cnasikas cnasikas left a 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`,
Copy link
Member

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(`
Copy link
Member

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',
Copy link
Member

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.

rename docs key, create unique test for deprecation object, use remove
reason type for status api and trying improve docs output
Copy link
Contributor

@lcawl lcawl left a 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",
Copy link
Contributor

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.

Copy link
Contributor Author

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

docs/upgrade-notes.asciidoc Outdated Show resolved Hide resolved
docs/upgrade-notes.asciidoc Outdated Show resolved Hide resolved
@jcger jcger enabled auto-merge (squash) November 27, 2024 08:45
Copy link
Member

@umbopepato umbopepato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jcger jcger merged commit 0735ab8 into elastic:main Nov 27, 2024
8 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/12048552064

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #77 / Exception items APIs Authentication - Complete Tier @serverless @serverlessQA editor exception items API behaviors find exception item should return 200 for editor

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/doc-links 79 80 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
aiAssistantManagementSelection 92.8KB 92.9KB +82.0B
lists 145.2KB 145.3KB +82.0B
total +164.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
core 454.3KB 454.4KB +82.0B
Unknown metric groups

API count

id before after diff
@kbn/doc-links 79 80 +1

History

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 27, 2024
## 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)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Nov 27, 2024
# 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]>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Dec 12, 2024
## Summary

Adds deprecation object in deprecated cases routes

Closes [elastic#196557](elastic#196557)

---------

Co-authored-by: Lisa Cawley <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) Feature:Cases Cases feature release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ResponseOps][Cases] Add deprecation object to deprecated endpoints
7 participants