You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unify and use data models for Bulk Operations. The goal is to limit code duplication.
Also we can Leverage Union in Pydantic, and add a pydantic discriminator to the union on the action field to save time at the serialization time. The action field tells us what model to deserialize instead of using a left to right resolution.
Use case/motivation
To eliminate duplicate code fragments for similar purposes in bulk operations for models such as connections, pools and variables.
Description
Unify and use data models for Bulk Operations. The goal is to limit code duplication.
Also we can Leverage Union in Pydantic, and add a pydantic discriminator to the union on the
action
field to save time at the serialization time. The action field tells us what model to deserialize instead of using a left to right resolution.Use case/motivation
To eliminate duplicate code fragments for similar purposes in bulk operations for models such as connections, pools and variables.
Related issues
#45601
Are you willing to submit a PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: