Page MenuHomePhabricator

Have a way to auto-email saved phab queries on a regular interval
Closed, ResolvedPublic

Description

Discussed during the remote hackathon with @bd808.

It would be nice if there was a way to have an automated email sent every so often on a regular interval with the results of a saved query. This would prompt users to work on tasks they have licked or start working on new things as they could have a report sent on these things to them.

@Dzahn has setup things like the list of tasks with past deadlines before so maybe they could help.

Event Timeline

RhinosF1 created this task.May 9 2020, 3:59 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 9 2020, 3:59 PM
RhinosF1 edited subscribers, added: Dzahn; removed: Mutante.May 9 2020, 3:59 PM

It would be best to keep this optional.

It would be best to keep this optional.

100%

We currently have https://phabricator.wikimedia.org/F31810082 but that requires direct access to Phab’s database.

I wonder if we could use the api

Reedy renamed this task from Have a way to auto-email saved phab queries on a regular interval. to Have a way to auto-email saved phab queries on a regular interval.May 9 2020, 4:12 PM
Reedy added a subscriber: Mutante.

See also T76825#3078274 and discussion in that task in general - this task might be a duplicate.

I can imagine that such "nagging" digest emails work for some folks (similar to mailing list digests instead of single posts). I can also imagine that for the vast majority, more emails about something does not help when you might already struggle with the other emails you receive anyway (see also https://www.mediawiki.org/wiki/Phabricator/Help/Managing_mail ). I know that this task says it should be optional, however I'm personally not convinced the gain outweighs the work...

bd808 added a comment.May 9 2020, 4:24 PM

Some pointers to things that may help work on this:

I’ll try and have a brain storm on Monday and see what I can create that will get this to work locally then port to toolforge and see if I can get email working.

Might need somehelp setting it up as a job running though.

Dzahn updated the task description. (Show Details)May 9 2020, 4:29 PM
Dzahn removed a subscriber: Mutante.

I've created some code that can generate the list, let me try and get it onto a tool and emailing me.

RhinosF1 claimed this task.May 11 2020, 9:17 AM
Restricted Application added a project: User-RhinosF1. · View Herald TranscriptMay 11 2020, 9:17 AM

The tool functions. once I squash a bug that I’ve created fixed and unfixed, it will be ready.

If anyone wants to use it, please send me how often you would like it sending and a link to the query.

Mentioned in SAL (#wikimedia-cloud) [2020-05-11T14:02:42Z] <RhinosF1> set cron for '/usr/bin/jsub -N cron-29 -once -quiet python3 phab.py' to run weekly at Monday 3pm T252301

Maintenance_bot moved this task from Radar to Done on the User-RhinosF1 board.May 11 2020, 2:15 PM