If you delete a BlogPost, the BlogPostSnapshot entries stay. This makes them orphaned, and self.original() returns None, making things break: e.g. reindexing the project, historical search results presumably.
delete a blog post, and its revisions should go away
if you have a blog post revisions from before this commit, running allurapaste reindex /var/local/config/production.ini -p myproj --solr --verbose shouldn't fail
note that BlogPostSnapshot revisions are not currently indexed by solr automatically. For some reason the BlogPostSnapshot object isn't in the ming session when the session closes at the end of the request. Didn't have time to dig into that
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
allura:db/5086
allurapaste reindex /var/local/config/production.ini -p myproj --solr --verbose
shouldn't failTicket id issues also:
Ticket nums are 1257, 1375, 2093, 4618 but we'll just leave them as is, the ticket's aren't too significant.