{"push_id":1457975818,"size":5,"distinct_size":0,"ref":"refs/heads/deployed-to-integration","head":"4b7545de828b88ef8325ae438672d50fc547b823","before":"383482d761bf8dd432eb16417e3ff6d476b65468","commits":[{"sha":"0fd094b42ea50ba735a0fc8cb1b2eefff99121b9","author":{"name":"Murray Steele","email":"7fd5846ea6ef627614ea669595ce6a868b4c0162@h-lame.com"},"message":"Set update_type for manuals based on the documents that need exporting\n\nWhen we draft a manual the update_type for the publishing-api is based\non the minor_update? state of all the documents that belong to the\nmanual because the manual editions themselves don't have change notes\nand minor/major update states.\n\nThere is a bug here because it looks at the minor_update? state of all of\nthe documents meaning that a major update published several editions ago\ncan cause each publish event to go through as a major update.  For\nexample: create a manual with 3 documents and publish it; the state for\nall these documents will be that of a major update.  If we edit one of\nthem with a minor update and publish the manual, the update_type will\nstill be major when we've really only published a minor update.  We'll\nonly get a minor update when we've edited and published all 3 of the\ndocuments with minor update change notes.  If we only look at those\ndocuments that need exporting we get the correct behaviour, so that's\nwhat we do.","distinct":false,"url":"https://api.github.com/repos/alphagov/manuals-publisher/commits/0fd094b42ea50ba735a0fc8cb1b2eefff99121b9"},{"sha":"0ad7713599fc696befbdae9db9f90b01d79fd87f","author":{"name":"Murray Steele","email":"7fd5846ea6ef627614ea669595ce6a868b4c0162@h-lame.com"},"message":"Update ManualRelocator to understand about sections that need_exporting\n\nThis means the ManualRelocator can work again when publishing as the\nupdate_type attribute now relies on the needs_exporting? attribute of\nthe sections.  We can't detect the update_type correctly for the previous\ndraft (it'll always be minor as none of the section editions will need\nexporting) but that can't be helped.","distinct":false,"url":"https://api.github.com/repos/alphagov/manuals-publisher/commits/0ad7713599fc696befbdae9db9f90b01d79fd87f"},{"sha":"12e12d3bdb11542365d31586dbc1a95e0dd849fe","author":{"name":"Murray Steele","email":"7fd5846ea6ef627614ea669595ce6a868b4c0162@h-lame.com"},"message":"Prove that publishing only redrafts sections that were changed\n\nI think this'll be important when we start messing with dates.","distinct":false,"url":"https://api.github.com/repos/alphagov/manuals-publisher/commits/12e12d3bdb11542365d31586dbc1a95e0dd849fe"},{"sha":"f16d7322d98be92342465101f341faa37752de0a","author":{"name":"Murray Steele","email":"7fd5846ea6ef627614ea669595ce6a868b4c0162@h-lame.com"},"message":"Stop sending publishing api public_updated_at\n\nPrior to this change the app would send public_updated_at to the\npublishing-api filled with the updated_at value of the manual or\nsection being drafted.  This isn't the right value to use because\nwe write drafts at edit time, not publish time.  So when we publish\nthe timestamp shown to the user will be the edit time.\n\nIt turns out that Publishing API will set timestamps correctly based\non the api calls made if the dates aren't already set, and if the\nupdate_types on the put_content and publish events are set correctly (see\nhttps://github.com/alphagov/publishing-api/blob/master/doc/api.md).\nWe've just changed it so that the update_types are set correctly which\nmeans we can stop sending public_updated_at and get the correct timestamps\nset (at publication time, not at draft time).","distinct":false,"url":"https://api.github.com/repos/alphagov/manuals-publisher/commits/f16d7322d98be92342465101f341faa37752de0a"},{"sha":"4b7545de828b88ef8325ae438672d50fc547b823","author":{"name":"Murray Steele","email":"7fd5846ea6ef627614ea669595ce6a868b4c0162@h-lame.com"},"message":"Merge pull request #780 from alphagov/let-publishing-api-deal-with-timestamps\n\nLet publishing api deal with timestamps","distinct":false,"url":"https://api.github.com/repos/alphagov/manuals-publisher/commits/4b7545de828b88ef8325ae438672d50fc547b823"}]}
{"actor":{"display_login":"govuk-ci"}}