question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

events (advanced): Omit subscribers on subscription/add for certain clients.

See original GitHub issue

This is an advanced bug that requires deep knowledge of our event system as well as the ability to coordinate with core project folks on API changes.

Fortunately, it’s a mostly harmless bug. (You can actually call it an unimplemented feature, to be fair.)

Right now we always send subscribers on the subscription/add event. Arguably API clients that register with include_subscribers=False don’t want that extra info on their payload. We should consider omitting subscribers for clients that don’t want subscriber info.

Since these events are only sent to the current user who is subscribing to a stream, the impact is probably minimal.

The fix here is somewhat non-trivial, as we would need to modify ClientDescriptor to track the appropriate flags. It’s actually a small change in terms of lines of code (I think), but it’s a pretty highly technical part of our system.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
showellcommented, Feb 6, 2021

I am closing this. I just don’t think it’s worth the trouble. We may consider similar solutions in the future if API client authors ask for this type of optimization.

1reaction
showellcommented, Feb 17, 2021

I guess we don’t have a low-priority label, so I added “difficult”.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Concepts in Azure Event Grid - Microsoft Learn
Describes Azure Event Grid and its concepts. ... To respond to certain types of events, subscribers decide which topics to subscribe to.
Read more >
Subscription - Add / Remove Product Actions - WooCommerce
Being able to dynamically add and remove products on a subscription has many use cases, especially when combined with AutomateWoo's advanced Rules. Some...
Read more >
Subscription - Add / Remove Coupon Actions - Documentation
Being able to dynamically add and remove coupons on a subscription has many use cases, especially when combined with AutomateWoo's advanced Rules. Some...
Read more >
Change Subscription - Recurly Documentation
A change to the customer's subscription is most often an upgrade or ... you may select an option to change certain attributes of...
Read more >
c# - How to ensure an event is only subscribed to once
Where alreadySubscribedFlag is a member variable in the client class that tracks first subscription to the specific event. People looking at the first...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found