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

[OAS][DOCS] Add overlays for connector config and examples #191791

Merged
merged 14 commits into from
Sep 5, 2024

Conversation

lcawl
Copy link
Contributor

@lcawl lcawl commented Aug 30, 2024

Summary

Relates to #191679, which automated the openAPI output for connectors.

This PR creates an overlay to append some information that is missing from the automated output:

  • examples (the files were moved to the oas_docs/examples folder)
  • create/update connector config objects (the files were renamed in the x-pack/plugins/actions/docs/openapi folder since the file name is used as a label in the docs)
  • create/update connector secrets objects ("")
  • run connector params ("")

There are some other notable absences, which this PR doesn't address:

  • response objects
  • connector type identifiers

The rest of the manually-maintained files are now obsolete and are therefore removed.

The PR also adds two commands to the makefile to make it easier to preview docs locally.

@lcawl lcawl added WIP Work in progress release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) docs Feature:Actions/ConnectorsManagement Issues related to Connectors Management UX backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) labels Aug 30, 2024
@obltmachine
Copy link

🤖 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 removed the WIP Work in progress label Aug 31, 2024
@lcawl lcawl marked this pull request as ready for review August 31, 2024 00:10
@lcawl lcawl requested review from a team as code owners August 31, 2024 00:10
@elasticmachine
Copy link
Contributor

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

@lcawl lcawl changed the title [OAS][DOCS] Add connector overlays for examples [OAS][DOCS] Add overlays for connector config and examples Aug 31, 2024
@lcawl lcawl force-pushed the connector-overlays branch from a209317 to fff1665 Compare September 3, 2024 23:34
Copy link
Member

@pmuellr pmuellr left a comment

Choose a reason for hiding this comment

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

From the PR, in the /oas_docs directory, I was able to run the following to display the rendered version:

make api-docs; make api-docs-overlay; make api-docs-overlay-preview

Looks to me like it's structurally correct - I can see various config and examples in both the serverless and non-serverless versions.

@lcawl lcawl enabled auto-merge (squash) September 5, 2024 14:58
Copy link
Contributor

@florent-leborgne florent-leborgne left a comment

Choose a reason for hiding this comment

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

Nice!

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@lcawl lcawl merged commit 86f9af8 into elastic:main Sep 5, 2024
20 checks passed
@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.15 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 191791

Questions ?

Please refer to the Backport tool documentation

@lcawl lcawl added backport:skip This commit does not require backporting and removed backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) labels Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting docs Feature:Actions/ConnectorsManagement Issues related to Connectors Management UX 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.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants