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

[Move @kbn/config-schema to server] examples/response_stream #189520

Conversation

afharo
Copy link
Member

@afharo afharo commented Jul 30, 2024

Summary

Part of #189476.

We want to avoid @kbn/config-schema from leaking to the browser.

For maintainers

@afharo afharo added :ml technical debt Improvement of the software architecture and operational architecture release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting Team:ML Team label for ML (also use :ml) labels Jul 30, 2024
@afharo afharo self-assigned this Jul 30, 2024
@afharo afharo requested a review from a team as a code owner July 30, 2024 14:38
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@@ -7,5 +7,4 @@
*/

export { reducerStreamReducer } from './reducer';
export { reducerStreamRequestBodySchema } from './request_body_schema';
export type { ReducerStreamRequestBodySchema } from './request_body_schema';
export type { ReducerStreamRequestBodySchema } from '../../../server/routes/schemas/reducer_stream';
Copy link
Contributor

Choose a reason for hiding this comment

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

This was in common originally because just the type was reused on the client (which shouldn't leak the whole lib). It looks like this usage is no longer the case so I think you can remove this export from common.

@@ -6,5 +6,4 @@
* Side Public License, v 1.
*/

export { simpleStringStreamRequestBodySchema } from './request_body_schema';
export type { SimpleStringStreamRequestBodySchema } from './request_body_schema';
export type { SimpleStringStreamRequestBodySchema } from '../../../server/routes/schemas/simple_string_stream';
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here, it looks like this can be removed from common altogether.

@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

cc @afharo

@afharo afharo requested a review from walterra July 30, 2024 18:56
@afharo afharo enabled auto-merge (squash) July 30, 2024 18:56
Copy link
Contributor

@walterra walterra left a comment

Choose a reason for hiding this comment

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

Latest changes LGTM, thanks!

@afharo afharo merged commit f6b37d9 into elastic:main Jul 30, 2024
20 checks passed
@afharo afharo deleted the move-config-schema-to-server/examples/response_stream branch July 30, 2024 18:57
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 :ml release_note:skip Skip the PR/issue when compiling release notes Team:ML Team label for ML (also use :ml) technical debt Improvement of the software architecture and operational architecture v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants