{"action":"created","issue":{"url":"https://api.github.com/repos/node-red/node-red/issues/1046","repository_url":"https://api.github.com/repos/node-red/node-red","labels_url":"https://api.github.com/repos/node-red/node-red/issues/1046/labels{/name}","comments_url":"https://api.github.com/repos/node-red/node-red/issues/1046/comments","events_url":"https://api.github.com/repos/node-red/node-red/issues/1046/events","html_url":"https://github.com/node-red/node-red/issues/1046","id":188773310,"number":1046,"title":"Join mode doesn't work as expected in key/value Object mode","user":{"login":"natcl","id":77556,"avatar_url":"https://avatars.githubusercontent.com/u/77556?v=3","gravatar_id":"","url":"https://api.github.com/users/natcl","html_url":"https://github.com/natcl","followers_url":"https://api.github.com/users/natcl/followers","following_url":"https://api.github.com/users/natcl/following{/other_user}","gists_url":"https://api.github.com/users/natcl/gists{/gist_id}","starred_url":"https://api.github.com/users/natcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natcl/subscriptions","organizations_url":"https://api.github.com/users/natcl/orgs","repos_url":"https://api.github.com/users/natcl/repos","events_url":"https://api.github.com/users/natcl/events{/privacy}","received_events_url":"https://api.github.com/users/natcl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-11T14:38:01Z","updated_at":"2016-11-13T17:04:12Z","closed_at":"2016-11-13T17:04:12Z","body":"When trying to use the join mode in key/value Object mode, it doesn't seem to work in both timeout mode and message count mode.  Here are the flows to reproduce:\r\n\r\n```\r\n[{\"id\":\"8a1a042a.5b242\",\"type\":\"join\",\"z\":\"e199afb8.0fd928\",\"name\":\"\",\"mode\":\"custom\",\"build\":\"object\",\"property\":\"payload\",\"propertyType\":\"msg\",\"key\":\"topic\",\"joiner\":\"\\\\n\",\"timeout\":\"2\",\"count\":\"\",\"x\":670,\"y\":580,\"wires\":[[\"3e2f7cb0.8fe904\"]]},{\"id\":\"3e2f7cb0.8fe904\",\"type\":\"debug\",\"z\":\"e199afb8.0fd928\",\"name\":\"\",\"active\":true,\"console\":\"false\",\"complete\":\"false\",\"x\":870,\"y\":580,\"wires\":[]},{\"id\":\"4eef9fe3.5e67f\",\"type\":\"template\",\"z\":\"e199afb8.0fd928\",\"name\":\"string1\",\"field\":\"payload\",\"fieldType\":\"msg\",\"format\":\"handlebars\",\"syntax\":\"mustache\",\"template\":\"string1\",\"x\":510,\"y\":560,\"wires\":[[\"8a1a042a.5b242\"]]},{\"id\":\"62b2b033.482f7\",\"type\":\"template\",\"z\":\"e199afb8.0fd928\",\"name\":\"string2\",\"field\":\"payload\",\"fieldType\":\"msg\",\"format\":\"handlebars\",\"syntax\":\"mustache\",\"template\":\"string2\",\"x\":510,\"y\":620,\"wires\":[[\"8a1a042a.5b242\"]]},{\"id\":\"d736f543.285c08\",\"type\":\"inject\",\"z\":\"e199afb8.0fd928\",\"name\":\"\",\"topic\":\"topicjoin\",\"payload\":\"\",\"payloadType\":\"str\",\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"x\":220,\"y\":560,\"wires\":[[\"4eef9fe3.5e67f\",\"5d2f5774.853f4\"]]},{\"id\":\"5d2f5774.853f4\",\"type\":\"delay\",\"z\":\"e199afb8.0fd928\",\"name\":\"\",\"pauseType\":\"delay\",\"timeout\":\"1\",\"timeoutUnits\":\"seconds\",\"rate\":\"1\",\"nbRateUnits\":\"1\",\"rateUnits\":\"second\",\"randomFirst\":\"1\",\"randomLast\":\"5\",\"randomUnits\":\"seconds\",\"drop\":false,\"x\":340,\"y\":620,\"wires\":[[\"62b2b033.482f7\"]]},{\"id\":\"e3bf42ec.44dae8\",\"type\":\"comment\",\"z\":\"e199afb8.0fd928\",\"name\":\"Shouldn't we see string1string2 here ?\",\"info\":\"\",\"x\":930,\"y\":540,\"wires\":[]},{\"id\":\"b30be000.7ad1d\",\"type\":\"join\",\"z\":\"e199afb8.0fd928\",\"name\":\"\",\"mode\":\"custom\",\"build\":\"object\",\"property\":\"payload\",\"propertyType\":\"msg\",\"key\":\"topic\",\"joiner\":\"\\\\n\",\"timeout\":\"\",\"count\":\"2\",\"x\":670,\"y\":800,\"wires\":[[\"1f15c852.2c377\"]]},{\"id\":\"1f15c852.2c377\",\"type\":\"debug\",\"z\":\"e199afb8.0fd928\",\"name\":\"\",\"active\":true,\"console\":\"false\",\"complete\":\"false\",\"x\":870,\"y\":800,\"wires\":[]},{\"id\":\"6b7ecde4.f32d2c\",\"type\":\"template\",\"z\":\"e199afb8.0fd928\",\"name\":\"string1\",\"field\":\"payload\",\"fieldType\":\"msg\",\"format\":\"handlebars\",\"syntax\":\"mustache\",\"template\":\"string1\",\"x\":510,\"y\":780,\"wires\":[[\"b30be000.7ad1d\"]]},{\"id\":\"d7556596.10142\",\"type\":\"template\",\"z\":\"e199afb8.0fd928\",\"name\":\"string2\",\"field\":\"payload\",\"fieldType\":\"msg\",\"format\":\"handlebars\",\"syntax\":\"mustache\",\"template\":\"string2\",\"x\":510,\"y\":840,\"wires\":[[\"b30be000.7ad1d\"]]},{\"id\":\"5a6387c5.ad951\",\"type\":\"inject\",\"z\":\"e199afb8.0fd928\",\"name\":\"\",\"topic\":\"topicjoin\",\"payload\":\"\",\"payloadType\":\"str\",\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"x\":220,\"y\":780,\"wires\":[[\"6b7ecde4.f32d2c\",\"d7556596.10142\"]]},{\"id\":\"4060390d.22453\",\"type\":\"comment\",\"z\":\"e199afb8.0fd928\",\"name\":\"Shouldn't we see string1string2 here ?\",\"info\":\"\",\"x\":930,\"y\":760,\"wires\":[]},{\"id\":\"bbae3e0c.26e8e8\",\"type\":\"comment\",\"z\":\"e199afb8.0fd928\",\"name\":\"Timeout mode\",\"info\":\"\",\"x\":220,\"y\":500,\"wires\":[]},{\"id\":\"76f2dc62.69a74c\",\"type\":\"comment\",\"z\":\"e199afb8.0fd928\",\"name\":\"Message count mode\",\"info\":\"\",\"x\":240,\"y\":720,\"wires\":[]}]\r\n```"},"comment":{"url":"https://api.github.com/repos/node-red/node-red/issues/comments/260198329","html_url":"https://github.com/node-red/node-red/issues/1046#issuecomment-260198329","issue_url":"https://api.github.com/repos/node-red/node-red/issues/1046","id":260198329,"user":{"login":"natcl","id":77556,"avatar_url":"https://avatars.githubusercontent.com/u/77556?v=3","gravatar_id":"","url":"https://api.github.com/users/natcl","html_url":"https://github.com/natcl","followers_url":"https://api.github.com/users/natcl/followers","following_url":"https://api.github.com/users/natcl/following{/other_user}","gists_url":"https://api.github.com/users/natcl/gists{/gist_id}","starred_url":"https://api.github.com/users/natcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natcl/subscriptions","organizations_url":"https://api.github.com/users/natcl/orgs","repos_url":"https://api.github.com/users/natcl/repos","events_url":"https://api.github.com/users/natcl/events{/privacy}","received_events_url":"https://api.github.com/users/natcl/received_events","type":"User","site_admin":false},"created_at":"2016-11-13T17:04:12Z","updated_at":"2016-11-13T17:04:12Z","body":"Thanks for the explanation, I had the feeling I had too much expectations :)\r\nI think this is perhaps best suited for the function node as it's a very specific use case. I sadly can't use your example as the payloads/topics come from a dynamic database so I have no idea how many will be sent at a given time.\r\n\r\nSorry for the misunderstanding !"}}
{"actor":{"display_login":"natcl"}}