-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Messenger] [Redis] Fix auth option wrongly considered invalid #42173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
Connection::fromDsn('redis://password:localhost/queue', [], $redis); | ||
} | ||
|
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.
This test was added in #42067 but it never passed, the dsn is invalid (https://github.com/symfony/symfony/runs/3097443193#step:11:102)
27a3f5a
to
ccc5513
Compare
/** | ||
* @group legacy | ||
* ^ for now, deprecation errors are thrown during serialization. | ||
*/ |
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.
This test was broken because it uses an incomplete symfony serializer (see https://github.com/symfony/symfony/runs/3097443193#step:11:72)
Green 🎉 |
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. Just a minor thing and a question. =)
src/Symfony/Component/Messenger/Bridge/Redis/Tests/Transport/ConnectionTest.php
Show resolved
Hide resolved
@@ -225,6 +225,7 @@ private static function validateOptions(array $options): void | |||
{ | |||
$availableOptions = array_keys(self::DEFAULT_OPTIONS); | |||
$availableOptions[] = 'serializer'; | |||
$availableOptions[] = 'auth'; |
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.
Why is this needed?
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.
Because these options did not have a default and if they aren't added to the $avaibleOptions
array, you get a deprecation notice (exception in 6.0).
It turns out that we can easily add ones, I did :)
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.
You are correct. Thank you.
5df784c
to
95c5558
Compare
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.
Im happy when the CI is green
Thanks for the review. |
Will also make the CI back to green on 5.2.