Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Sign up
Appearance settings

[Messenger] Simplifying SyncTransport and fixing bug with handlers transport#31401

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@weaverryan
Copy link
Member

QA
Branch?master
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketsnone
LicenseMIT
Doc PRnot needed

This is still a WIP, because it's not quite working and tests are a TODO. However, the basic idea is there. This makes SyncTransport less "weird". It acts more like a real transport... except that it "receives" and re-dispatches its message immediately.

The bug I'm trying to fix is related to the transport-based handling config that@sroze introduced. It doesn't currently play nice with the sync transport due to the unnatural way that I made it originally.

Cheers!

@weaverryanweaverryan requested a review fromsroze as acode ownerMay 7, 2019 00:59
@weaverryanweaverryan added this to the4.3 milestoneMay 7, 2019
@weaverryanweaverryan changed the title[WIP] Simplifying SyncTransport and fixing bug with handlers transport[Messenger][WIP] Simplifying SyncTransport and fixing bug with handlers transportMay 7, 2019
@sroze
Copy link
Contributor

The approach completely makes sense to me. When you say "it's not quite working", what's the main remaining thing to crack? 🤔

@weaverryanweaverryanforce-pushed themessenger-fix-sync-transport branch from1cfccfb to3871592CompareMay 7, 2019 14:07
@weaverryanweaverryan changed the title[Messenger][WIP] Simplifying SyncTransport and fixing bug with handlers transport[Messenger] Simplifying SyncTransport and fixing bug with handlers transportMay 7, 2019
@weaverryan
Copy link
MemberAuthor

weaverryan commentedMay 7, 2019
edited
Loading

Ready for review! This indeed worked fine the whole time - I was "fooled" by an outdated cache - opened up a separate issue about that#31409

Test failures are unrelated - fixed in#31410

@weaverryanweaverryanforce-pushed themessenger-fix-sync-transport branch 2 times, most recently fromd3cd5ca to83c0a0dCompareMay 7, 2019 14:33
@weaverryanweaverryanforce-pushed themessenger-fix-sync-transport branch 2 times, most recently from6479c05 toad655c0CompareMay 8, 2019 17:41
@weaverryanweaverryanforce-pushed themessenger-fix-sync-transport branch fromad655c0 to8a49eb8CompareMay 9, 2019 01:09
@weaverryan
Copy link
MemberAuthor

Tests passing - this is ready to go.

Copy link
Contributor

@TobionTobion left a comment
edited
Loading

Choose a reason for hiding this comment

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

So clean 👍

With that I feel we don't need thesend_and_handle logic anymore as the sync transport does the same thing.

So the following example from the doc inhttps://symfony.com/doc/current/messenger.html#routing

framework:    messenger:        routing:            'My\Message\ThatIsGoingToBeSentAndHandledLocally':                 senders: [amqp]                 send_and_handle: true

is the same as

framework:    messenger:        routing:            'My\Message\ThatIsGoingToBeSentAndHandledLocally':                 senders: [amqp, sync]

if I'm not mistaken.

@weaverryan
Copy link
MemberAuthor

I was thinking the same thing :). That would remove an awkward option.

@Tobion
Copy link
Contributor

I'm looking into creating a PR.

@TobionTobion changed the base branch frommaster to4.3May 9, 2019 12:05
@Tobion
Copy link
Contributor

Thank you@weaverryan.

