-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Remove check for sender on channel. #1407
Conversation
Generated by 🚫 dangerJS |
@Gongreg I wonder why do you need to communicate between manager and (panel) addons via the channel? Why you can't use API for that? |
I think this is perfectly understandable. I'd like the channel to be the event-bus we can just throw events at, and have either side respond. Sometimes an event is of interest to both the manager and preview. |
Codecov Report
@@ Coverage Diff @@
## release/3.3 #1407 +/- ##
============================================
Coverage 23.12% 23.12%
============================================
Files 253 253
Lines 5756 5756
Branches 690 690
============================================
Hits 1331 1331
+ Misses 3928 3920 -8
- Partials 497 505 +8
Continue to review full report at Codecov.
|
is it a breaking change? |
@usulpro, that I am not sure about. It can be breaking change for users |
I doubt this is a breaking change actually |
I guess "writing-addons" guide encourages to use the one channel ID for addons. |
@usulpro, do you mean that they use same event name I mean for it to happen this way they would have to do two emits with same name in different locations. |
Can you please fix the unit test that is failing? |
@ndelangen, looks like it is fixed? |
@Gongreg do you mind doing a test pass on the addons in |
Hi @Gongreg |
I did a manual test pass when I approved this @shilman, but I guess example has changed quite a bit, so someone should retest. Let's get this merged! |
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.
Issue: Because of check for sender in channels library, it is impossible to communicate between manager and addons.
Right now it is only possible to communicate between
If you want to communicate between manager and addons, you need to send the message from manager to provider and from provider to addons (and vice versa).
What I am afraid about is that I see that this check was added as a separate commit. Could we try to reach @mnmtanish so he could share his knowledge about why he added it in first place?
Also I would really like to get your opinion about this. I thought about adding this check as an opt-out, but @ndelangen feels like we remove the check completely if possible.
What I did
Removed the sender check.
How to test
We need to check out that all addons still work. I feel like this can break someones usage.