Skip to content

Enforced ticket assignment limits and triage restrictions. - #318

Merged
sarahboyce merged 1 commit into
django:mainfrom
sarahboyce:max-accepted-tickets
Nov 3, 2026
Merged

sarahboyce merged 1 commit into
django:mainfrom
sarahboyce:max-accepted-tickets

Conversation

@sarahboyce

Copy link
Copy Markdown
Contributor

Fixes #317 and #316

Also adds some triage stage restrictions as a quick win

Here is some local testing screenshots:
accepted-ticket-limit

unreviewed-invalid-owner

ChatGPT helped me to create this.

@sarahboyce
sarahboyce force-pushed the max-accepted-tickets branch 2 times, most recently from ec35896 to 994a14f Compare October 23, 2026 06:45

@jacobtylerwalls jacobtylerwalls left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done!

if stage == previous_stage:
return []

if stage == "Accepted" and ticket["reporter"] == username:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added a restriction on updating the reporter unless you are an "admin" (in case a reporter is something offensive).

Comment thread DjangoPlugin/tracdjangoplugin/tests.py Outdated
Comment on lines +539 to +541
def test_exempt_groups_cannot_mark_own_ticket_ready_for_checkin(self):
for group in ("admins", "fellows", "supertriagers"):
with self.subTest(group=group):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@sarahboyce
sarahboyce force-pushed the max-accepted-tickets branch from 994a14f to e69e232 Compare November 3, 2026 10:56
@sarahboyce
sarahboyce merged commit 3953696 into django:main Nov 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Restrict the total number of "Accepted" Trac tickets allowed to be assigned to a contributor

2 participants