feat: Add and resolve query projection for products and specs respectively#97
Conversation
…hri2k2/nisystemlink-clients-python into users/sam-rishi/fix-spec-response-model
…model Response Model for Query Specs with Only Optional Fields
|
@rbell517 as changes in both Product and Spec client were related to projection and model fixes, they are breaking changes and we have combined them into a single PR. Let us know if there are any concerns with it. Also, is there any specific process to do a major version bump? The angular commit documentation guideline related to schematic versioning in the contributing doc didn't mention anything about this. |
|
@rbell517, as we have created different models for Query response and Update request, @santhoshramaraj was suggesting if we could expose a method to map and create a update request model from query response so that it will be easy for the users Maybe something like this within the existing model class? class UpdateProductRequest():
def from(ProductResponse product): UpdateProductRequest
update_request = ....logic to map model....
return update_requestPlease share your thoughts |
@SSSantosh18 @shri2k2 |
@SSSantosh18 |
@rbell517 What is the suggested way of doing this? Can we update the commit message while trying to merge this branch? Or is there any better way of doing this? |
nisystemlink/clients/spec/models/_base_specification_response.py
Outdated
Show resolved
Hide resolved
@shri2k2 |
What does this Pull Request accomplish?
projectionin thequery productsrequest and includes a separate response model, where all the fields are optional.query specswhere all the fields of the model are made optional.Why should this Pull Request be merged?
What testing has been done?