Skip to content

Two events with the same status, UI takes the latest payload for both #189

@alexiswl

Description

@alexiswl

Consider - https://orcaui.umccr.org/runs/workflow/wfr.01JZHAHTX6E7YN1AHR944F66T2

Two draft events are shown in the UI but both have the same payload in the UI.

When we have a look at the payloads registered in the workflow manager, we see

So UI should show the first event has having an empty payload instead

curl \
  --request 'GET' \
  --header 'accept: application/json' \
  --header 'Authorization:  __ORCABUS_TOKEN__' \
  --url 'https://workflow.prod.umccr.org/api/v1/workflowrun/wfr.01JZHAHTX6E7YN1AHR944F66T2/state/' | 
jq 'sort_by(.timestamp)
[
  // But first draft payload is actually empty
  {
    "orcabusId": "stt.01JZHAHTY8TMJMNMYVQKZEE8MM",
    "status": "DRAFT",
    "timestamp": "2025-07-07T02:13:25Z",
    "comment": null,
    "workflowRun": "wfr.01JZHAHTX6E7YN1AHR944F66T2",
    "payload": null
  },
  // But second one is shown for both events in the UI
  {
    "orcabusId": "stt.01JZHAJHM2YQ0NTPFES3TFC55F",
    "status": "DRAFT",
    "timestamp": "2025-07-07T02:13:53.693000Z",
    "comment": null,
    "workflowRun": "wfr.01JZHAHTX6E7YN1AHR944F66T2",
    "payload": "pld.01JZHAJHM21Q6S85BAEBR1W0DM"
  },
  {
    "orcabusId": "stt.01JZHAJJD8ZEGFD6N0MDVEF20F",
    "status": "READY",
    "timestamp": "2025-07-07T02:13:54.433000Z",
    "comment": null,
    "workflowRun": "wfr.01JZHAHTX6E7YN1AHR944F66T2",
    "payload": "pld.01JZHAJJD8Y32EH2CG5A2N6D1S"
  },
  {
    "orcabusId": "stt.01JZHAJTS8830ACM1XZ320RDXG",
    "status": "SUBMITTED",
    "timestamp": "2025-07-07T02:14:03Z",
    "comment": null,
    "workflowRun": "wfr.01JZHAHTX6E7YN1AHR944F66T2",
    "payload": "pld.01JZHAJTS8PCGKBB29TFNQ9E87"
  },
  {
    "orcabusId": "stt.01JZHAJW0Q6MVQVT7WVH7NG437",
    "status": "RUNNABLE",
    "timestamp": "2025-07-07T02:14:04Z",
    "comment": null,
    "workflowRun": "wfr.01JZHAHTX6E7YN1AHR944F66T2",
    "payload": "pld.01JZHAJW0Q7MH8ME5SXTF01V7P"
  },
  {
    "orcabusId": "stt.01JZHAN2M8H2BMB4N12P4JKC5G",
    "status": "STARTING",
    "timestamp": "2025-07-07T02:15:16Z",
    "comment": null,
    "workflowRun": "wfr.01JZHAHTX6E7YN1AHR944F66T2",
    "payload": "pld.01JZHAN2M8BMXXD570XDJJ5GRW"
  },
  {
    "orcabusId": "stt.01JZHBKHNN0BE1S9FNFSCRDD7D",
    "status": "RUNNING",
    "timestamp": "2025-07-07T02:31:50Z",
    "comment": null,
    "workflowRun": "wfr.01JZHAHTX6E7YN1AHR944F66T2",
    "payload": "pld.01JZHBKHNPA4MZJW0Y0M23TZV9"
  },
  {
    "orcabusId": "stt.01JZHJ46MX409H5V9B9QV6NF58",
    "status": "SUCCEEDED",
    "timestamp": "2025-07-07T04:25:48Z",
    "comment": null,
    "workflowRun": "wfr.01JZHAHTX6E7YN1AHR944F66T2",
    "payload": "pld.01JZHJ46MX2671XE9QSGBEMKYS"
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions