Skip to content

Enhancements for feeds #12

@redstonemercury

Description

@redstonemercury

We have a need for enhancements to the feeds functionality to filter the type of events we want to receive. Specifically, our needs are to get notified when a new task is opened or an existing task is resolved, but getting every comment left on a task is way too much noise for us.

I was thinking about trying to tackle this in a way that would be configurable, but wanted some guidance on how you'd like this implemented, so I'm doing it in a way that's useful to the project. There are a few ways I thought about doing it:

  1. The easiest but least configurable solution, similar to PHABS_ENABLED_FEATURES or PHABRICATOR_ENABLED_ITEMS, allow an environment variable to be set to specify what types of events to feed. Really we'd need two, one for types of items (tickets, diffs, etc.) to feed, and one for types of actions (open ticket, closed ticket, comment, etc.) to feed.

  2. Set up new commands (probably in phabs_admin.coffee) to allow users with phadmin role to specify which events/actions to feed. Would set it at a global level like the env variable option, but would allow it to be more configurable by users who don't have access to change environment variables.

  3. Update the feed(s) command in phabs_admin.coffee to allow events/actions to be set per project/room feed. E.g. phad feed create,resolve,comments on tasks,diffs from project1 to room1 Would be a lot more work, and perhaps a little verbose for your average bot user, but would allow the highest level of customization.

If you've got another opinion on the best way do this, or some pointers on where to get started, please let me know!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions