Skip to content

Adjust the last message of dataset creation progress when the status is "error" #61

@Palollo

Description

@Palollo

This is an example of response for GET /datasets/{id}/creationStatus:

{
  "datasetId": "d7129f36-5d28-4e66-b674-8166ad20c5c9", 
  "status": "error", 
  "lastMessage": "The patientAge in that series differs from other series: /mnt/datalake/quibim/67498b4710c8ae9a2c812254/..."
}

The specification is here: https://eucaim-node.i3m.upv.es/dataset-service/api-doc#tag/datasets/operation/getDatasetCreationStatus
The "status" property is enum with possible values: "pending" "running" "finished" "error".

In this case, when the "status" value is "error", this is what is shown:
Image

But the creation is not "in progress", it has been interrupted by the error.

The proposal to fix:
if the value of "status" in the response is "error" change the message to:
"Dataset creation has been interrupted due to error: <value of lastMessage>"

Moreover, the auto-refresh of status (currently every 15 seconds) should stop when the status change to "error".

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions