-
Notifications
You must be signed in to change notification settings - Fork 37
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
add model_rebuild_calls for result_types.py #278
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.
Whole problem that #241 sought to address was that calling model_rebuild
for models that don't require it killed client performance.
I am seeing in tests changes that models that don't have forward references are now having model_rebuild
calls which will bring us back to square one.
.../clients/fragments_on_abstract_types/expected_client/query_with_fragment_on_sub_interface.py
Outdated
Show resolved
Hide resolved
Followup from mirumee#278 and mirumee#276. We added back support to call `model_rebuild` when needed for result types but didn't add it for input types. Since input types can also require model rebuild when containing nested fields we need to call `include_model_rebuild` for these types as well.
The problem #276 , which emerged with the introduction of #241 , is resolved by this update.
It adds back
generate_method_call
forresult_types.py
.Fixes #276