-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Notifier] Add MessageMedia Bridge #41375
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
Hey! To help keep things organized, we don't allow "Draft" pull requests. Could you please click the "ready for review" button or close this PR and open a new one when you are done? Note that a pull request does not have to be "perfect" or "ready for merge" when you first open it. We just want it to be ready for a first review. Cheers! Carsonbot |
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:
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! I am going to sit back now and wait for the reviews. Cheers! Carsonbot |
69fa398
to
d36de82
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.
Except small things.... almost perfect 🤩
Thank you for your contribution 👍🏻
src/Symfony/Component/Notifier/Bridge/MessageMedia/composer.json
Outdated
Show resolved
Hide resolved
d09e61a
to
8e1eaa9
Compare
@OskarStark I updated all your suggestions. Could you take a look again? By the way, Travis CI build is always failed in the FrameworkBundle tests because the package hasn't loaded yet. Could you advise what should I do for this case? Thanks for your quick review! |
Hi @vuphuong87 Thanks for providing this new notifier bridge. Code looks perfect already.
To fix this issue, you need to add the new bridge as a composer dev requirement in the FrameworkBundle: https://github.com/symfony/symfony/blob/5.4/src/Symfony/Bundle/FrameworkBundle/composer.json#L70 @OskarStark Not sure how it works, but creating the repository for the MessageMedia bridge (symfony/message-media-notifier) before we merge this PR is not possible, is it? Alternatively I could change this test: |
@jschaedl I think possible merge while we do not have 📦 like additional repository. @OskarStark know much more than me :) |
@jschaedl My thought is the tests should be there to make sure the integration is correct or reviewers will always need to remind new contributors like me 😛 Do you know how did it work with the previous bridges? |
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.
Small one
@vuphuong87 Can you check why the tests fail? |
Hey, are you ready to finish your PR @vuphuong87 ? 👍 |
@fabpot @StaffNowa My bad. I put a bad naming for the data provider which phpunit think it was a test. I fixed it now. |
Looks like there are flaky tests for 7.2 & 8.0. |
ab4075f
to
0efe777
Compare
@OskarStark still get the same errors about Telnyx in the latest build. Look like it is because of the subsplit not being configured yet (as @wouterj commented in the PR). |
@vuphuong87 telnyx not yet pushed to packagist. Which error did you get? |
Can you please rebase, afterwards I will merge this PR, thanks |
0efe777
to
6dc7304
Compare
@StaffNowa Yep, I think that is the case. The error is by the way: @OskarStark I rebased it. Thank you very much!! |
@OskarStark I pushed a new fix for it. Turn out it throws another exception for Could you review again. Really it works well for now. |
cb524ab
to
c7f3454
Compare
@OskarStark I messed up with my work email. Updated the PR again, my face is now shown up :p Thanks. |
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.
Thanks, the following 3 tests will be green after the subtree split:
There were 3 failures:
3503
3504
1) Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\PhpFrameworkExtensionTest::testIfNotifierTransportsAreKnownByFrameworkExtension
3505
Did you forget to add the TransportFactory: "MessageMedia" to the $classToServices array in the FrameworkBundleExtension?
3506
Failed asserting that false is true.
3507
3508
/home/runner/work/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php:1883
3509
3510
2) Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\XmlFrameworkExtensionTest::testIfNotifierTransportsAreKnownByFrameworkExtension
3511
Did you forget to add the TransportFactory: "MessageMedia" to the $classToServices array in the FrameworkBundleExtension?
3512
Failed asserting that false is true.
3513
3514
/home/runner/work/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php:1883
3515
3516
3) Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\YamlFrameworkExtensionTest::testIfNotifierTransportsAreKnownByFrameworkExtension
3517
Did you forget to add the TransportFactory: "MessageMedia" to the $classToServices array in the FrameworkBundleExtension?
3518
Failed asserting that false is true.
3519
3520
/home/runner/work/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php:1883
c7f3454
to
dd3da8f
Compare
Thanks for your work on this new feature! |
This PR was squashed before being merged into the 5.4 branch. Discussion ---------- [Notifier] [MessageMedia] add docs MessageMedia Bridge: symfony/symfony#41375 Commits ------- 1b5fd8c [Notifier] [MessageMedia] add docs
Thanks a lot for you feedback and handling this PR @OskarStark |
Very welcome, thanks for your contribution! |
Add MessageMedia bridge to Symfony Notifier
https://messagemedia.github.io/documentation/#operation/SendMessages