Connection nodes speak of listener and sender, and of send_queue_size
mqtt and http take websocket's vocabulary: their Mode is LISTENER/SENDER, default names read mqtt_listener_… and http_listener_…, and mqtt's publish_queue_size is send_queue_size. No alias stays behind, so the flow store rewrites the old setting in every published and draft mqtt node when it opens, in the same migration as trigger → debounce. Every mqtt and http setting carries a one-line description for the editor, and the node-types reference uses one wording for direction and says that an http sender publishes a JSON object response on its outputs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WgBfkm4rCmtd1T4vHWjEPx
This commit is contained in:
@@ -159,3 +159,17 @@ def test_opening_the_store_renames_trigger_nodes_to_debounce(store: FlowStore):
|
||||
|
||||
FlowStore(store.root)
|
||||
assert commit_count(store) == commits + 1
|
||||
|
||||
|
||||
def test_opening_the_store_renames_the_mqtt_publish_queue_size(store: FlowStore):
|
||||
"""The mqtt setting is now `send_queue_size`, with no alias for the old name."""
|
||||
relay = NodeDef(id="relay", type="mqtt", params={"publish_queue_size": 8})
|
||||
store.write_flow(FlowDef(name="hall", nodes=[relay]))
|
||||
commits = commit_count(store)
|
||||
|
||||
reopened = FlowStore(store.root)
|
||||
|
||||
published = reopened.read_flow("hall")
|
||||
assert published.nodes[0].params == {"send_queue_size": 8}
|
||||
assert published.version == 2
|
||||
assert commit_count(store) == commits + 1
|
||||
|
||||
Reference in New Issue
Block a user