Weekly headlines command
Review Request #2959 — Created March 15, 2012 and discarded
Original idea from google code wiki: Finding out what's been happening on Review Board isn't always easy. It might be worthwhile to have users be able to opt-in to weekly email updates from Review Board that tell them useful things about the groups that they belong to. In particular, it could mention things about: - Outstanding reviews that they could / should tackle - A list of review requests that have been marked submitted, and which ones have been discarded - A list of new review requests - Perhaps something like, "the top reviewer of the week" - Perhaps more...
Successfully printed "Hello from Weekly Headlines" when typing "./reviewboard/manage.py weekly-headlines".
Description | From | Last Updated |
---|---|---|
Two blank lines. |
chipx86 | |
Comments must always be in sentence form. |
chipx86 | |
Keep lines under 80 characters |
DD ddruska | |
Blank lines around each loop or other block. Basic rule: If there's code before/after an if statement or loop on … |
chipx86 | |
Missing whitespace after the "," in lambda, and also after the ":" right after lambda |
DD ddruska | |
Only one space after the second "," |
DD ddruska |
WE
- Change Summary:
-
As we discussed, I've attempted to output the information to the terminal. Manually tested using "./reviewboard manage.py weekly-headlines" with a couple of reviews, review requests and users on local dev server. One major issues: It keeps outputting DEBUG SQL-like sentences. I posted a question in google groups. Ref http://groups.google.com/group/reviewboard-dev/browse_frm/thread/6e744f8429727ade How to address?
-
Looks like a decent start. I want to figure out what the plan is going forward, though. Is the idea to have one e-mail that goes out to everyone, or to have e-mails, say, per-person? If so, these queries are going to change. If it's for everyone, then that's fine for tiny installs, but won't scale up to organizations of thousands of people (most of whom don't care about anybody outside their immediate group). So maybe make this flexible. Take some parameters for specifying one or more group names (and use those in the queries), or usernames. The output should be customized based on those parameters. Look at reviews/managers.py for various query options. You'll want to use these because they take into account LocalSites (which are very important -- an installation with LocalSites must never see info on each other).
-
-
-
Blank lines around each loop or other block. Basic rule: If there's code before/after an if statement or loop on the same indentation level, use a blank line to separate them.