A user, ganncamp, reports a bug where deleted topics remain counted in group assignment totals, causing discrepancies in assignment counts. Despite the topics being deleted by users, their assignments to groups persist, making it impossible to clear the group’s assignment list. The issue is confirmed through database queries and repeated occurrences over time. ganncamp notes that unassigning a deleted topic does not take effect until the topic is undeleted and re-deleted. After multiple reports and evidence, nat confirms that a fix has been merged and deployed to the site. The topic remains open for two weeks to monitor for further issues. ganncamp expresses gratitude for the resolution.
An internal user contacted me yesterday because he couldn’t find all the topics assigned to his group. The group count said (at the time) 2, but only one was listed.
Fast-forward to today, when I had time to look at it, and the count says 4 but only 3 are listed:
And in fact… I’m just noticing post creation / assignment / flag-and-remove dates are in April. And I don’t think the numbers were off (i.e. including deleted posts) until recently. I wonder if @nat’s recent changes played a part in this.
SELECT a.*
FROM assignments a
JOIN groups g on g.id=a.assigned_to_id
WHERE a.assigned_to_type='Group'
AND g.name='xxx'
In one of ‘deleted by author’ posts, my attempts to unassign it don’t “take”. I unassign, the action does not show up in the thread, and a page refresh shows it’s still assigned to the group.
Edit: I had to undelete the topic before I could unassign it and get it removed from the group’s total assignment count. (Then re-deleted it.)