{"action":"closed","issue":{"url":"https://api.github.com/repos/ploneintranet/ploneintranet/issues/14","labels_url":"https://api.github.com/repos/ploneintranet/ploneintranet/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/ploneintranet/ploneintranet/issues/14/comments","events_url":"https://api.github.com/repos/ploneintranet/ploneintranet/issues/14/events","html_url":"https://github.com/ploneintranet/ploneintranet/issues/14","id":61028815,"number":14,"title":"Rewrite todo API","user":{"login":"wengole","id":383857,"avatar_url":"https://avatars.githubusercontent.com/u/383857?v=3","gravatar_id":"","url":"https://api.github.com/users/wengole","html_url":"https://github.com/wengole","followers_url":"https://api.github.com/users/wengole/followers","following_url":"https://api.github.com/users/wengole/following{/other_user}","gists_url":"https://api.github.com/users/wengole/gists{/gist_id}","starred_url":"https://api.github.com/users/wengole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wengole/subscriptions","organizations_url":"https://api.github.com/users/wengole/orgs","repos_url":"https://api.github.com/users/wengole/repos","events_url":"https://api.github.com/users/wengole/events{/privacy}","received_events_url":"https://api.github.com/users/wengole/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ploneintranet/ploneintranet/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ploneintranet/ploneintranet/labels/invalid","name":"invalid","color":"e6e6e6"},{"url":"https://api.github.com/repos/ploneintranet/ploneintranet/labels/pkg-todo","name":"pkg-todo","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-13T10:12:39Z","updated_at":"2015-06-05T07:16:23Z","closed_at":"2015-06-05T07:16:23Z","body":"<a href=\"https://github.com/wengole\"><img src=\"https://avatars.githubusercontent.com/u/383857?v=3\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [wengole](https://github.com/wengole)**\n_Tuesday Mar 10, 2015 at 15:45 GMT_\n_Originally opened as https://github.com/ploneintranet/ploneintranet.todo/issues/3_\n\n----\n\nCurrently this stores a massive mapping of userids to their unread content UIDs.\r\n\r\nThis is bad. After speaking with @mattss a much better solution was formulated:\r\n\r\n* Upon creation of a \"todo\", add an todo to all selected users as annotation on the user\r\n* Simultaneously add an \"unread\" userid to the content as an annotation \r\n\r\nThese changes would be handled by the API from the same calls.\n"}}