{"action":"created","issue":{"url":"https://api.github.com/repos/dimagi/commcare-hq/issues/18874","repository_url":"https://api.github.com/repos/dimagi/commcare-hq","labels_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/18874/labels{/name}","comments_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/18874/comments","events_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/18874/events","html_url":"https://github.com/dimagi/commcare-hq/pull/18874","id":281169777,"number":18874,"title":"Fixture restore cache invalidation","user":{"login":"dannyroberts","id":137212,"avatar_url":"https://avatars1.githubusercontent.com/u/137212?v=4","gravatar_id":"","url":"https://api.github.com/users/dannyroberts","html_url":"https://github.com/dannyroberts","followers_url":"https://api.github.com/users/dannyroberts/followers","following_url":"https://api.github.com/users/dannyroberts/following{/other_user}","gists_url":"https://api.github.com/users/dannyroberts/gists{/gist_id}","starred_url":"https://api.github.com/users/dannyroberts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dannyroberts/subscriptions","organizations_url":"https://api.github.com/users/dannyroberts/orgs","repos_url":"https://api.github.com/users/dannyroberts/repos","events_url":"https://api.github.com/users/dannyroberts/events{/privacy}","received_events_url":"https://api.github.com/users/dannyroberts/received_events","type":"User","site_admin":false},"labels":[{"id":724787015,"url":"https://api.github.com/repos/dimagi/commcare-hq/labels/product/invisible","name":"product/invisible","color":"cfd2d6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-11T21:16:07Z","updated_at":"2017-12-11T22:08:48Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/18874","html_url":"https://github.com/dimagi/commcare-hq/pull/18874","diff_url":"https://github.com/dimagi/commcare-hq/pull/18874.diff","patch_url":"https://github.com/dimagi/commcare-hq/pull/18874.patch"},"body":"This is a \"prefactor\" for https://manage.dimagi.com/default.asp?266045. Right now it basically does nothing (except globally bust restore caches due to a change in the key structure). But it exposes a function called `invalidate_restore_cache` that lets you invalidate caches for a single user or an entire domain.\r\n\r\nThis lets us implement invalidation workflows such as (a) invalidate restore for users affected by a fixture update (b) invalidate restores for a whole domain if it's too hard to figure out from a fixture upload what users' caches to invalidate or there are too many of them (?) (c) when a user's location or group assignment changes, invalidate their restore cache, etc.\r\n\r\nDoes this seem like a reasonable approach?"},"comment":{"url":"https://api.github.com/repos/dimagi/commcare-hq/issues/comments/350874535","html_url":"https://github.com/dimagi/commcare-hq/pull/18874#issuecomment-350874535","issue_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/18874","id":350874535,"user":{"login":"proteusvacuum","id":146896,"avatar_url":"https://avatars1.githubusercontent.com/u/146896?v=4","gravatar_id":"","url":"https://api.github.com/users/proteusvacuum","html_url":"https://github.com/proteusvacuum","followers_url":"https://api.github.com/users/proteusvacuum/followers","following_url":"https://api.github.com/users/proteusvacuum/following{/other_user}","gists_url":"https://api.github.com/users/proteusvacuum/gists{/gist_id}","starred_url":"https://api.github.com/users/proteusvacuum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/proteusvacuum/subscriptions","organizations_url":"https://api.github.com/users/proteusvacuum/orgs","repos_url":"https://api.github.com/users/proteusvacuum/repos","events_url":"https://api.github.com/users/proteusvacuum/events{/privacy}","received_events_url":"https://api.github.com/users/proteusvacuum/received_events","type":"User","site_admin":false},"created_at":"2017-12-11T22:08:48Z","updated_at":"2017-12-11T22:08:48Z","author_association":"OWNER","body":"So fresh."}}
{"actor":{"display_login":"proteusvacuum"}}