{"push_id":632283065,"size":88,"distinct_size":5,"ref":"refs/heads/187-og-and-twitter-tags","head":"189b5d0c767dcf4be5e6c5526ee4dc9e41839e5e","before":"d3c689f53c34e73c5fee4bcb2fea7c963d67bf2a","commits":[{"sha":"3a26abdd23c6ddcd2f68f48a1b33d9209366d32e","author":{"email":"7ece978167073d004197c0d6655799d1a2ce976e@pobox.com","name":"Mark Longair"},"message":"Remove any dissolved parties from /numbers/parties\n\nWe've made an effort recently to get rid of all the parties that are now\ndissolved, and we now only consider the current parties when counting\nnumbers of candidates for each party. However, there will still be rows\nin the cached_counts_cachedcount table that refer to now-dissolved\nparties.\n\nThis commit introduces code to purge any such dissolved parties from the\ncached_counts_cachedcount table when cached_counts_create is run.\n\nFixes #260","distinct":false,"url":"https://api.github.com/repos/mysociety/yournextmp-popit/commits/3a26abdd23c6ddcd2f68f48a1b33d9209366d32e"},{"sha":"08459f447835d9af11479de98f3ca8ed36ab7e38","author":{"email":"a377704db3ed5861f3f01cc9e56ff4cb072ac88d@dracos.co.uk","name":"Matthew Somerville"},"message":"Cache PopIt posts call, invalidate when necessary.\n\nThis might well not invalidate everywhere it would need to.","distinct":false,"url":"https://api.github.com/repos/mysociety/yournextmp-popit/commits/08459f447835d9af11479de98f3ca8ed36ab7e38"},{"sha":"6a43807af03f234f63ea005d2957eb1fe47cb308","author":{"email":"7ece978167073d004197c0d6655799d1a2ce976e@pobox.com","name":"Mark Longair"},"message":"Set 'Cache-Control: max_age=...' more selectively\n\nPreviously, we were setting this header for the whole site. Instead\nwe'd like to send it more selectively; initially just on the\nconstituency view and candidate view pages.","distinct":false,"url":"https://api.github.com/repos/mysociety/yournextmp-popit/commits/6a43807af03f234f63ea005d2957eb1fe47cb308"},{"sha":"8006c11c398900bf8b6b39df45c8e36f2dadfb27","author":{"email":"7ece978167073d004197c0d6655799d1a2ce976e@pobox.com","name":"Mark Longair"},"message":"If DEBUG is False, use memcached as the cache backend","distinct":false,"url":"https://api.github.com/repos/mysociety/yournextmp-popit/commits/8006c11c398900bf8b6b39df45c8e36f2dadfb27"},{"sha":"19fdf0dfdbca28e6a37614941d4b87c4f5170849","author":{"email":"7ece978167073d004197c0d6655799d1a2ce976e@pobox.com","name":"Mark Longair"},"message":"Switch to using Memcached for caching posts data\n\nThis is to resolve the problem that if you edited a person, their posts\nwould only be invalidated for one worker (at the moment there are\ntypically 5 processes handling YNMP requests).  Memcached is a single\ncache shared between the workers, so switching to that as the cache for\nposts should fix this.","distinct":false,"url":"https://api.github.com/repos/mysociety/yournextmp-popit/commits/19fdf0dfdbca28e6a37614941d4b87c4f5170849"},{"sha":"93d3b8fa59cb388f49ccbc07a0c3974e2e9b8dde","author":{"email":"7ece978167073d004197c0d6655799d1a2ce976e@pobox.com","name":"Mark Longair"},"message":"Fix an out-of-date comment","distinct":false,"url":"https://api.github.com/repos/mysociety/yournextmp-popit/commits/93d3b8fa59cb388f49ccbc07a0c3974e2e9b8dde"},{"sha":"429badb521e6b0906f012f503b7b50681e8e974d","author":{"email":"7ece978167073d004197c0d6655799d1a2ce976e@pobox.com","name":"Mark Longair"},"message":"Also invalidate a person's posts on approving a photo upload for them\n\nThis is needed to make sure that the person's image on the constituency\npage is updated.","distinct":false,"url":"https://api.github.com/repos/mysociety/yournextmp-popit/commits/429badb521e6b0906f012f503b7b50681e8e974d"},{"sha":"ad9e44c4523f34613842c9f12b78ac233fd3fb6d","author":{"email":"7ece978167073d004197c0d6655799d1a2ce976e@pobox.com","name":"Mark Longair"},"message":"Invalidate all cached posts associated with the person, not just one\n\nThere can be more than one different post in a person's memberships,\ne.g. if they change constituency from one election to another.\nPreviously the code would only invalidate one of these posts because\nthe person -> post mapping in the cache was one-to-one.\n\nThis commit changes this so that there's no mapping between people and\nposts maintained in the cache; instead the calling code has to work out\nwhich posts to invalidate.","distinct":false,"url":"https://api.github.com/repos/mysociety/yournextmp-popit/commits/ad9e44c4523f34613842c9f12b78ac233fd3fb6d"},{"sha":"8549c7c10b3a98758097c5acde09543982eb5220","author":{"email":"7ece978167073d004197c0d6655799d1a2ce976e@pobox.com","name":"Mark Longair"},"message":"Remove a now-unneeded management command","distinct":false,"url":"https://api.github.com/repos/mysociety/yournextmp-popit/commits/8549c7c10b3a98758097c5acde09543982eb5220"},{"sha":"1b0fdfdc2ff49d6dfc7d239b5a9cda1ff334f20b","author":{"email":"7ece978167073d004197c0d6655799d1a2ce976e@pobox.com","name":"Mark Longair"},"message":"Add functions for caching person data from PopIt","distinct":false,"url":"https://api.github.com/repos/mysociety/yournextmp-popit/commits/1b0fdfdc2ff49d6dfc7d239b5a9cda1ff334f20b"},{"sha":"8a3dcb229fc76bbc99eb26f6dea6058439a1f470","author":{"email":"7ece978167073d004197c0d6655799d1a2ce976e@pobox.com","name":"Mark Longair"},"message":"Add helpers to invalidate the cache of a person and associated posts","distinct":false,"url":"https://api.github.com/repos/mysociety/yournextmp-popit/commits/8a3dcb229fc76bbc99eb26f6dea6058439a1f470"},{"sha":"ac4baefb20f623840ca7ae9b85c9821d55a17d25","author":{"email":"7ece978167073d004197c0d6655799d1a2ce976e@pobox.com","name":"Mark Longair"},"message":"Use cached PopIt person data if possible","distinct":false,"url":"https://api.github.com/repos/mysociety/yournextmp-popit/commits/ac4baefb20f623840ca7ae9b85c9821d55a17d25"},{"sha":"af1e8cfe463cf267361004f8b376f574e51fd97c","author":{"email":"7ece978167073d004197c0d6655799d1a2ce976e@pobox.com","name":"Mark Longair"},"message":"Make sure all management commands invalidate cache data properly","distinct":false,"url":"https://api.github.com/repos/mysociety/yournextmp-popit/commits/af1e8cfe463cf267361004f8b376f574e51fd97c"},{"sha":"4fd5e4074b64e5af26d3b1ee424580a0ce505855","author":{"email":"7ece978167073d004197c0d6655799d1a2ce976e@pobox.com","name":"Mark Longair"},"message":"Add staff-only buttons to invalidate the cache of a person or post\n\nThis may be occasionally useful if someone has made an edit directly in\nPopIt, which means the cached version of that person or constituency\nwouldn't be invalidated.","distinct":false,"url":"https://api.github.com/repos/mysociety/yournextmp-popit/commits/4fd5e4074b64e5af26d3b1ee424580a0ce505855"},{"sha":"41f12f3505d3de354043c7cd5af0293707272578","author":{"email":"7ece978167073d004197c0d6655799d1a2ce976e@pobox.com","name":"Mark Longair"},"message":"Make the update_person test involve a change in constituency\n\nThis will be useful in testing which posts to invalidated.","distinct":false,"url":"https://api.github.com/repos/mysociety/yournextmp-popit/commits/41f12f3505d3de354043c7cd5af0293707272578"},{"sha":"6a2d8de33833882987d0a7a0f9280a04bcd330fb","author":{"email":"7ece978167073d004197c0d6655799d1a2ce976e@pobox.com","name":"Mark Longair"},"message":"The standing_in should now have a post_id attached; update the test","distinct":false,"url":"https://api.github.com/repos/mysociety/yournextmp-popit/commits/6a2d8de33833882987d0a7a0f9280a04bcd330fb"},{"sha":"7bac92b901c09fdc643ef1d896a8d97784d83126","author":{"email":"7ece978167073d004197c0d6655799d1a2ce976e@pobox.com","name":"Mark Longair"},"message":"Add basic tests to check that people and posts are invalidated","distinct":false,"url":"https://api.github.com/repos/mysociety/yournextmp-popit/commits/7bac92b901c09fdc643ef1d896a8d97784d83126"},{"sha":"4ea01b4366c45c0a7f3f7f32c760b9ecfa7d0aed","author":{"email":"7ece978167073d004197c0d6655799d1a2ce976e@pobox.com","name":"Mark Longair"},"message":"Add Gordon Shrigley's 'Campaign' party","distinct":false,"url":"https://api.github.com/repos/mysociety/yournextmp-popit/commits/4ea01b4366c45c0a7f3f7f32c760b9ecfa7d0aed"},{"sha":"e1c9ab67402a6519952d2008b1f3eeeb5b508caa","author":{"email":"7ece978167073d004197c0d6655799d1a2ce976e@pobox.com","name":"Mark Longair"},"message":"Merge branch 'cache-popit-results'","distinct":false,"url":"https://api.github.com/repos/mysociety/yournextmp-popit/commits/e1c9ab67402a6519952d2008b1f3eeeb5b508caa"},{"sha":"5f6338ab9dfb02fb4d2f5ecf498e571c29fac497","author":{"email":"7ece978167073d004197c0d6655799d1a2ce976e@pobox.com","name":"Mark Longair"},"message":"In the admin, add search for queued images\n\nThis allows you to search for queued images by either PopIt person ID or\nthe uploading user's name.","distinct":false,"url":"https://api.github.com/repos/mysociety/yournextmp-popit/commits/5f6338ab9dfb02fb4d2f5ecf498e571c29fac497"}]}