Update TODO items
diff --git a/NewsfeedModule.wiki b/NewsfeedModule.wiki index aeab7c3..040a66e 100644 --- a/NewsfeedModule.wiki +++ b/NewsfeedModule.wiki
@@ -88,24 +88,48 @@ -== E-mail Notification Task == += E-mail Notification Task = When a feed item is created, it schedules a handler to send out e-mail notification. This handler calls the sendFeedItemEmailNotifications method that fetches a list of users who are subscribed to the sender entity and e-mails them. (This results in an OverQuota Error for more than a few people, and since it's in a task, it refreshes and starts e-mailing people again! The solution is to put the mail_dispatcher sendMessage method into a task, so all e-mails are sent via tasks and don't risk mass-spamming when a request fails.) -== User Subscriptions == += User Subscriptions = The subscriptions model contains a relational index entity for the user, containing a list of entity keys that the user is subscribed to. From their edit_profile page, the user can set a global preference for whether they are accepting e-mail notifications, and the user can also configure individual entity preferences from those pages using the subscribe-by-star UI pattern. +== TODO == + +== Testing == + +Seed_db has been modified to call the onCreate hook for entities and therefore is a defacto test of newsfeed functionality. However, this simply serves as a high-level smoke test, and it would be useful to have more detailed testing. + +== Subscription Handler == + +The subscriptions logic contains an UpdateLogic class that is meant to automatically compile a list of users with read-access to an arbitrary entity. Unfortunately, setting subscriptions manually isthe only option right now, since the automatic subscription handler is not nearly where I hoped it would be by now. The idea is very simple - just +subscribe users to the entities where they have read-access. But the reality +has been much more difficult to do without creating an entirely new +infrastructure, and I'm entertaining the idea of simply relying on a manual +interface (subscribe-by-star). The takeaway from this is that perhaps the +access component should be abstracted to a high-level API, because it +appears to have gained dependencies and complexities that prevent it from +being useful to the news feed logic. + +== Convert E-mail to Task == + +The mail_dispatcher should be converted to a task. This is not specific to NewsFeed, but necessary to prevent e-mail rampages from occuring within the task queue + +=== Modularization == + +Sverre has brought up the question of whether the NewsFeed should be migrated to the soc module. Since it's not soc-specific, it shouldn't be modularized, but there are a few parts that could be modularized, such as the UpdateLogic class. + == PubSubHubbub Support == <wiki:video url="http://www.youtube.com/watch?v=ewQBgbysSOQ"/> This demo demonstrates Google Reader updating in seconds after a blog is updated. -It should be fairly trivial to integrate push notification support, and abstract it so that it could also be accessed by other Melange features. - +It should be fairly trivial to integrate push notification support, and abstract it so that it could also be accessed by other Melange features. \ No newline at end of file