[Streams 🌊] Enable /api/streams/{id}/_group endpoints for GroupStreams#210114
[Streams 🌊] Enable /api/streams/{id}/_group endpoints for GroupStreams#210114simianhacker merged 14 commits intoelastic:mainfrom
/api/streams/{id}/_group endpoints for GroupStreams#210114Conversation
/api/streams/{id}/_group endpoints for GroupStreams
x-pack/solutions/observability/plugins/streams/server/routes/streams/group/route.ts
Outdated
Show resolved
Hide resolved
|
Oops... good catch. Did we miss that before? |
|
There is a check that prevents wired/unwired switches somewhere, but I think we did for group<->ingest streams. We should probaly also update the |
flash1293
left a comment
There was a problem hiding this comment.
The particular case that's mentioned is fixed, but I found a new one... if there is a classic stream occupying a name already, it will still save the group stream:
POST metrics-test-test/_doc
{
"@timestamp": "2025"
}
# unwired stream
GET kbn:/api/streams/metrics-test-test
# create as group stream
PUT kbn:/api/streams/metrics-test-test
{
"stream": {
"group": {
"members": ["logs.child1"]
}
},
"dashboards": []
}
# returns group stream, unwired stream unaccessible
GET kbn:/api/streams/metrics-test-test
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Public APIs missing comments
Async chunks
History
|
| @@ -166,11 +166,23 @@ export const editStreamRoute = createServerRoute({ | |||
|
|
|||
| if ( | |||
| isGroupStreamDefinition({ ...params.body.stream, name: params.path.name }) && | |||
There was a problem hiding this comment.
To make sure I get it right - this branch is just to make typescript happy, right?
|
Starting backport for target branches: 8.x, 9.0 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…ams (elastic#210114) ## Summary This PR implements 2 endpoints as a follow up to elastic#208126 for working directly with the `group` object for `GroupStreamDefinition`: - `PUT /api/streams/{id}/_group` - `GET /api/streams/{id}/_group` --------- Co-authored-by: Joe Reuter <johannes.reuter@elastic.co> (cherry picked from commit 8c90076)
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
…upStreams (#210114) (#212114) # Backport This will backport the following commits from `main` to `8.x`: - [[Streams 🌊] Enable `/api/streams/{id}/_group` endpoints for GroupStreams (#210114)](#210114) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Chris Cowan","email":"chris@elastic.co"},"sourceCommit":{"committedDate":"2025-02-20T16:03:06Z","message":"[Streams 🌊] Enable `/api/streams/{id}/_group` endpoints for GroupStreams (#210114)\n\n## Summary\n\nThis PR implements 2 endpoints as a follow up to\nhttps://github.com//pull/208126 for working directly with\nthe `group` object for `GroupStreamDefinition`:\n\n- `PUT /api/streams/{id}/_group`\n- `GET /api/streams/{id}/_group`\n\n---------\n\nCo-authored-by: Joe Reuter <johannes.reuter@elastic.co>","sha":"8c90076d803177b0c1a9d17d00e78b242d5758ef","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","backport:version","Feature:Streams","v9.1.0","v8.19.0"],"title":"[Streams 🌊] Enable `/api/streams/{id}/_group` endpoints for GroupStreams","number":210114,"url":"https://github.com/elastic/kibana/pull/210114","mergeCommit":{"message":"[Streams 🌊] Enable `/api/streams/{id}/_group` endpoints for GroupStreams (#210114)\n\n## Summary\n\nThis PR implements 2 endpoints as a follow up to\nhttps://github.com//pull/208126 for working directly with\nthe `group` object for `GroupStreamDefinition`:\n\n- `PUT /api/streams/{id}/_group`\n- `GET /api/streams/{id}/_group`\n\n---------\n\nCo-authored-by: Joe Reuter <johannes.reuter@elastic.co>","sha":"8c90076d803177b0c1a9d17d00e78b242d5758ef"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/210114","number":210114,"mergeCommit":{"message":"[Streams 🌊] Enable `/api/streams/{id}/_group` endpoints for GroupStreams (#210114)\n\n## Summary\n\nThis PR implements 2 endpoints as a follow up to\nhttps://github.com//pull/208126 for working directly with\nthe `group` object for `GroupStreamDefinition`:\n\n- `PUT /api/streams/{id}/_group`\n- `GET /api/streams/{id}/_group`\n\n---------\n\nCo-authored-by: Joe Reuter <johannes.reuter@elastic.co>","sha":"8c90076d803177b0c1a9d17d00e78b242d5758ef"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
…upStreams (elastic#210114) (elastic#212114) # Backport This will backport the following commits from `main` to `8.x`: - [[Streams 🌊] Enable `/api/streams/{id}/_group` endpoints for GroupStreams (elastic#210114)](elastic#210114) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Chris Cowan","email":"chris@elastic.co"},"sourceCommit":{"committedDate":"2025-02-20T16:03:06Z","message":"[Streams 🌊] Enable `/api/streams/{id}/_group` endpoints for GroupStreams (elastic#210114)\n\n## Summary\n\nThis PR implements 2 endpoints as a follow up to\nhttps://github.com/elastic/pull/208126 for working directly with\nthe `group` object for `GroupStreamDefinition`:\n\n- `PUT /api/streams/{id}/_group`\n- `GET /api/streams/{id}/_group`\n\n---------\n\nCo-authored-by: Joe Reuter <johannes.reuter@elastic.co>","sha":"8c90076d803177b0c1a9d17d00e78b242d5758ef","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","backport:version","Feature:Streams","v9.1.0","v8.19.0"],"title":"[Streams 🌊] Enable `/api/streams/{id}/_group` endpoints for GroupStreams","number":210114,"url":"https://github.com/elastic/kibana/pull/210114","mergeCommit":{"message":"[Streams 🌊] Enable `/api/streams/{id}/_group` endpoints for GroupStreams (elastic#210114)\n\n## Summary\n\nThis PR implements 2 endpoints as a follow up to\nhttps://github.com/elastic/pull/208126 for working directly with\nthe `group` object for `GroupStreamDefinition`:\n\n- `PUT /api/streams/{id}/_group`\n- `GET /api/streams/{id}/_group`\n\n---------\n\nCo-authored-by: Joe Reuter <johannes.reuter@elastic.co>","sha":"8c90076d803177b0c1a9d17d00e78b242d5758ef"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/210114","number":210114,"mergeCommit":{"message":"[Streams 🌊] Enable `/api/streams/{id}/_group` endpoints for GroupStreams (elastic#210114)\n\n## Summary\n\nThis PR implements 2 endpoints as a follow up to\nhttps://github.com/elastic/pull/208126 for working directly with\nthe `group` object for `GroupStreamDefinition`:\n\n- `PUT /api/streams/{id}/_group`\n- `GET /api/streams/{id}/_group`\n\n---------\n\nCo-authored-by: Joe Reuter <johannes.reuter@elastic.co>","sha":"8c90076d803177b0c1a9d17d00e78b242d5758ef"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
…ams (elastic#210114) ## Summary This PR implements 2 endpoints as a follow up to elastic#208126 for working directly with the `group` object for `GroupStreamDefinition`: - `PUT /api/streams/{id}/_group` - `GET /api/streams/{id}/_group` --------- Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>

Summary
This PR implements 2 endpoints as a follow up to #208126 for working directly with the
groupobject forGroupStreamDefinition:PUT /api/streams/{id}/_groupGET /api/streams/{id}/_group