{"push_id":2087305898,"size":11,"distinct_size":0,"ref":"refs/heads/release","head":"9546b04d759c826e91d604676f470da11e9e5a59","before":"a66dda18919ba15e414c209769c96757da423d3b","commits":[{"sha":"6fafb63135917664e24eddb13747bdff1bc23984","author":{"name":"Chris Lowis","email":"16773d64d16306a118f94167139f1f8aaf3bbac5@gmail.com"},"message":"Introduce MigrateAssetsToAssetManager\n\nThis class synchronously calls\n`Services.asset_manager.create_whitehall_asset` for every Organisation\nlogo stored under the `White.clean_uploads_root` directory.\n\nWe decided to use the files on disk rather than references to\nlogos on the Organisation database model to determine which files to\nsend to asset manager. At the moment every file on disk is available\nat a public-facing URL irrespective of whether there are still\nreferences to it in the database. It is safest therefore to create\nassets in Asset Manager for everything.\n\nBefore this can be used we will need to set the legacy url path, and\ntwo cache control headers. We may also want to make the call to\n`create_whitehall_asset` asynchronously. These will be handled subsequently.","distinct":false,"url":"https://api.github.com/repos/alphagov/whitehall/commits/6fafb63135917664e24eddb13747bdff1bc23984"},{"sha":"ed6642f490000c475ac9006e6de0408ccf662ea7","author":{"name":"Chris Lowis","email":"16773d64d16306a118f94167139f1f8aaf3bbac5@gmail.com"},"message":"Send legacy_url_path to create_whitehall_asset","distinct":false,"url":"https://api.github.com/repos/alphagov/whitehall/commits/ed6642f490000c475ac9006e6de0408ccf662ea7"},{"sha":"3ed5d03ba68f4e07850eb018246fcd305e6e59db","author":{"name":"Chris Lowis","email":"16773d64d16306a118f94167139f1f8aaf3bbac5@gmail.com"},"message":"Extract OrganisationLogoFile","distinct":false,"url":"https://api.github.com/repos/alphagov/whitehall/commits/3ed5d03ba68f4e07850eb018246fcd305e6e59db"},{"sha":"bb89227f4ca31d343288c08a073770be60201092","author":{"name":"Chris Lowis","email":"16773d64d16306a118f94167139f1f8aaf3bbac5@gmail.com"},"message":"Send legacy_last_modified to create_whitehall_asset","distinct":false,"url":"https://api.github.com/repos/alphagov/whitehall/commits/bb89227f4ca31d343288c08a073770be60201092"},{"sha":"a31ae88bb031c57730346a9f3cbeb7692a4059cf","author":{"name":"Chris Lowis","email":"16773d64d16306a118f94167139f1f8aaf3bbac5@gmail.com"},"message":"Send legacy_etag to create_whitehall_asset","distinct":false,"url":"https://api.github.com/repos/alphagov/whitehall/commits/a31ae88bb031c57730346a9f3cbeb7692a4059cf"},{"sha":"adad4f27cb1a13d715190aef6825c98f58fdaa4b","author":{"name":"Chris Lowis","email":"16773d64d16306a118f94167139f1f8aaf3bbac5@gmail.com"},"message":"Extract method","distinct":false,"url":"https://api.github.com/repos/alphagov/whitehall/commits/adad4f27cb1a13d715190aef6825c98f58fdaa4b"},{"sha":"5f8f26232cb48db866ce922abdcc7bf9cc545eb0","author":{"name":"Chris Lowis","email":"16773d64d16306a118f94167139f1f8aaf3bbac5@gmail.com"},"message":"Call create_whitehall_asset unless asset already in Asset Manager\n\nWe don't need to create an asset in asset manager if one already\nexists at the given legacy_url_path. This will be the case for any\norganisation logos that have already been added to whitehall before\nthis migration is performed, or if the migration code is run multiple\ntimes.","distinct":false,"url":"https://api.github.com/repos/alphagov/whitehall/commits/5f8f26232cb48db866ce922abdcc7bf9cc545eb0"},{"sha":"10500293d8edd18d074d623bde0fa4b9d7ad8884","author":{"name":"Chris Lowis","email":"16773d64d16306a118f94167139f1f8aaf3bbac5@gmail.com"},"message":"Instantiate OrganisationLogoFile inside `perform`\n\nWe want to create sidekiq jobs instead of performing the work\nasynchronously. We won't be able to pass instances of\nOrganisationLogoFile to a worker. This change will make it easier to\npass a file_path instead.","distinct":false,"url":"https://api.github.com/repos/alphagov/whitehall/commits/10500293d8edd18d074d623bde0fa4b9d7ad8884"},{"sha":"04d3f4845bd666407fbebb8498207f55ed9fa2a7","author":{"name":"Chris Lowis","email":"16773d64d16306a118f94167139f1f8aaf3bbac5@gmail.com"},"message":"Perform migration work in a Sidekiq worker\n\nI've decided to introduce the worker namespaced under the\nMigrateAssetsToAssetManager class rather than in `app/workers` as it\nshouldn't be used outside of migrations at this stage. The new\n`asset_migration` queue is introduced to ensure that its work is\ntreated with the lowest priority[1].\n\n[1] https://github.com/mperham/sidekiq/wiki/Advanced-Options#queues","distinct":false,"url":"https://api.github.com/repos/alphagov/whitehall/commits/04d3f4845bd666407fbebb8498207f55ed9fa2a7"},{"sha":"db3a6e9de2ad1324ad80085f4a781e6f2a602a6f","author":{"name":"Chris Lowis","email":"16773d64d16306a118f94167139f1f8aaf3bbac5@gmail.com"},"message":"Add a rake task to run organisation logo migration","distinct":false,"url":"https://api.github.com/repos/alphagov/whitehall/commits/db3a6e9de2ad1324ad80085f4a781e6f2a602a6f"},{"sha":"9546b04d759c826e91d604676f470da11e9e5a59","author":{"name":"Chris Lowis","email":"16773d64d16306a118f94167139f1f8aaf3bbac5@gmail.com"},"message":"Merge pull request #3513 from alphagov/migrate-organisation-logos-to-asset-manager\n\nMigrate organisation logos to asset manager","distinct":false,"url":"https://api.github.com/repos/alphagov/whitehall/commits/9546b04d759c826e91d604676f470da11e9e5a59"}]}
{"actor":{"display_login":"govuk-ci"}}