-
Notifications
You must be signed in to change notification settings - Fork 8
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 latest current and reference job status to modelout #59
feat: add latest current and reference job status to modelout #59
Conversation
… into feature/ROS-310-add-latest-current-and-reference-job-status-to-modelout # Conflicts: # api/app/models/model_dto.py
… into feature/ROS-310-add-latest-current-and-reference-job-status-to-modelout
… into feature/ROS-310-add-latest-current-and-reference-job-status-to-modelout
@@ -68,7 +68,5 @@ class ModelDefinition(BaseModelDefinition): | |||
uuid: uuid_lib.UUID = Field(default_factory=lambda: uuid_lib.uuid4()) | |||
created_at: str = Field(alias='createdAt') | |||
updated_at: str = Field(alias='updatedAt') |
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.
Why we have alias if we have the generator to_camel?
latest_reference_job_status = ( | ||
latest_reference_dataset.status | ||
if latest_reference_dataset | ||
else JobStatus.MISSING_REFERENCE | ||
) | ||
latest_current_job_status = ( | ||
latest_current_dataset.status | ||
if latest_current_dataset | ||
else JobStatus.MISSING_CURRENT | ||
) |
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.
Just a question: why do we need different JobStatus for current and reference? Why not just MISSING for both?
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.
you raise a fair point. We had opted to set it up dual status with the FE guys, but it could be planned to be unified in a later step if it's okay with them
* feat: add latest current and reference job status to modelOut * fix: align with main * fix: remove unused model definition fields into the sdk
add latest current and reference job status to ModelOut
remove unused model definition fields from sdk