Skip to content

CE-1781: Operation logs - serve as JSON instead of HTML

Domonkos Gulyas requested to merge Fix_operation_log_structure into develop

The JSON response is looks like that:

{
  operation_id: 0,
  tasks: [
    {           
        task_index: int,
        instance_name: string,   
        status: enum,
        message: string
    },
    ...
  ],
  summary: {
    successful: int,
    failed: int
  } | null (if not all tasks are done yet)
} 

Unfortunately we don't save the IOC instance for every status change, and it doesn't have an updated_at field, so I didn't return a timestamp, but instead a task_index representing the order within the states of the instance during the operation. But this topic is need to be discussed.

Merge request reports

Loading