-
Notifications
You must be signed in to change notification settings - Fork 176
Description
Describe the bug
The get_sample_operation function doesn't match the OperationStep classs because it is missing id and templateStepId and has stepId which is not in the model.
def get_sample_operation(operation_id: str) -> dict:
return {
"id": operation_id,
"resourceId": "933ad738-7265-4b5f-9eae-a1a62928772e",
"resourcePath": "/workspaces/933ad738-7265-4b5f-9eae-a1a62928772e",
"resourceVersion": 0,
"status": "awaiting_deployment",
"action": "install",
"message": "",
"createdWhen": 1642611942.423857,
"updatedWhen": 1642611942.423857,
"steps": [
{
"stepId": "main",
"stepTitle": "deployment for main",
"resourceId": "933ad738-7265-4b5f-9eae-a1a62928772e",
"resourceTemplateName": "tre-workspace-base",
"resourceType": "workspace",
"resourceAction": "install",
"status": "awaiting_deployment",
"updatedWhen": 1642611942.423857
}
]
}
class OperationStep(AzureTREModel):
"""
Model to define a step in an operation. Each step references either a secondary resource or the primary resource (stepId=main)
The steps are built up front as the operation is created from the initial user request.
As each step completes, the next one is processed.
"""
id: str = Field(title="Id", description="Unique id identifying the step")
templateStepId: str = Field(title="templateStepId", description="Unique id identifying the step")
stepTitle: Optional[str] = Field(title="stepTitle", description="Human readable title of what the step is for")
resourceId: Optional[str] = Field(title="resourceId", description="Id of the resource to update")
.....
Steps to reproduce
1.N/A (code issue)
Azure TRE release version (e.g. v0.14.0 or main):
main
Deployed Azure TRE components - click the (i) in the UI:
latest
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels