Skip to content

[DOCS][OAS] Add Fleet APIs#190571

Merged
lcawl merged 11 commits intoelastic:mainfrom
lcawl:fleet-apis
Aug 15, 2024
Merged

[DOCS][OAS] Add Fleet APIs#190571
lcawl merged 11 commits intoelastic:mainfrom
lcawl:fleet-apis

Conversation

@lcawl
Copy link
Copy Markdown
Member

@lcawl lcawl commented Aug 15, 2024

Summary

This PR merges content from https://github.com/elastic/kibana/blob/main/x-pack/plugins/fleet/common/openapi/bundled.json into the OpenAPI documents in oas_docs so that it can be published on https://www.elastic.co/docs/api/doc/kibana
It also fixes some linting rules that were failing erroneously on common parameters.

The following tasks are still outstanding:

  • Verify display names that I've added for the tags
  • Add descriptions for each tag
  • Verify that this content is not applicable to serverless

@lcawl lcawl added release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team docs backport:prev-minor labels Aug 15, 2024
@obltmachine
Copy link
Copy Markdown

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@lcawl lcawl marked this pull request as ready for review August 15, 2024 02:18
@lcawl lcawl requested a review from a team as a code owner August 15, 2024 02:18
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/fleet (Team:Fleet)

@lcawl lcawl requested a review from kpollich August 15, 2024 02:19
Copy link
Copy Markdown
Member

@kpollich kpollich left a comment

Choose a reason for hiding this comment

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

The display names here look good to me, and I'm sure we can iterate on these moving forward. I do think this might get blown away when we run our OpenAPI build script though on the Fleet side.

What do we need to do on the Fleet side to make sure we're updating these docs as APIs change? We're planning to take on #184685 in a few weeks, which will replace our current manual compilation process for the bundled.yaml/json files with an automated one.

If we ensure the result of the code gen tooling is outputing to the same fleet/common/openapi/bundled.yaml file, it seems like we wouldn't have to do anything and the merge_ess_oas.js script would take care of building the kibana.yaml spec file served by bump.sh, right?

I'm rubber ducking 🦆 in this GitHub comment as I read through the PR, but please let me know if I've gotten anything wrong, and if the Fleet team needs to make any process changes on our side to integrate better with these docs.

I'm so incredibly excited to be able to publish these docs in a friendly interface!

Copy link
Copy Markdown
Member

@kpollich kpollich left a comment

Choose a reason for hiding this comment

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

I do think this might get blown away when we run our OpenAPI build script though on the Fleet side.

This does not happen so we're all good here! Just confirmed pulling down this branch

LGTM from me 🚀

Copy link
Copy Markdown
Member

@kilfoyle kilfoyle left a comment

Choose a reason for hiding this comment

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

LGTM! 🦕
These look great!

@lcawl lcawl enabled auto-merge (squash) August 15, 2024 16:23
@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@lcawl lcawl merged commit 444b8d0 into elastic:main Aug 15, 2024
@lcawl lcawl deleted the fleet-apis branch August 15, 2024 17:52
@kibanamachine
Copy link
Copy Markdown
Contributor

💔 All backports failed

Status Branch Result
8.15 Backport failed because of merge conflicts

You might need to backport the following PRs to 8.15:
- [HTTP/OAS] Merge OpenAPI specs by using kbn-openapi-bundler (#189262)

Manual backport

To create the backport manually run:

node scripts/backport --pr 190571

Questions ?

Please refer to the Backport tool documentation

lcawl added a commit to lcawl/kibana that referenced this pull request Aug 15, 2024
@lcawl
Copy link
Copy Markdown
Member Author

lcawl commented Aug 15, 2024

💚 All backports created successfully

Status Branch Result
8.15

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

Questions ?

Please refer to the Backport tool documentation

lcawl added a commit that referenced this pull request Aug 15, 2024
# Backport

This will backport the following commits from `main` to `8.15`:
- [[DOCS][OAS] Add Fleet APIs
(#190571)](#190571)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Lisa
Cawley","email":"lcawley@elastic.co"},"sourceCommit":{"committedDate":"2024-08-15T17:49:58Z","message":"[DOCS][OAS]
Add Fleet APIs
(#190571)","sha":"444b8d010e5b3d82e1545d63adcb60e4476e5c43","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","docs","backport:prev-minor","v8.16.0"],"number":190571,"url":"https://github.com/elastic/kibana/pull/190571","mergeCommit":{"message":"[DOCS][OAS]
Add Fleet APIs
(#190571)","sha":"444b8d010e5b3d82e1545d63adcb60e4476e5c43"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.16.0","labelRegex":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/190571","number":190571,"mergeCommit":{"message":"[DOCS][OAS]
Add Fleet APIs
(#190571)","sha":"444b8d010e5b3d82e1545d63adcb60e4476e5c43"}}]}]
BACKPORT-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v8.15.1 v8.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants