Repository navigation
Enforced ticket assignment limits and triage restrictions. - #318
Conversation
ec35896 to
994a14f
Compare
| if stage == previous_stage: | ||
| return [] | ||
|
|
||
| if stage == "Accepted" and ticket["reporter"] == username: |
There was a problem hiding this comment.
If you're game, we could also validate that reporter is truthy to make this harder to evade by deleting. No worries if not, since there are other ways to evade by free-texting the owner.
There was a problem hiding this comment.
I have added a restriction on updating the reporter unless you are an "admin" (in case a reporter is something offensive).
| def test_exempt_groups_cannot_mark_own_ticket_ready_for_checkin(self): | ||
| for group in ("admins", "fellows", "supertriagers"): | ||
| with self.subTest(group=group): |
There was a problem hiding this comment.
Ah. I've helped myself to setting my own tickets RFC on occasion when I've @-ed the triage & review team, and someone's approved on GitHub, but didn't circle back to Trac, and I didn't want to bother them again with something so small. I've left comments like, "A approved on GitHub."
My thought is it would be nice to allow exemptions here, as we can generally follow the spirit of this without programmatic enforcement.
994a14f to
e69e232
Compare
Fixes #317 and #316
Also adds some triage stage restrictions as a quick win
Here is some local testing screenshots:

ChatGPT helped me to create this.