novu icon indicating copy to clipboard operation
novu copied to clipboard

🚀 Feature: Remove subscription on topic when subscriber is deleted

Open JonasDoe opened this issue 8 months ago • 3 comments

🔖 Feature description

It would be nice of the deletion of a subscriber would also remove them from all topics. At the moment, the subscribers of the affected topics remain untouched.

🎤 Why is this feature needed ?

  • For data consistency
  • To avoid a bloated data base
  • Because it's hard to achieve that manually - as far as I can tell I cannot query all topics of a subscriber to revoke the existing subscriptions manually.

✌️ How do you aim to achieve this?

The DELETE call for a subscriber would trigger some kind of internal cleanup process unregistering them from all topics. Alternatively, I can query a list of all exisitng subscriptions for that subscriber, so this can be done automatically. The latter would mean more roundtrips and soome potential inconsistency if the subscriber assigned to another topic between my query of their subscriptions and subscriber deletion.

🔄️ Additional Information

No response

👀 Have you spent some time to check if this feature request has been raised before?

  • [X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

None

JonasDoe avatar Oct 27 '23 08:10 JonasDoe

can i be assigned this one please

stutimohindra avatar Oct 29 '23 01:10 stutimohindra

can i work on this?

nick2432 avatar Nov 13 '23 04:11 nick2432

The Novu team plans to work on this in the future, however we need to resolve some other tech debt before this can happen.

Cliftonz avatar Mar 01 '24 22:03 Cliftonz