Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up[Messenger] fixed RabbitMQ arguments not passed as integer values #29532
Conversation
carsonbot
added
Status: Needs Review
Messenger
Bug
labels
Dec 8, 2018
thePanz
changed the base branch from
4.2
to
4.1
Dec 8, 2018
thePanz
changed the title
[Messenger] fixed RabbitMQ arguments not passed as integer values
[Messenger] fixed RabbitMQ arguments not passed as integer values #SymfonyConHackday2018
Dec 8, 2018
nicolas-grekas
added this to the 4.1 milestone
Dec 8, 2018
ro0NL
reviewed
Dec 8, 2018
return $queueOptions; | ||
} | ||
foreach ($queueOptions['arguments'] as $key => $value) { |
This comment has been minimized.
This comment has been minimized.
ro0NL
Dec 8, 2018
Contributor
you could do
foreach (array('x-max-..', ...) as $key) {
if (isset($queueOptions['arguments'][$key]) { ... }
}
and save a few lines. Also im wondering if it's better to add private function getArguments()
and normalize when needed (i.e. setArguments(getArguments())
This comment has been minimized.
This comment has been minimized.
thePanz
Dec 15, 2018
Author
Contributor
I refactored that part. I added a constant keeping all the arguments that should be an integer, and later iterating over that. wdyt?
alquerci
suggested changes
Dec 11, 2018
This patch is a good entry point to find solution of the bug. But it left to provide a scale-able solution for arguments schema. Status: Needs Work |
carsonbot
added
Status: Needs Work
and removed
Status: Needs Review
labels
Dec 11, 2018
thePanz
force-pushed the
thePanz:issue-29044-messenger-fix-rabbitmq-int-arguments
branch
from
7eff179
to
31dfeee
Dec 15, 2018
carsonbot
added
Status: Needs Review
and removed
Status: Needs Work
labels
Dec 15, 2018
alquerci
reviewed
Dec 15, 2018
thePanz
force-pushed the
thePanz:issue-29044-messenger-fix-rabbitmq-int-arguments
branch
from
fd0f0e2
to
dab71ef
Dec 16, 2018
This comment has been minimized.
This comment has been minimized.
@alquerci added handling of null and not-integer values, maybe some more tests should be added? |
thePanz
closed this
Dec 16, 2018
thePanz
reopened this
Dec 16, 2018
thePanz
force-pushed the
thePanz:issue-29044-messenger-fix-rabbitmq-int-arguments
branch
from
86595d0
to
a595a99
Dec 16, 2018
alquerci
reviewed
Dec 16, 2018
thePanz
force-pushed the
thePanz:issue-29044-messenger-fix-rabbitmq-int-arguments
branch
from
66169e4
to
108d1d2
Dec 17, 2018
alquerci
approved these changes
Dec 17, 2018
carsonbot
added
Status: Reviewed
and removed
Status: Needs Review
labels
Dec 17, 2018
alquerci
suggested changes
Dec 17, 2018
carsonbot
removed
the
Status: Reviewed
label
Dec 17, 2018
carsonbot
added
the
Status: Needs Work
label
Dec 17, 2018
thePanz
force-pushed the
thePanz:issue-29044-messenger-fix-rabbitmq-int-arguments
branch
from
9e20d1d
to
382ead4
Dec 17, 2018
This comment has been minimized.
This comment has been minimized.
@alquerci is there any other change to be done? :) |
carsonbot
removed
the
Status: Needs Work
label
Dec 17, 2018
alquerci
approved these changes
Dec 17, 2018
carsonbot
added
the
Status: Reviewed
label
Dec 17, 2018
This comment has been minimized.
This comment has been minimized.
It was triggered by my last review pass #29532 (review) Now the patch looks good except for the doubt I have:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Looks good to me. |
This comment has been minimized.
This comment has been minimized.
|
nicolas-grekas
force-pushed the
thePanz:issue-29044-messenger-fix-rabbitmq-int-arguments
branch
2 times, most recently
from
6e11eed
to
7c428ef
Jan 25, 2019
nicolas-grekas
approved these changes
Jan 25, 2019
nicolas-grekas
force-pushed the
thePanz:issue-29044-messenger-fix-rabbitmq-int-arguments
branch
from
7c428ef
to
55985df
Jan 25, 2019
xabbuh
modified the milestones:
4.1,
4.2
Jan 29, 2019
xabbuh
approved these changes
Jan 29, 2019
nicolas-grekas
changed the title
[Messenger] fixed RabbitMQ arguments not passed as integer values #SymfonyConHackday2018
[Messenger] fixed RabbitMQ arguments not passed as integer values
Jan 29, 2019
nicolas-grekas
changed the base branch from
4.1
to
4.2
Jan 29, 2019
This comment has been minimized.
This comment has been minimized.
Thank you @thePanz. |
thePanz commentedDec 8, 2018
•
edited
RabbitMQ expects some arguments to be passed as integer values.
Make sure to cast those after parsing the DSN
\cc @thomaskonrad