{"push_id":675061007,"size":7,"distinct_size":1,"ref":"refs/heads/master","head":"3e9d6647a6e9e318325227a44e13a441c3eadfef","before":"c92947101d5393b43f3d402daea6d818b2c18032","commits":[{"sha":"dd95d7d06db7e3121037cc7fc9416f4a6b8beae1","author":{"email":"1960665b789a54413d9da7eaa93a0e5f5b4672af@tekin.co.uk","name":"Tekin Suleyman"},"message":"Correct policy to publication mapping\n\nThis updates the CSV to reflect the current reality of the production data - two\npublications no longer exist.","distinct":false,"url":"https://api.github.com/repos/alphagov/whitehall/commits/dd95d7d06db7e3121037cc7fc9416f4a6b8beae1"},{"sha":"e6d65b946ac48624d609d045113c3fe08197d01f","author":{"email":"1960665b789a54413d9da7eaa93a0e5f5b4672af@tekin.co.uk","name":"Tekin Suleyman"},"message":"Introduce factory for GDS Team user","distinct":false,"url":"https://api.github.com/repos/alphagov/whitehall/commits/e6d65b946ac48624d609d045113c3fe08197d01f"},{"sha":"a13e177767e25ef56d2cd6d2758c786bc6dcc020","author":{"email":"1960665b789a54413d9da7eaa93a0e5f5b4672af@tekin.co.uk","name":"Tekin Suleyman"},"message":"Add script to rewrite migrated policy publication history\n\nThis script/rewrite_policy_publication_history.rb script will rewrite the\ndocument history on publications that were generated to archive content from\nthe old Policy format.\n\nIt does the following:\n\n\t* Makes a note of the existing change history on the publication\n\t* Clears the publication change history so it starts from a blank-slate\n\t* For every major change on the original policy, re-edition the publication and\n\tuse the change note and public timestamp of the policy major change\n\t* For those changes on the publication that were noted in the first step,\n\tre-edition the publication and adopting the public timestamp of those changes\n\nThis should result in a merge document history on the publication that\nadopts the history of the original policy, followed by subsequent changes for\nthe transition to a publication and any major changes that may have been\nperformed since the publication was initial published.\n\nThe expects all publications to be in a \"published\" state, with no open \"draft\"\nor \"submitted\" editions. Any remaining \"draft\" or \"submitted\" editions should be\neither disgarded or published before running the script as otherwise it will\nfail.\n\nNote that although the script performs the history rewriting in a transaction,\nit is not idempotent and so should only ever be run once, otherwise the history\nwill be duplicated. If the script exists with errors however, the transaction\nwill rollback and the script can be retried.","distinct":false,"url":"https://api.github.com/repos/alphagov/whitehall/commits/a13e177767e25ef56d2cd6d2758c786bc6dcc020"},{"sha":"510669a14e0258ff180f1da9a2fab59f466ddc0e","author":{"email":"1960665b789a54413d9da7eaa93a0e5f5b4672af@tekin.co.uk","name":"Tekin Suleyman"},"message":"Fail early in history rewrite\n\nIf there is an open edition on any of the publications, then we want to fail\nearly as we won't be able to rewrite the history on these documents.","distinct":false,"url":"https://api.github.com/repos/alphagov/whitehall/commits/510669a14e0258ff180f1da9a2fab59f466ddc0e"},{"sha":"80b7e6550976c90f9c454368dff258257cea33ac","author":{"email":"1960665b789a54413d9da7eaa93a0e5f5b4672af@tekin.co.uk","name":"Tekin Suleyman"},"message":"Handle archived publications\n\nA couple of the generated publications have since been archived. This updates\nthe PolicyPublicationHistoryWriter to handle them, re-writing their history and\nre-archiving them with the same unpublishing details at the end.","distinct":false,"url":"https://api.github.com/repos/alphagov/whitehall/commits/80b7e6550976c90f9c454368dff258257cea33ac"},{"sha":"bd5036cc3e2ef5982ed4eb20dd43bbd0dde28c0d","author":{"email":"1960665b789a54413d9da7eaa93a0e5f5b4672af@tekin.co.uk","name":"Tekin Suleyman"},"message":"Include an editorial remark for auditing\n\nSo that the publication history in admin includes a reference to the history\nrewrite.","distinct":false,"url":"https://api.github.com/repos/alphagov/whitehall/commits/bd5036cc3e2ef5982ed4eb20dd43bbd0dde28c0d"},{"sha":"3e9d6647a6e9e318325227a44e13a441c3eadfef","author":{"email":"1960665b789a54413d9da7eaa93a0e5f5b4672af@tekin.co.uk","name":"Tekin Suleyman"},"message":"Merge pull request #2195 from alphagov/back-fill-publication-history\n\nBack fill publication history","distinct":true,"url":"https://api.github.com/repos/alphagov/whitehall/commits/3e9d6647a6e9e318325227a44e13a441c3eadfef"}]}