Put of flow api produces z property on tab node

Hey all,
i was playing around with the api and was testing to update all flows and a specific flow via

  • put /flows
  • put /flow/{flowid}

i noticed that when you update a flow via /flow/{flowid} that the tab node inside of flows.json got a z property pointing to itself.
Is this a bug? Custom nodes could iterate the z property to find it's parent node up to the tab node for instances.
I tested it with latest release NodeRed 1.3.5

How to reproduce:

GET /flows

[
    {
        "id": "1a292e5f.95f132",
        "type": "tab",
        "label": "Flow 1",
        "disabled": false,
        "info": ""
    }
]

PUT /flow/1a292e5f.95f132
body:

{
    "id": "1a292e5f.95f132",
    "label": "Flow 1",
    "disabled": false,
    "info": "Hello_Z",
    "nodes": []
}

GET /flows

[
    {
        "type": "tab",
        "label": "Flow 1",
        "id": "1a292e5f.95f132",
        "info": "Hello_Z",
        "disabled": false,
        "z": "1a292e5f.95f132"
    }
]

Yes it is a bug - please raise an issue.

1 Like

Thanks for the fast reply. I will write an issue :slight_smile:
ticket: Put of flow api produces z property on tab node · Issue #3010 · node-red/node-red · GitHub

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.