Add pending and rejected fields to messages, and use for clear sort order #76
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
"error": "FF10121: Database resultset read error from table 'messages': sql: Scan error on column index 8, name \"group_hash\": encoding/hex: invalid byte: U+0020 ' '"
.Set("group",
code incorrectly using a non-nil string fornil
valuesStringField
in theQueryFactory
implementationsBytes32Field
as a partner toUUIDField
and swapped them all over/events
sequence (because clocks can jitter in exceptional circumstances), but it is very strange if the order of the messages in the/messages
collection (and hence the UI) does not match the order you were delivered thempending
- this startstrue
, and goes to false once the message isconfirmed
rejected
- is set totrue
if a message is confirmed, but with a failure (partners amessage_rejected
event)pending,confirmed,created
(all descending) - meaning pending messages are always listed first in created order, then confirmed messages in order - including failed confirmed messagesmessage_invalid
tomessage_rejected
for consistencybool
columns - so I went for asmallint
approach for thepending
column-
prefix on individual column sorts on the APIe2e
test to use the-n
option onff start
proposed in Suggested improvements for local dev firefly-cli#37