codeforamerica / chime

A city-focused content management system
http://chimecms.org/
BSD 3-Clause "New" or "Revised" License
35 stars 12 forks source link

commit_sha in a published UserTask points to the publish commit #546

Closed tmaybe closed 8 years ago

tmaybe commented 8 years ago

Some tests (test_notified_when_saving_article_in_published_activity and test_published_branch_not_resurrected_on_save) were failing because UserTask was reporting the wrong author and date for published tasks. I fixed it by explicitly setting self.commit_sha to the hexsha of the tagged publish commit.