{"push_id":773545047,"size":2,"distinct_size":0,"ref":"refs/heads/deployed-to-preview","head":"113408dfae5ea423ce31e4a2b5db2e2673e74d34","before":"90e19c1badcef5f4a6f5225f41352d187285b57b","commits":[{"sha":"e0e6951a8f16b569f63020ed7d33aa25fcfce2d7","author":{"email":"be8758dc4a66004612e74b567a662d4f1fbf4c2e@gmail.com","name":"tijmen"},"message":"Improve sending browse pages to rummager\n\nCurrently whitehall asks content-api for the browse pages tagged to an\nartefact. This was added in PR #2322.\n\nHowever, it does so by asking the content-api for each edition during\nindexing, about 130.000 times currently. This commit uses the new\nendpoint on content-api that was added specially for this use-case:\n\nhttps://github.com/alphagov/govuk_content_api/pull/226\n\nThis endpoint returns all artefacts tagged to mainstream browse pages,\nso that we can do one request to get them all.\n\nWe use the standard Rails caching mechanism here to cache the response.\n\nWe extend `GdsApi::ContentApi` in this app because no other clients may\nuse the `artefacts_tagged_to_mainstream_browse_pages` endpoint. This is\na pattern used by the publishing API:\n\nhttps://github.com/alphagov/publishing-api/blob/560112fc1019d77f4dce4f93\n061165a574d5d7eb/lib/clients/content_store_writer.rb","distinct":false,"url":"https://api.github.com/repos/alphagov/whitehall/commits/e0e6951a8f16b569f63020ed7d33aa25fcfce2d7"},{"sha":"113408dfae5ea423ce31e4a2b5db2e2673e74d34","author":{"email":"be8758dc4a66004612e74b567a662d4f1fbf4c2e@gmail.com","name":"Tijmen Brommet"},"message":"Merge pull request #2327 from alphagov/improve-sending-browse-pages-to-rummager\n\nImprove sending browse pages to rummager","distinct":false,"url":"https://api.github.com/repos/alphagov/whitehall/commits/113408dfae5ea423ce31e4a2b5db2e2673e74d34"}]}