Skip to content
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

Conversation

dtria91
Copy link
Contributor

@dtria91 dtria91 commented Jul 1, 2024

add latest current and reference job status to ModelOut
remove unused model definition fields from sdk

dtria91 added 3 commits July 1, 2024 16:34
… into feature/ROS-310-add-latest-current-and-reference-job-status-to-modelout

# Conflicts:
#	api/app/models/model_dto.py
dtria91 added 3 commits July 1, 2024 17:25
… 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')
Copy link
Member

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?

Comment on lines +202 to +211
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
)
Copy link
Contributor

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?

Copy link
Contributor Author

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

@dtria91 dtria91 merged commit f062c1d into main Jul 2, 2024
9 checks passed
@dtria91 dtria91 deleted the feature/ROS-310-add-latest-current-and-reference-job-status-to-modelout branch July 2, 2024 09:33
maocorte pushed a commit that referenced this pull request Jul 16, 2024
* feat: add latest current and reference job status to modelOut

* fix: align with main

* fix: remove unused model definition fields into the sdk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants