Closed jaller94 closed 1 year ago
For each module, add an id of your choosing.
I fixed your flow below:
{
"summary": "Post a list of mesh links from OpenWifiMap to a Matrix room",
"description": "To monitor the connection quality over time this Flow fetches the mesh links from an HTTP service and posts them into a Matrix room.",
"value": {
"modules": [
{
"id": "a",
"value": {
"path": "u/christian/opemwifimap_check_links",
"type": "script",
"input_transforms": {
"id": {
"type": "static"
}
}
},
"summary": "Fetch data from OpenWifiMap",
"input_transforms": {
"id": {
"expr": "`${flow_input.wifi_id}`",
"type": "javascript"
}
}
},
{
"id": "b",
"value": {
"path": "hub/150/matrix/post_an_unencrypted_message",
"type": "script",
"input_transforms": {
"body": {
"type": "static"
},
"room": {
"type": "static"
},
"matrix_res": {
"type": "static"
}
}
},
"summary": "Post to Matrix room",
"input_transforms": {
"body": {
"expr": "`${previous_result.summary}`",
"type": "javascript"
},
"room": {
"expr": "`${flow_input.room_id}`",
"type": "javascript"
},
"matrix_res": {
"expr": "flow_input.matrix_res",
"type": "javascript"
}
}
}
]
},
"schema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"room_id",
"wifi_id",
"matrix_res",
"matrix_res"
],
"properties": {
"room_id": {
"type": "string",
"format": "",
"description": ""
},
"wifi_id": {
"type": "string",
"format": "",
"description": ""
},
"matrix_res": {
"type": "object",
"format": "resource-matrix",
"description": ""
}
}
}
}
Sorry about this migration but my belief is that we do not have many flows that are that old
Describe the bug
I have the following flow in my workspace. Whenever I load it, I get a validation error from this file.
https://github.com/windmill-labs/windmill/blob/main/frontend/src/lib/components/FlowGraphViewer.svelte
To reproduce
Expected behavior
Auto-fix old flows when loading them.
Screenshots
No response
Browser information
Mozilla Firefox 112.0b7
Application version
Windmill v1.85.0-16-g922682c4
Additional Context
No response