ReviewStage Objects

class ReviewStage(WorkflowStageBase)

stage_type

The Review stage for Workflows.

This stage can appear in Consensus and non-Consensus Workflows.

get_tasks

def get_tasks(
    *,
    assignee: Union[List[str], str, None] = None,
    data_hash: Union[List[UUID], UUID, List[str], str, None] = None,
    dataset_hash: Union[List[UUID], UUID, List[str], str, None] = None,
    data_title: Optional[str] = None,
    status: Union[ReviewTaskStatus, List[ReviewTaskStatus], None] = None
) -> Iterable[ReviewTask]

Retrieves tasks for the ReviewStage.

Parameters

  • assignee (Union[List[str], str, None]): User assigned to a task.
  • data_hash (Union[List[UUID], UUID, List[str], str, None]): Unique ID for the data unit.
  • dataset_hash (Union[List[UUID], UUID, List[str], str, None]): Unique ID for the dataset that the data unit belongs to.
  • data_title (Optional[str]): Name of the data unit.
  • status (Union[ReviewTaskStatus, List[ReviewTaskStatus], None]): Status of the task.

Returns

An iterable of ReviewTask instances with the following information:

  • uuid: Unique identifier for the task.
  • created_at: Time and date the task was created.
  • updated_at: Time and date the task was last edited.
  • assignee: The user currently assigned to the task. The value is None if no one is assigned to the task.
  • data_hash: Unique identifier for the data unit.
  • data_title: Name/title of the data unit.