Queue package for Meteor, for things like activity moderation

Added a few more items:

  • automatically adds items to a “history” collection when the function runs successfully
  • started automatically tracking userIds when possible; they would be available if the item was ran by an authenticated user via Method
  • added resolveAll() for items that have the same data in them. the idea is, if you get 10 reports for the same post, you could resolve them all with one action

Ideas in consideration:

  • making history an optional feature
  • currently, you can pass data into the queue (i.e. Queue.add("reportPost", {...}) - but I’m thinking to split it up into two sets of data; identifier data, and “accessory” data, to make Queue.resolveAll() more effective
  • adding in some sort of priority system - i.e. if an item is reported many times, it probably needs to be addressed sooner
  • adding in some kind of alerting mechanism (for example, if there are more than 10 items in a queue, or one item had been reported more than 5 times, it would run a callback, such as sending an email or notification to admins)