Closed SmBe19 closed 3 years ago
Currently we're using "pull" notifications rather than "push", ie. it's upon loading a page on Alakajam that we look for notifications to present (and cache them for performance reasons, unless certain actions like a comment explicitly invalidate the cache). I'm still undecided whether it's something we should change to actually have a notification
table of sorts that gets populated with new lines every time something we're subscribed to happens.
Anyway, if we stick to the current approach, we could use the fact that post & game notifications don't need to be as instantaneous as for comments:
user.notifications_last_read
time for which we're subscribed to the author.user.notifications_last_read
time for which we're subscribed to the author. Maybe filter out events based on event.updated_at
> user.notifications_last_read
for additional optimization (that means notifications will be received only when game submissions are closed).Additional work will be:
follow
table post.created_at
, entry.created_at
(and event.updated_at
if we use it) columns are indexedMoved to the Feature requests page for now.
It would be nice to be able to follow a user. If this user then submits a game or a post I get a notification. This would allow to play the games of a user you enjoyed in previous jams more easily.