Many examples
We already "solved" this once for [#1810] by compacting tickets... but that was primarily solving the crazy numbering we had. Maybe these are additional examples of tickets with no data (created by a bug). Actually, I'm pretty sure now... iirc there were a a few projects with just a few "bad" tickets (e.g. search for tickets where summary: null) and we didn't clean those, we only cleaned the projects with huge sets of bad tickets.
Module forgetracker.tracker_main:809 in index << tool_subscribed=tool_subscribed, subscribed=subscribed, page=page, limit=limit, count=self.ticket.discussion_thread.post_count) else: raise exc.HTTPNotFound, 'Ticket #%s does not exist.' % self.ticket_num >> page=page, limit=limit, count=self.ticket.discussion_thread.post_count) AttributeError: 'NoneType' object has no attribute 'post_count'
These tickets were possibly created after the script was run for the previous ticket. I ran the script in test mode and it sees the tickets needing cleanup correctly, so re-running the script should take care of them. We should check up on this in a week to see if more of these invalid tickets are being created or if this was just a one time thing. SOG ticket here: https://control.sog.geek.net/sog/trac/ticket/18351
The job finished, and the hc-empyrean ticket 404s now, but necessitas still 500s. Output:
To QA: really, just code review -- I set up a guard for all discussion_thread accesses to lazily create the thread when it's not there (as it is not there in the links above).
Still getting them: at https://sourceforge.net/p/vitalian/tickets/1/ and https://sourceforge.net/p/necessitas/tickets/10/ however, necessitas #3 and #4 were fixed
That's because the code that fixes this hasn't been pushed to production yet.....