POC of subscriptions for notifiable instances#205
POC of subscriptions for notifiable instances#205adamsosterics wants to merge 2 commits intosimukappu:masterfrom
Conversation
This refactor will help us to add targets who are only subscribed for a specific notifiable instance.
This is just a quick proof-of-concept for adding subscriptions to notifiable instances.
2 similar comments
|
Hi @adamsosterics, thanks for putting this POC together — the use case in #202 is a solid one and something we'd like to support. I've reviewed the diff and have some feedback on the current approach before we move toward a proper implementation. Subscription check moved out of Moving the Duplicate notifications
N+1 queries The loop in Unique constraint on subscriptions The existing unique index is
The async path ( Multi-ORM support
Test coverage Coverage dropped from 99.734% to 99.438%. A full implementation would need tests for the new subscription type — creation, filtering, the notify flow, edge cases around duplicates, and the async path. Overall the direction makes sense. My suggestion for a full implementation would be:
Happy to discuss the design further if you'd like to iterate on this. I'll also be working on a design for this feature on our side — will share it once it's ready so we can align on the approach. Thanks again for kicking this off! |
|
Closing this PR as we've implemented the feature independently based on the direction discussed here. The implementation is tracked in #202 and will be included in v2.6.0. Thanks again for the POC — it helped shape the final design! |
Issue #, if available: #202
Summary
This is a proof-of-concept for implementing subscriptions for specific notifiable instances.
Please let me know what you think, I can make it a proper implementaiton if you like the solution direction.
Other Information