Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Messenger] #44254 Changing queue name precedence #44291

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

Open
wants to merge 5 commits into
base: 5.3
Choose a base branch
Loading
from

Conversation

aderiyenko
Copy link

Q A
Branch? 5.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #44254
License MIT

Suggesting to change the precedence of queue_name option to config -> DSN -> default ("messages") instead of current DSN -> config -> default ("messages")

@carsonbot
Copy link

Hey!

I see that this is your first PR. That is great! Welcome!

Symfony has a contribution guide which I suggest you to read.

In short:

  • Always add tests
  • Keep backward compatibility (see https://symfony.com/bc).
  • Bug fixes must be submitted against the lowest maintained branch where they apply (see https://symfony.com/releases)
  • Features and deprecations must be submitted against the 5.4 branch.

Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change.

When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot

@aderiyenko aderiyenko changed the base branch from 5.4 to 5.3 November 26, 2021 16:28
Copy link
Member

@jderusse jderusse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The DSN takes precedence over the options on purpose.

ie. PROD and PRE_PROD share the same configuration (and same queue_name in the messenger.yaml) but they use 2 differents DSN to define the targeted queue.

If you want to share the same DSN across different configurations, you can either:

  • remove the queue name from the ENV variabnle, in that way, the connection will fallback to the option
  • make the queue name part the DSN. ie. dsn : "%env(MESSENGER_TRANSPORT_DSN)%/my_queue"

Alexey Deriyenko added 2 commits November 28, 2021 14:05
@aderiyenko
Copy link
Author

Thanks for your review @jderusse !

In this case I'll let the reporter here know to just remove the queue name from the DSN and specify it explicitly in the options.

And then I just left a test for the default message name == 'messages' as I haven't found such a test in the suite.

LMK if it makes sense and thanks again!

@fabpot fabpot modified the milestones: 5.4, 6.1 Nov 29, 2021
@aderiyenko aderiyenko requested a review from jderusse December 1, 2021 12:47
@fabpot fabpot modified the milestones: 6.1, 6.2 May 20, 2022
@nicolas-grekas nicolas-grekas modified the milestones: 6.2, 6.3 Nov 5, 2022
@nicolas-grekas nicolas-grekas modified the milestones: 6.3, 6.4 May 23, 2023
@nicolas-grekas nicolas-grekas modified the milestones: 6.4, 7.1 Nov 15, 2023
@nicolas-grekas nicolas-grekas modified the milestones: 7.1, 6.4 Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[AmazonSqsMessenger] DSN queue name overrides queue_name from options
5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.