-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
feat: add dynamic state model creation and update #3271
Conversation
Pull Request Validation ReportThis comment is automatically generated by Conventional PR Whitelist Report
Result Pull request does not satisfy any enabled whitelist criteria. Pull request will be validated. Validation Report
Result Pull request satisfies all enabled pull request rules. Last Modified at 09 Aug 24 22:05 UTC |
This pull request is automatically being deployed by Amplify Hosting (learn more). |
5016132
to
fb82107
Compare
…output getter in graph state module
…nt outputs in custom_component class
… instance getter in custom_component class
Refactor the Component class in the custom_component module to change the visibility of the method `_get_output_by_method` to public by renaming it to `get_output_by_method`. This change improves the accessibility and clarity of the method for external use.
…er utilities in state model to ensure proper structure
…st_graph_state_model.py
…ent.py for state model instance retrieval
…unctional state update validation
…ed clarity and usage in state model tests
… improved method integrity in state model handling
…rror handling for output methods in model.py
…in test_state_model.py
…l for consistency in test_state_model.py
…odel.py for improved flexibility
….py to enhance code clarity and usability
…rify usage and validation details
…to improve clarity on functionality and usage scenarios
….py to clarify functionality and usage examples
…e_model.py to clarify functionality and provide examples
…ved structure and correctness verification
fb82107
to
61aef47
Compare
This pull request includes several refactorings and feature additions to the Component class in the custom_component module. The visibility of the method
_get_output_by_method
has been changed to public by renaming it toget_output_by_method
, improving accessibility and clarity. Additionally, state model management has been implemented with lazy initialization and dynamic instance getter in the custom_component class. The_reset_all_output_values
method has been added to initialize component outputs. The Graph class has been enhanced with lazy loading for state model creation from the graph, and a new methodcreate_state_model_from_graph
has been added to the graph state_model module. Unit tests and functional tests have been added to validate the state model creation and graph state update.