Open shenqinb-star opened 1 year ago
@tlawrie @amhudson hi Tyson, ambudson, pls take a look at this issue. I checked the backend code, the reason which cause duplicated items is .config.nodes
returned in API is constructed by both.config.nodes
of DB collection + .dag.task.properties
of DB collection. pls help to clarify it is a bug, or worked as design?
Hi @shenqinb-star interesting. I'd have to look into it but maybe @amhudson knows.
Also these endpoints should only be used by the Flow App. For other integrations it should be via the API endpoints. Particularly because we don't version these endpoints, only the API ones, so any changes will just happen.
FYI 👀 @gchickma
Describe the bug Workflow Revision API: Get /workflow/workflow/600f50bb6a7d2472a948cbd0/revision/9 API return duplicated records in .config.nodes[].
To Reproduce
start
andend
ones)flow_workflows_revisions
collection. In the collection, 2 items inconfig.node
, and 4 items indag.tasks
(include start and end)..config.nodes
, but first one and third one are duplicated, second and forth one are duplicated.Expected Behavior API only return 2 items in
.config.nodes