Skip to content

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

Merged
afharo merged 2 commits intoelastic:mainfrom
afharo:move-config-schema-to-server/examples/response_stream
Jul 30, 2024
Merged

[Move @kbn/config-schema to server] examples/response_stream#189520
afharo merged 2 commits intoelastic:mainfrom
afharo:move-config-schema-to-server/examples/response_stream

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 PR does not require backporting Team:ML Team label for ML (also use :ml) t// 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)

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.


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

💚 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
@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 PR 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) t// 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