graasp / graasp-plugin-websockets

A websockets extension for Graasp exposed through a Fastify plugin
GNU Affero General Public License v3.0
0 stars 0 forks source link

Add behaviour: when item is deleted, notify members which also have memberships on it #12

Closed codeofmochi closed 3 years ago

codeofmochi commented 3 years ago

Memberships are deleted (?) on cascade when an item is deleted, directly from the database. However associated members are not informed in real-time. Consider using item's deletion task preHookHandler to iterate over memberships and send out "will eventually be deleted" notifications.

Make sure to write #11 while implementing it.

Check with @ahgentil if this behaviour is correct and consistent.