Create extension for auto-assigning students to the students group
Review Request #7872 — Created Jan. 15, 2016 and submitted
A simple extension for auto-assigning students working on Review Board to
the "students" group.I can imagine this maybe being useful for other projects as well, so I can
see this expanding out to allow multiple auto-assignments, but for now I've
just hard-coded the "students" group.
Created some test users and a "students" group. Entered the extension
configuration page and added some users in the comma-separated list to
auto-assign. Created review requests for the users in the list and saw
that they were correctly added to the "students" group. The review requests
from the other users were not.Also verified that the "open" counts in the dashboard for the group
was updated correctly after creating an auto-assigned review request.
Description | From | Last Updated |
---|---|---|
Also a lie! |
david | |
This is a lie. |
david | |
Swap these two lines. |
david | |
This is impossible. |
david | |
These could be combined into a single assignment: assignees = [ s.strip() for s in self.settings.get('assignees').split(',') ] |
david | |
This should probably be logging.debug. |
david | |
No blank line here. |
david | |
Localize this too? |
david | |
Col: 22 E128 continuation line under-indented for visual indent |
reviewbot |
-
Originally posted for review for the rb-extension-pack repo here: https://reviews.reviewboard.org/r/7856/
- Change Summary:
-
Switched to a post_save signal handler for ReviewRequest to add the group.
- Commit:
-
23a4c24c0d57bb49cbff778619cbf6173f97b8000783739d439d2665f9ca8c7ebbbd318d01b89f9b
-
Tool: Pyflakes Processed Files: misc/rb-auto-assigner/rb_auto_assigner/forms.py misc/rb-auto-assigner/rb_auto_assigner/extension.py misc/rb-auto-assigner/setup.py misc/rb-auto-assigner/rb_auto_assigner/admin_urls.py Ignored Files: misc/rb-auto-assigner/rb_auto_assigner/__init__.py Tool: PEP8 Style Checker Processed Files: misc/rb-auto-assigner/rb_auto_assigner/forms.py misc/rb-auto-assigner/rb_auto_assigner/extension.py misc/rb-auto-assigner/setup.py misc/rb-auto-assigner/rb_auto_assigner/admin_urls.py Ignored Files: misc/rb-auto-assigner/rb_auto_assigner/__init__.py
-
Tool: PEP8 Style Checker Processed Files: misc/rb-auto-assigner/rb_auto_assigner/forms.py misc/rb-auto-assigner/rb_auto_assigner/extension.py misc/rb-auto-assigner/setup.py misc/rb-auto-assigner/rb_auto_assigner/admin_urls.py Ignored Files: misc/rb-auto-assigner/rb_auto_assigner/__init__.py Tool: Pyflakes Processed Files: misc/rb-auto-assigner/rb_auto_assigner/forms.py misc/rb-auto-assigner/rb_auto_assigner/extension.py misc/rb-auto-assigner/setup.py misc/rb-auto-assigner/rb_auto_assigner/admin_urls.py Ignored Files: misc/rb-auto-assigner/rb_auto_assigner/__init__.py
-
-
Tool: Pyflakes Processed Files: misc/rb-auto-assigner/rb_auto_assigner/forms.py misc/rb-auto-assigner/rb_auto_assigner/extension.py misc/rb-auto-assigner/setup.py misc/rb-auto-assigner/rb_auto_assigner/admin_urls.py Ignored Files: misc/rb-auto-assigner/rb_auto_assigner/__init__.py Tool: PEP8 Style Checker Processed Files: misc/rb-auto-assigner/rb_auto_assigner/forms.py misc/rb-auto-assigner/rb_auto_assigner/extension.py misc/rb-auto-assigner/setup.py misc/rb-auto-assigner/rb_auto_assigner/admin_urls.py Ignored Files: misc/rb-auto-assigner/rb_auto_assigner/__init__.py
- Testing Done:
-
Created some test users and a "students" group. Entered the extension
configuration page and added some users in the comma-separated list to auto-assign. Created review requests for the users in the list and saw that they were correctly added to the "students" group. The review requests from the other users were not. + + Also verified that the "open" counts in the dashboard for the group
+ was updated correctly after creating an auto-assigned review request.