This repository has been archived by the owner on Jul 28, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 94
fix(message-order): consume message by creation order (fifo) #362
Merged
core23
merged 1 commit into
sonata-project:master
from
mazsudo:handle-message-by-creation-order
Feb 9, 2019
Merged
fix(message-order): consume message by creation order (fifo) #362
core23
merged 1 commit into
sonata-project:master
from
mazsudo:handle-message-by-creation-order
Feb 9, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mazsudo
force-pushed
the
handle-message-by-creation-order
branch
2 times, most recently
from
January 23, 2019 16:23
cbadd67
to
c94db70
Compare
Thank you for the detailed description of this behavior and I share your thoughts! 👍 |
OskarStark
reviewed
Jan 23, 2019
OskarStark
approved these changes
Jan 23, 2019
Thanks for your feedback @OskarStark. FI, i'm going to rework this PR to do an orderBy ASC and an array_shift rather than orderBy DESC and array_pop that sounds more like a double negation. |
OskarStark
suggested changes
Jan 23, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, I will prevent merging by "Requesting Changes", please ping me when you want an review again 👍 🚀
mazsudo
force-pushed
the
handle-message-by-creation-order
branch
2 times, most recently
from
January 24, 2019 09:38
af45b09
to
86edef9
Compare
should be good now @OskarStark ;) orderBy ASC + array_shift is clearer for everyone i hope |
OskarStark
reviewed
Jan 24, 2019
OskarStark
suggested changes
Jan 24, 2019
mazsudo
force-pushed
the
handle-message-by-creation-order
branch
from
January 24, 2019 14:05
86edef9
to
db3a1df
Compare
OskarStark
approved these changes
Jan 29, 2019
core23
approved these changes
Feb 9, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Subject
I found out that with
backend: sonata.notification.backend.doctrine
, messages are consumed in the wrong order for me that should be first in first consumed. It seems that combination of :SonataNotificationBundle/src/Entity/MessageManager.php
Line 209 in ab45a8a
SonataNotificationBundle/src/Iterator/MessageManagerMessageIterator.php
Line 126 in ab45a8a
For me it should be a First In First Out, but i may be wrong :)
I am targeting this branch, because it's changing the order of message consumption and may have some unwanted side effects on existing projects.
Changelog
### Fixed Fix order of message handling with doctrine backend (older first)