-
Notifications
You must be signed in to change notification settings - Fork 102
Replace DeploymentState with DeploymentAssignmentState #2942
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
Conversation
d7ddbb2
to
dab0a09
Compare
Here is another bug I found in the ml model endpoints, atm this is failing in our production environment as we've built a detector for failing models that re-deploys them but we can't get the config back due to the deserialization error it throws. I'm using the .NET client but I suppose this issue is in all the clients generated from this spec. cc @pquentin @flobernd |
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.
LGTM
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.
LGTM. Thank you!
dab0a09
to
f77291f
Compare
(cherry picked from commit 9332d2b)
(cherry picked from commit 9332d2b) Co-authored-by: Sergi Valbuena Garrido <[email protected]>
Thanks! When do you plan to release a new version of the .NET client? @flobernd |
@svalbuena Probably early next week 🙂 |
Fixes #2941.
While the server uses the AssignmentState enum for both the state and assignment_state fields, the spec defines two different enums (DeploymentState and DeploymentAssignmentState) for it and one of them has not been updated with all the possible values:
assignment_state
field is serialized here and it is of type AssignmentState.state
field is serialized here and it is of type AssignmentState too (this is the one I'm raising the issue for).In this PR I've replaced
TrainedModel.DeploymentState
withTrainedModel.DeploymentAssignmentState
so that the spec is aligned with the server model and added comments to the cases ofTrainedModel.DeploymentAssignmentState
.