Skip to content

🌊 Streams: Prepare API for publishing#213127

Merged
flash1293 merged 19 commits intoelastic:mainfrom
flash1293:flash1293/experimental-api-docs
Mar 13, 2025
Merged

🌊 Streams: Prepare API for publishing#213127
flash1293 merged 19 commits intoelastic:mainfrom
flash1293:flash1293/experimental-api-docs

Conversation

@flash1293
Copy link
Contributor

@flash1293 flash1293 commented Mar 4, 2025

Add streams API to documentation as an experimental feature

Screenshot 2025-03-07 at 11 44 54

There are a couple of changes in here:

  • Split streams API in internal and public and mark the public parts as experimental
  • Add the public parts to the Kibana documentation
  • Add description and summary
  • Adjust the server repository wrapper to pass through summary and description

To test

  • Generate OAS bundle: node scripts/capture_oas_snapshot --include-path /api/streams --update
  • Apply overlays cd oas_docs && make api-docs
  • Make sure bump.sh is installed (npm install -g bump-cli)
  • Run for preview: cd oas_docs && bump preview output/kibana.yaml

Open questions

  • Does the split into public and internal make sense?
  • Is it a problem if this is visible in the user-facing documentation page before we actually release streams? Or would it be OK if the API is marked as experimental? (mostly a question for @LucaWintergerst )

@flash1293
Copy link
Contributor Author

Examples will be added once #212495 lands

@flash1293
Copy link
Contributor Author

/ci

kibanamachine and others added 3 commits March 7, 2025 18:15
…t --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/streams --include-path /api/fleet --include-path /api/dashboards --update'
@flash1293
Copy link
Contributor Author

/ci

@flash1293
Copy link
Contributor Author

/ci

@flash1293 flash1293 marked this pull request as ready for review March 10, 2025 07:03
@flash1293 flash1293 requested review from a team as code owners March 10, 2025 07:03
@flash1293 flash1293 requested a review from a team March 10, 2025 07:03
@flash1293 flash1293 added release_note:skip Skip the PR/issue when compiling release notes backport:version Backport to applied version labels Feature:Streams This is the label for the Streams Project v9.1.0 v8.19.0 labels Mar 10, 2025
Copy link
Contributor

@jbudz jbudz left a comment

Choose a reason for hiding this comment

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

.buildkite/scripts/steps/checks/capture_oas_snapshot.sh LGTM

Copy link
Contributor

@miltonhultgren miltonhultgren left a comment

Choose a reason for hiding this comment

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

LGTM

I only wonder if perhaps it would make sense to split the public/internal API by file/folder as well?
Perhaps I'm being overly cautious but if I go into a folder like routes/public that might set my mindset to "this is a public API, I need to apply more care with any change I make/review here", compared to mixing the two visibilities in the same file where the only difference is the access setting which might not even change in most PRs that one reviews. WDYT?

@flash1293
Copy link
Contributor Author

Fair point @miltonhultgren, I agree. I will rearrange things, shouldn't be a big change.

flash1293 and others added 4 commits March 12, 2025 22:30
…t --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/streams --include-path /api/fleet --include-path /api/dashboards --update'
Copy link
Contributor

@yngrdyn yngrdyn left a comment

Choose a reason for hiding this comment

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

LGTM, I liked the split between public and internal routes 🚀

@flash1293 flash1293 enabled auto-merge (squash) March 13, 2025 11:54
@flash1293 flash1293 merged commit 4681b6c into elastic:main Mar 13, 2025
9 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

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

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

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

id before after diff
streamsApp 367.5KB 367.7KB +199.0B

History

@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.x Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 213127

Questions ?

Please refer to the Backport tool documentation

flash1293 added a commit that referenced this pull request Mar 13, 2025
# Backport

This will backport the following commits from `main` to `8.x`:
- [🌊 Streams: Prepare API for publishing
(#213127)](#213127)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Mar 22, 2025
Add streams API to documentation as an experimental feature

<img width="2555" alt="Screenshot 2025-03-07 at 11 44 54"
src="https://github.com/user-attachments/assets/f54e5e6e-0c20-4bad-9cff-27747d0f76e2"
/>

There are a couple of changes in here:
* Split streams API in internal and public and mark the public parts as
experimental
* Add the public parts to the Kibana documentation
* Add description and summary
* Adjust the server repository wrapper to pass through summary and
description

# To test

* Generate OAS bundle: `node scripts/capture_oas_snapshot --include-path
/api/streams --update`
* Apply overlays `cd oas_docs && make api-docs`
* Make sure bump.sh is installed (`npm install -g bump-cli`)
* Run for preview: `cd oas_docs && bump preview output/kibana.yaml`

# Open questions

* Does the split into public and internal make sense?
* Is it a problem if this is visible in the user-facing documentation
page before we actually release streams? Or would it be OK if the API is
marked as experimental? (mostly a question for @LucaWintergerst )

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
@gbamparop
Copy link
Contributor

Examples will be added once #212495 lands

@flash1293 is there an issue for this?

@flash1293
Copy link
Contributor Author

@gbamparop there is now: https://github.com/elastic/streams-program/issues/241 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels Feature:Streams This is the label for the Streams Project release_note:skip Skip the PR/issue when compiling release notes v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants