{"action":"created","issue":{"url":"https://api.github.com/repos/guardian/grid/issues/1027","labels_url":"https://api.github.com/repos/guardian/grid/issues/1027/labels{/name}","comments_url":"https://api.github.com/repos/guardian/grid/issues/1027/comments","events_url":"https://api.github.com/repos/guardian/grid/issues/1027/events","html_url":"https://github.com/guardian/grid/pull/1027","id":98961194,"number":1027,"title":"\"auto\" archive staff photographer's images.","user":{"login":"akash1810","id":836140,"avatar_url":"https://avatars.githubusercontent.com/u/836140?v=3","gravatar_id":"","url":"https://api.github.com/users/akash1810","html_url":"https://github.com/akash1810","followers_url":"https://api.github.com/users/akash1810/followers","following_url":"https://api.github.com/users/akash1810/following{/other_user}","gists_url":"https://api.github.com/users/akash1810/gists{/gist_id}","starred_url":"https://api.github.com/users/akash1810/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akash1810/subscriptions","organizations_url":"https://api.github.com/users/akash1810/orgs","repos_url":"https://api.github.com/users/akash1810/repos","events_url":"https://api.github.com/users/akash1810/events{/privacy}","received_events_url":"https://api.github.com/users/akash1810/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/guardian/grid/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-04T12:53:13Z","updated_at":"2015-08-04T14:25:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/guardian/grid/pulls/1027","html_url":"https://github.com/guardian/grid/pull/1027","diff_url":"https://github.com/guardian/grid/pull/1027.diff","patch_url":"https://github.com/guardian/grid/pull/1027.patch"},"body":"\"auto\" because the workflow is:\r\n\r\n- upload image\r\n- image loader will post a message to a (new) SNS topic\r\n- metadata api has a thrall like message consumer, which will detect if an image is staff, and write to dynamo if so then post a metadata-edit message to thrall's SNS topic\r\n- thrall processes the queue as usual, writing to ES.\r\n\r\nThere is a delay between the last two steps where the UI may not have a filled in star to denote the image has been archived; possible solutions include:\r\n\r\n- move `archived` to the root of the document\r\n- server side notifications to broadcast that the SNS message has been processed post upload and so toggle the star state."},"comment":{"url":"https://api.github.com/repos/guardian/grid/issues/comments/127630570","html_url":"https://github.com/guardian/grid/pull/1027#issuecomment-127630570","issue_url":"https://api.github.com/repos/guardian/grid/issues/1027","id":127630570,"user":{"login":"kenoir","id":953792,"avatar_url":"https://avatars.githubusercontent.com/u/953792?v=3","gravatar_id":"","url":"https://api.github.com/users/kenoir","html_url":"https://github.com/kenoir","followers_url":"https://api.github.com/users/kenoir/followers","following_url":"https://api.github.com/users/kenoir/following{/other_user}","gists_url":"https://api.github.com/users/kenoir/gists{/gist_id}","starred_url":"https://api.github.com/users/kenoir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenoir/subscriptions","organizations_url":"https://api.github.com/users/kenoir/orgs","repos_url":"https://api.github.com/users/kenoir/repos","events_url":"https://api.github.com/users/kenoir/events{/privacy}","received_events_url":"https://api.github.com/users/kenoir/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T14:25:48Z","updated_at":"2015-08-04T14:25:48Z","body":"A sequence diagram would be really handy in understanding what's going on here.\r\n\r\nIs this what's going on?\r\n\r\n![blank flowchart - new page](https://cloud.githubusercontent.com/assets/953792/9062909/119b4174-3abd-11e5-9041-9a2a6164dd9f.png)\r\n"}}