-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
🌊 Refactor APIs to follow Elasticsearch conventions #204671
🌊 Refactor APIs to follow Elasticsearch conventions #204671
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
x-pack/test/tsconfig.json
changes LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks mostly good. Left some general questions.
There were a couple smaller issues left from the conflicts - not sure if you still need it but I pushed some fixes here: 473067e
The fields page still has an issue I didn't tackle
x-pack/packages/kbn-streams-schema/src/models/stream_config/wired_stream_config.ts
Outdated
Show resolved
Hide resolved
x-pack/packages/kbn-streams-schema/src/models/streams/ingest_stream.ts
Outdated
Show resolved
Hide resolved
…to use the new types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM on latest changes
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Any counts in public APIs
Async chunks
Public APIs missing exports
Unknown metric groupsAPI count
History
|
Starting backport for target branches: 8.x |
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
…205121) # Backport This will backport the following commits from `main` to `8.x`: - [🌊 Refactor APIs to follow Elasticsearch conventions (#204671)](#204671) Co-authored-by: Chris Cowan <[email protected]>
## Summary Small fix to the Schema Editor page after the changes in #204671. (Without this mapped fields won't be displayed as we use a read stream definition).
…5251) ## Summary Small fix to the Schema Editor page after the changes in elastic#204671. (Without this mapped fields won't be displayed as we use a read stream definition). (cherry picked from commit 8cc2f2b)
…205251) (#205266) # Backport This will backport the following commits from `main` to `8.x`: - [[Streams] Schema Editor isWiredStream > isWiredReadStream (#205251)](#205251) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Kerry Gallagher","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-30T14:24:19Z","message":"[Streams] Schema Editor isWiredStream > isWiredReadStream (#205251)\n\n## Summary\r\n\r\nSmall fix to the Schema Editor page after the changes in\r\nhttps://github.com//pull/204671.\r\n\r\n(Without this mapped fields won't be displayed as we use a read stream\r\ndefinition).","sha":"8cc2f2b9c8c463feaa87f77a05e46a3f75f10fb7","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:version","v8.18.0","Feature:Streams"],"title":"[Streams] Schema Editor isWiredStream > isWiredReadStream","number":205251,"url":"https://github.com/elastic/kibana/pull/205251","mergeCommit":{"message":"[Streams] Schema Editor isWiredStream > isWiredReadStream (#205251)\n\n## Summary\r\n\r\nSmall fix to the Schema Editor page after the changes in\r\nhttps://github.com//pull/204671.\r\n\r\n(Without this mapped fields won't be displayed as we use a read stream\r\ndefinition).","sha":"8cc2f2b9c8c463feaa87f77a05e46a3f75f10fb7"}},"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/205251","number":205251,"mergeCommit":{"message":"[Streams] Schema Editor isWiredStream > isWiredReadStream (#205251)\n\n## Summary\r\n\r\nSmall fix to the Schema Editor page after the changes in\r\nhttps://github.com//pull/204671.\r\n\r\n(Without this mapped fields won't be displayed as we use a read stream\r\ndefinition).","sha":"8cc2f2b9c8c463feaa87f77a05e46a3f75f10fb7"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Kerry Gallagher <[email protected]>
Summary
This PR refactors the API by creating a new packaged called
@kbn/streams-schema
where you can find all the Zod types along with some type guards. I've also updated all the API's and calls to use the new schemas.