Hi @honoki,
Spamming with issues :)
I'm not sure if this was your intention but when two alerts are sent via bbrf alert with the same message e.g.
bbrf alert test
bbrf alert test
only first message will be stored in CouchDB. Second attempt results in CouchDB returning error:
b'[{"id":"test","error":"conflict","reason":"Document update conflict."}]\n'
That's because document _id is set to message value that is not always unique.
Will it break something when alert _id will be auto-generated? (UUIDv4, timestamp etc.)
Hi @honoki,
Spamming with issues :)
I'm not sure if this was your intention but when two alerts are sent via
bbrf alertwith the same message e.g.only first message will be stored in CouchDB. Second attempt results in CouchDB returning error:
b'[{"id":"test","error":"conflict","reason":"Document update conflict."}]\n'That's because document
_idis set to message value that is not always unique.Will it break something when alert
_idwill be auto-generated? (UUIDv4, timestamp etc.)