{"push_id":953659480,"size":27,"distinct_size":0,"ref":"refs/heads/deployed-to-production","head":"ce17aec80f97f5b841a2032d541b219902675871","before":"faeec9c7c25eca0bffc1508e105da1ad7520927f","commits":[{"sha":"ae6e81ade77cebbdb3df4bf8528366603dfb9898","author":{"email":"e5982b38d766f19a8db1254b7013ea81e7d2dc14@digital.cabinet-office.gov.uk","name":"Matteo Grassotti"},"message":"add a locale parameter to the content items controller\n\npass the locale parameter to the query Queries::GetContentCollection","distinct":false,"url":"https://api.github.com/repos/alphagov/publishing-api/commits/ae6e81ade77cebbdb3df4bf8528366603dfb9898"},{"sha":"76b8958acb53e9b8a98aa5f414d3481ff9254ab6","author":{"email":"e5982b38d766f19a8db1254b7013ea81e7d2dc14@digital.cabinet-office.gov.uk","name":"Matteo Grassotti"},"message":"add a locale parameter to the query GetContentCollection\n\nThe locale parameter is set from the controller.\nDraft and live items are filtered accordingly.\nIf it is not passed or passed as nil, it is set to ‘en’ by default.\nIf it is passed with value ’all’, no filters by locale are applied.","distinct":false,"url":"https://api.github.com/repos/alphagov/publishing-api/commits/76b8958acb53e9b8a98aa5f414d3481ff9254ab6"},{"sha":"9a0857adad3af4b7eb8ecd7c518898b849172200","author":{"email":"e5982b38d766f19a8db1254b7013ea81e7d2dc14@digital.cabinet-office.gov.uk","name":"Matteo Grassotti"},"message":"add tests for index of Content Items Controller\n\nadd tests for these cases:\n- without providing a locale parameter\n- providing a specific locale parameter\n- providing a locale parameter set to 'all'","distinct":false,"url":"https://api.github.com/repos/alphagov/publishing-api/commits/9a0857adad3af4b7eb8ecd7c518898b849172200"},{"sha":"87ad69d7fcb318f110bda4ca3252f1ed76ecd601","author":{"email":"e5982b38d766f19a8db1254b7013ea81e7d2dc14@digital.cabinet-office.gov.uk","name":"Matteo Grassotti"},"message":"add tests for the GetContentCollection query\n\ntest if it:\n- returns the content items filtered by 'en' locale by default\n- returns the content items filtered by locale parameter\n- returns all content items if the locale parameter is 'all'","distinct":false,"url":"https://api.github.com/repos/alphagov/publishing-api/commits/87ad69d7fcb318f110bda4ca3252f1ed76ecd601"},{"sha":"6979d7300348e02a24384eb9c4cc68429c2de0fe","author":{"email":"e5982b38d766f19a8db1254b7013ea81e7d2dc14@digital.cabinet-office.gov.uk","name":"Matteo Grassotti"},"message":"add a format for a content item existing in multiple locales\n\nin order to comply with contract tests defined on gsd-api-adapters","distinct":false,"url":"https://api.github.com/repos/alphagov/publishing-api/commits/6979d7300348e02a24384eb9c4cc68429c2de0fe"},{"sha":"418d8bad7928f3633d39088ff46cf9331f1e7220","author":{"email":"e5982b38d766f19a8db1254b7013ea81e7d2dc14@digital.cabinet-office.gov.uk","name":"Matteo Grassotti"},"message":"test multiple locales with the same content_id","distinct":false,"url":"https://api.github.com/repos/alphagov/publishing-api/commits/418d8bad7928f3633d39088ff46cf9331f1e7220"},{"sha":"7e2f5fb21bad85b3aeaec01ca9c3d89731910b24","author":{"email":"e5982b38d766f19a8db1254b7013ea81e7d2dc14@digital.cabinet-office.gov.uk","name":"Matteo Grassotti"},"message":"check the array of results instead of each single element","distinct":false,"url":"https://api.github.com/repos/alphagov/publishing-api/commits/7e2f5fb21bad85b3aeaec01ca9c3d89731910b24"},{"sha":"79ebed53cf75ae829db16a7d18914cb205c4d976","author":{"email":"e5982b38d766f19a8db1254b7013ea81e7d2dc14@digital.cabinet-office.gov.uk","name":"Matteo Grassotti"},"message":"substitute the instance variable '@locale' with the attr_reader","distinct":false,"url":"https://api.github.com/repos/alphagov/publishing-api/commits/79ebed53cf75ae829db16a7d18914cb205c4d976"},{"sha":"b4081e803c33a61d565dadb3cedd815f9915f96b","author":{"email":"e5982b38d766f19a8db1254b7013ea81e7d2dc14@digital.cabinet-office.gov.uk","name":"Matteo Grassotti"},"message":"fix tests\n\nreuse the first instance of draft content for the english locale draft","distinct":false,"url":"https://api.github.com/repos/alphagov/publishing-api/commits/b4081e803c33a61d565dadb3cedd815f9915f96b"},{"sha":"7ebecd222c6b39d971ec60b52131fbb2fbfa698b","author":{"email":"58cda7fab72e315083a7ecdf368192a81767adde@gmail.com","name":"Elliot Crosby-McCullough"},"message":"Merge pull request #192 from alphagov/scope-items-by-locale\n\nScope items by locale","distinct":false,"url":"https://api.github.com/repos/alphagov/publishing-api/commits/7ebecd222c6b39d971ec60b52131fbb2fbfa698b"},{"sha":"2f179f47ea315c762746a937a33eb1c94c0b63e1","author":{"email":"dc048d3202374dfda116e02a6a6cc70abb83d688@digital.cabinet-office.gov.uk","name":"Daniel Roseman"},"message":"Add gds-sso gem, config and User model.","distinct":false,"url":"https://api.github.com/repos/alphagov/publishing-api/commits/2f179f47ea315c762746a937a33eb1c94c0b63e1"},{"sha":"36b593b2966df412c9599a457c4057f881f9d003","author":{"email":"dc048d3202374dfda116e02a6a6cc70abb83d688@digital.cabinet-office.gov.uk","name":"Daniel Roseman"},"message":"Set User.app_name from email by default.\n\nWe will be using app_name to restrict the items an app sees by default on the\nget_content endpoint, by filtering on publishing_app. GDS-SSO does not send\nthis data; email and name are not sufficiently constrained to automatically use\neither. As a starting point, use the user part of the email address on first\naccess, this can be changed manually per-app if necessary.","distinct":false,"url":"https://api.github.com/repos/alphagov/publishing-api/commits/36b593b2966df412c9599a457c4057f881f9d003"},{"sha":"5c1e8128ebf84de014bf580c6ae69c5f980b762b","author":{"email":"dc048d3202374dfda116e02a6a6cc70abb83d688@digital.cabinet-office.gov.uk","name":"Daniel Roseman"},"message":"Actually require signin permission.\n\nAlso trigger the set_app_name on authentication.","distinct":false,"url":"https://api.github.com/repos/alphagov/publishing-api/commits/5c1e8128ebf84de014bf580c6ae69c5f980b762b"},{"sha":"5b83f5d8d20f1d0a561d2842684069ecd6b867f2","author":{"email":"dc048d3202374dfda116e02a6a6cc70abb83d688@digital.cabinet-office.gov.uk","name":"Daniel Roseman"},"message":"Fake login during tests.\n\nWe need two different types of fake login, one for controller specs and one for\nrequests specs. This is because controller specs interact with Rack::Test\ndirectly, so we have to stub the Warden request environment explicitly,\nwhereas the request specs go through a higher-level abstraction and we can\nsimply set GDS::SSO.test_user.","distinct":false,"url":"https://api.github.com/repos/alphagov/publishing-api/commits/5b83f5d8d20f1d0a561d2842684069ecd6b867f2"},{"sha":"0b6e6020b69f9e4253b558db619ac705979e4429","author":{"email":"dc048d3202374dfda116e02a6a6cc70abb83d688@digital.cabinet-office.gov.uk","name":"Daniel Roseman"},"message":"Filter get_content_collection by user's app.\n\nBy default the endpoint now returns only those items whose publishing_app\nmatches the value of the authenticated user's app_name (here the user is an\napp, identified by the bearer token).\n\nUsers with the additional permission 'view_all' will see all items.","distinct":false,"url":"https://api.github.com/repos/alphagov/publishing-api/commits/0b6e6020b69f9e4253b558db619ac705979e4429"},{"sha":"af36230ddef41c0145a0c8390533d941e18533a2","author":{"email":"dc048d3202374dfda116e02a6a6cc70abb83d688@digital.cabinet-office.gov.uk","name":"Daniel Roseman"},"message":"Create user before Pact specs.\n\nGDS-SSO runs in mock mode in tests so no bearer token is required, but it does\nneed a user to exist in the database for the mock to work.","distinct":false,"url":"https://api.github.com/repos/alphagov/publishing-api/commits/af36230ddef41c0145a0c8390533d941e18533a2"},{"sha":"9db5bc1da18142157ce3c57e3ff8e4a80a9af1f4","author":{"email":"e5982b38d766f19a8db1254b7013ea81e7d2dc14@digital.cabinet-office.gov.uk","name":"Matteo Grassotti"},"message":"Allow passing link hashes through to content store\n\nThis works with https://github.com/alphagov/content-store/pull/182 to\nallow publishing applications to “hardcode” link expansion for content\nnot yet in the publishing API (such as governments for history mode).","distinct":false,"url":"https://api.github.com/repos/alphagov/publishing-api/commits/9db5bc1da18142157ce3c57e3ff8e4a80a9af1f4"},{"sha":"3885dc67d5aa477cb4ce0df491764808f09f3fce","author":{"email":"3d0f3b9ddcacec30c4008c5e030e6c13a478cb4f@roseman.org.uk","name":"Daniel Roseman"},"message":"Merge pull request #188 from alphagov/token-auth\n\nBearer token authentication","distinct":false,"url":"https://api.github.com/repos/alphagov/publishing-api/commits/3885dc67d5aa477cb4ce0df491764808f09f3fce"},{"sha":"430e36f15c1bb47060aca6bb66a5edb728a6a003","author":{"email":"dc048d3202374dfda116e02a6a6cc70abb83d688@digital.cabinet-office.gov.uk","name":"Daniel Roseman"},"message":"Upgrade Rails and rails-html-sanitizer.","distinct":false,"url":"https://api.github.com/repos/alphagov/publishing-api/commits/430e36f15c1bb47060aca6bb66a5edb728a6a003"},{"sha":"caf6bad5e83044660c00f688c1dbfb4b3f26e731","author":{"email":"9233b6f5388d6867a2a7be14d8b4ba53c86cfde2@intranation.com","name":"Bradley Wright"},"message":"Merge pull request #195 from alphagov/upgrade-rails\n\nUpgrade Rails and rails-html-sanitizer.","distinct":false,"url":"https://api.github.com/repos/alphagov/publishing-api/commits/caf6bad5e83044660c00f688c1dbfb4b3f26e731"}]}