-
Notifications
You must be signed in to change notification settings - Fork 11k
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
[5.7] Extract Nexmo and Slack drivers to own package #26689
Conversation
Why not in https://github.com/laravel-notification-channels as the docs still reference to it as a sort of "collection of all notification channels"? |
That’s a “community” driven repo. These are official Laravel packages. |
Can totally understand that. It's just that |
We need to add them to the framework |
Seems very strange to be doing this on a point release (even if its not breaking). Why not leave the whole change until 5.8 entirely? |
@taylorotwell added to the framework's composer.json file. |
@themsaid - Travis is failing with "Your requirements could not be resolved to an installable set of packages" |
@laurencei yes, for now. We'll need to publish the libraries on packagist first. |
@themsaid Are we going to move the tests to the repos? |
Both packages have been added to Composer. |
@taylorotwell build is passing now. Also added tests to the packages. |
My thoughts exactly. What's the rush here, really? Just do it in-time for master. |
@mfn @laurencei Because I want to do it now? Do you have a reason why we shouldn't? It's not a breaking change in any way unless I'm mistaken? |
It felt strange initially - and then I considered the fact that the framework is essentially a bunch of packages, and so in that respect it makes sense. I agree there is no breaking change that I can think of either. |
@themsaid do you want to tag 1.0.0 on both of the packages? |
@taylorotwell , @themsaid , @driesvints , Maybe will be better to move this packages with git history? http://gbayer.com/development/moving-files-from-one-git-repository-to-another-preserving-history/ |
@TBlindaruk it's a bit to late for that since we already tagged versions. Didn't know about this. Thanks for sharing! :) |
@driesvints we still can do it ) Like:
;) |
This seems to have broken my Laravel 5.7 app. Downgrading to Laravel 5.7.15 works without issue, but as soon as I upgrade to Laravel 5.7.16 it breaks: As soon as I run
Exception: |
@stevebauman please see #26766 & laravel/vonage-notification-channel#2 |
Thanks @driesvints 😄, that was indeed the issue. To resolve I had to manually delete |
Really, this should not have landed in a minor version :| See #26689 (comment) and #26689 (comment) |
@mfn It could be a breaking change. Now, the
I don't already use any of those but if I did, and had the latest version of any of them installed, it would cause issues. I noticed on the master branch these have been removed: 88b9fd6 |
@fitztrev At the moment we're not getting any issues about this so I wouldn't revert. |
Isn't this breaking change? I can not update above 5.7.15 without getting auto-discover error:
And the stack trace points to nexmo/slack provider. Note that I cloned my repo and did Obviously not auto-loading the nexmo and slack channels do the trick; but why is this in minor release is beyond me; now I need to change
|
Hi @Kyslik, are you sure you cleared the You'll have to delete the files manually since artisan will try to auto-load your providers which will generate the same exception. |
@stevebauman As I mentioned I did It's solved for me with disabling the auto-discover for those two packages. |
I understand @Kyslik. Did you add the |
@stevebauman no I did not; I am sure that the app I am talking about worked on L5.7.15 (on server its still running like that) I tried to update to latest L5.7.17 on my local machine and got the error about |
You will need to add that service provider to get back up and running. Give it a shot and let me know if it works. |
@stevebauman yes that works as well.
and removed And it works as expected:
Thank you :). I still think the change should be in L5.8 instead. |
@Kyslik Great to hear! And I also agree, but it's already been pushed into a release so oh well 🙁 I don't even use these notification channels so it's somewhat disappointing that we're forced to download these into our projects. |
The channels were extracted to:
https://github.com/laravel/slack-notification-channel
https://github.com/laravel/nexmo-notification-channel