@TobionTobion merged commit8a49eb8 intosymfony:4.3May 9, 2019
Tobion added a commit that referenced this pull requestMay 9, 2019
…h handlers transport (weaverryan)This PR was merged into the 4.3 branch.Discussion----------[Messenger] Simplifying SyncTransport and fixing bug with handlers transport| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | none| License       | MIT| Doc PR        | not neededThis is still a WIP, because it's not quite working and tests are a TODO. However, the basic idea is there. This makes SyncTransport less "weird". It acts more like a real transport... except that it "receives" and re-dispatches its message immediately.The bug I'm trying to fix is related to the transport-based handling config that@sroze introduced. It doesn't currently play nice with the sync transport due to the unnatural way that I made it originally.Cheers!Commits-------8a49eb8 Simplifying SyncTransport and fixing bug with handlers transport
@weaverryanweaverryan deleted the messenger-fix-sync-transport branchMay 9, 2019 13:07
fabpot added a commit that referenced this pull requestMay 11, 2019
…ed with SyncTransport (Tobion)This PR was merged into the 4.3 branch.Discussion----------[Messenger] remove send_and_handle which can be achieved with SyncTransport| Q             | A| ------------- | ---| Branch?       | 4.3| Bug fix?      | no| New feature?  | yes/no <!-- please update src/**/CHANGELOG.md files -->| BC breaks?    | yes     <!-- seehttps://symfony.com/bc -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->| Fixed tickets || License       | MIT| Doc PR        |symfony/symfony-docs#11236The send_and_handle option is pretty awkward and we don't need it anymore because the same thing can be achieved with the SyncTransport from#30759So the following example from the doc inhttps://symfony.com/doc/current/messenger.html#routing```yamlframework:    messenger:        routing:            'My\Message\ThatIsGoingToBeSentAndHandledLocally':                 senders: [amqp]                 send_and_handle: true```is the same as```yamlframework:    messenger:        routing:            'My\Message\ThatIsGoingToBeSentAndHandledLocally':                 senders: [amqp, sync]```#31401 (review)Commits-------4552b7f [Messenger] remove send_and_handle option which can be achieved with SyncTransport
symfony-splitter pushed a commit to symfony/messenger that referenced this pull requestMay 11, 2019
…ed with SyncTransport (Tobion)This PR was merged into the 4.3 branch.Discussion----------[Messenger] remove send_and_handle which can be achieved with SyncTransport| Q             | A| ------------- | ---| Branch?       | 4.3| Bug fix?      | no| New feature?  | yes/no <!-- please update src/**/CHANGELOG.md files -->| BC breaks?    | yes     <!-- seehttps://symfony.com/bc -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->| Fixed tickets || License       | MIT| Doc PR        |symfony/symfony-docs#11236The send_and_handle option is pretty awkward and we don't need it anymore because the same thing can be achieved with the SyncTransport from #30759So the following example from the doc inhttps://symfony.com/doc/current/messenger.html#routing```yamlframework:    messenger:        routing:            'My\Message\ThatIsGoingToBeSentAndHandledLocally':                 senders: [amqp]                 send_and_handle: true```is the same as```yamlframework:    messenger:        routing:            'My\Message\ThatIsGoingToBeSentAndHandledLocally':                 senders: [amqp, sync]```symfony/symfony#31401 (review)Commits-------4552b7f5b2 [Messenger] remove send_and_handle option which can be achieved with SyncTransport
symfony-splitter pushed a commit to symfony/framework-bundle that referenced this pull requestMay 11, 2019
…ed with SyncTransport (Tobion)This PR was merged into the 4.3 branch.Discussion----------[Messenger] remove send_and_handle which can be achieved with SyncTransport| Q             | A| ------------- | ---| Branch?       | 4.3| Bug fix?      | no| New feature?  | yes/no <!-- please update src/**/CHANGELOG.md files -->| BC breaks?    | yes     <!-- seehttps://symfony.com/bc -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->| Fixed tickets || License       | MIT| Doc PR        |symfony/symfony-docs#11236The send_and_handle option is pretty awkward and we don't need it anymore because the same thing can be achieved with the SyncTransport from #30759So the following example from the doc inhttps://symfony.com/doc/current/messenger.html#routing```yamlframework:    messenger:        routing:            'My\Message\ThatIsGoingToBeSentAndHandledLocally':                 senders: [amqp]                 send_and_handle: true```is the same as```yamlframework:    messenger:        routing:            'My\Message\ThatIsGoingToBeSentAndHandledLocally':                 senders: [amqp, sync]```symfony/symfony#31401 (review)Commits-------4552b7f5b2 [Messenger] remove send_and_handle option which can be achieved with SyncTransport
symfony-splitter pushed a commit to symfony/messenger that referenced this pull requestJan 28, 2020
…ed with SyncTransport (Tobion)This PR was merged into the 4.3 branch.Discussion----------[Messenger] remove send_and_handle which can be achieved with SyncTransport| Q             | A| ------------- | ---| Branch?       | 4.3| Bug fix?      | no| New feature?  | yes/no <!-- please update src/**/CHANGELOG.md files -->| BC breaks?    | yes     <!-- seehttps://symfony.com/bc -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->| Fixed tickets || License       | MIT| Doc PR        |symfony/symfony-docs#11236The send_and_handle option is pretty awkward and we don't need it anymore because the same thing can be achieved with the SyncTransport from #30759So the following example from the doc inhttps://symfony.com/doc/current/messenger.html#routing```yamlframework:    messenger:        routing:            'My\Message\ThatIsGoingToBeSentAndHandledLocally':                 senders: [amqp]                 send_and_handle: true```is the same as```yamlframework:    messenger:        routing:            'My\Message\ThatIsGoingToBeSentAndHandledLocally':                 senders: [amqp, sync]```symfony/symfony#31401 (review)Commits-------4552b7f5b2 [Messenger] remove send_and_handle option which can be achieved with SyncTransport
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@OskarStarkOskarStarkOskarStark approved these changes

@srozesrozeAwaiting requested review from sroze

+1 more reviewer

@TobionTobionTobion approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.3

Development

Successfully merging this pull request may close these issues.

5 participants

@weaverryan@sroze@Tobion@OskarStark@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp