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

[dg] Rename get_schema to get_model_cls #28944

Merged
merged 1 commit into from
Apr 3, 2025
Merged

Conversation

schrockn
Copy link
Member

@schrockn schrockn commented Apr 2, 2025

Summary & Motivation

I think we should rename get_schema to get_model_cls. Assuming everyone agrees wiill update docs as well.

How I Tested These Changes

BK

Changelog

  • Component.get_schema has been renamed to Component.get_model_cls. Override that instead to customize the frontend of your component. Component.get_schema will continue to work for the time being but will be removed at some point.

Copy link
Member Author

schrockn commented Apr 2, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@schrockn schrockn requested a review from OwenKephart April 2, 2025 13:21
@schrockn schrockn changed the title [dg] Rename get_schema to get_model_cls [dg] RFC: Rename get_schema to get_model_cls Apr 2, 2025
@schrockn schrockn marked this pull request as ready for review April 2, 2025 13:22
Copy link
Contributor

@OwenKephart OwenKephart left a comment

Choose a reason for hiding this comment

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

sure makes sense -- seems changelog entry worthy

@schrockn schrockn force-pushed the schrockn/root-model branch from 71e8e7a to fdfd0a5 Compare April 2, 2025 19:31
@schrockn schrockn requested a review from neverett as a code owner April 2, 2025 19:31
@schrockn schrockn force-pushed the schrockn/root-model branch from fdfd0a5 to 0975cad Compare April 2, 2025 20:10
@schrockn schrockn changed the title [dg] RFC: Rename get_schema to get_model_cls [dg] Rename get_schema to get_model_cls Apr 3, 2025
Copy link
Member Author

schrockn commented Apr 3, 2025

Merge activity

  • Apr 3, 1:42 PM EDT: A user started a stack merge that includes this pull request via Graphite.
  • Apr 3, 1:42 PM EDT: A user merged this pull request with Graphite.

@schrockn schrockn merged commit 6069459 into master Apr 3, 2025
7 checks passed
@schrockn schrockn deleted the schrockn/root-model branch April 3, 2025 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants