{"action":"closed","issue":{"url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/issues/62","repository_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main","labels_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/issues/62/comments","events_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/issues/62/events","html_url":"https://github.com/CS2103AUG2016-F11-C3/main/issues/62","id":185703466,"number":62,"title":"Relative times in ItemCard should update automatically","user":{"login":"yyc","id":75352,"avatar_url":"https://avatars.githubusercontent.com/u/75352?v=3","gravatar_id":"","url":"https://api.github.com/users/yyc","html_url":"https://github.com/yyc","followers_url":"https://api.github.com/users/yyc/followers","following_url":"https://api.github.com/users/yyc/following{/other_user}","gists_url":"https://api.github.com/users/yyc/gists{/gist_id}","starred_url":"https://api.github.com/users/yyc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yyc/subscriptions","organizations_url":"https://api.github.com/users/yyc/orgs","repos_url":"https://api.github.com/users/yyc/repos","events_url":"https://api.github.com/users/yyc/events{/privacy}","received_events_url":"https://api.github.com/users/yyc/received_events","type":"User","site_admin":false},"labels":[{"id":456261529,"url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":{"login":"yyc","id":75352,"avatar_url":"https://avatars.githubusercontent.com/u/75352?v=3","gravatar_id":"","url":"https://api.github.com/users/yyc","html_url":"https://github.com/yyc","followers_url":"https://api.github.com/users/yyc/followers","following_url":"https://api.github.com/users/yyc/following{/other_user}","gists_url":"https://api.github.com/users/yyc/gists{/gist_id}","starred_url":"https://api.github.com/users/yyc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yyc/subscriptions","organizations_url":"https://api.github.com/users/yyc/orgs","repos_url":"https://api.github.com/users/yyc/repos","events_url":"https://api.github.com/users/yyc/events{/privacy}","received_events_url":"https://api.github.com/users/yyc/received_events","type":"User","site_admin":false},"assignees":[{"login":"yyc","id":75352,"avatar_url":"https://avatars.githubusercontent.com/u/75352?v=3","gravatar_id":"","url":"https://api.github.com/users/yyc","html_url":"https://github.com/yyc","followers_url":"https://api.github.com/users/yyc/followers","following_url":"https://api.github.com/users/yyc/following{/other_user}","gists_url":"https://api.github.com/users/yyc/gists{/gist_id}","starred_url":"https://api.github.com/users/yyc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yyc/subscriptions","organizations_url":"https://api.github.com/users/yyc/orgs","repos_url":"https://api.github.com/users/yyc/repos","events_url":"https://api.github.com/users/yyc/events{/privacy}","received_events_url":"https://api.github.com/users/yyc/received_events","type":"User","site_admin":false},{"login":"darrenwee","id":12949331,"avatar_url":"https://avatars.githubusercontent.com/u/12949331?v=3","gravatar_id":"","url":"https://api.github.com/users/darrenwee","html_url":"https://github.com/darrenwee","followers_url":"https://api.github.com/users/darrenwee/followers","following_url":"https://api.github.com/users/darrenwee/following{/other_user}","gists_url":"https://api.github.com/users/darrenwee/gists{/gist_id}","starred_url":"https://api.github.com/users/darrenwee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrenwee/subscriptions","organizations_url":"https://api.github.com/users/darrenwee/orgs","repos_url":"https://api.github.com/users/darrenwee/repos","events_url":"https://api.github.com/users/darrenwee/events{/privacy}","received_events_url":"https://api.github.com/users/darrenwee/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/milestones/5","html_url":"https://github.com/CS2103AUG2016-F11-C3/main/milestones/v0.5","labels_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/milestones/5/labels","id":2113849,"number":5,"title":"v0.5","description":null,"creator":{"login":"craaaa","id":12183503,"avatar_url":"https://avatars.githubusercontent.com/u/12183503?v=3","gravatar_id":"","url":"https://api.github.com/users/craaaa","html_url":"https://github.com/craaaa","followers_url":"https://api.github.com/users/craaaa/followers","following_url":"https://api.github.com/users/craaaa/following{/other_user}","gists_url":"https://api.github.com/users/craaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/craaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craaaa/subscriptions","organizations_url":"https://api.github.com/users/craaaa/orgs","repos_url":"https://api.github.com/users/craaaa/repos","events_url":"https://api.github.com/users/craaaa/events{/privacy}","received_events_url":"https://api.github.com/users/craaaa/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":14,"state":"open","created_at":"2016-11-04T03:48:31Z","updated_at":"2016-11-07T16:00:39Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-10-27T15:33:28Z","updated_at":"2016-11-07T16:00:39Z","closed_at":"2016-11-07T16:00:39Z","body":"Right now they don't, because there's no easy and efficient way to update all of the itemcards at their respective intervals. One possible way is to modify the extractPrettyDateTime to also return an estimated interval to wait before the time should be checked again, and then make each Item check against that.\nAn alternative is to have a \"ticking\" observer of sorts as a static object in Item, and every Item observes this object and refreshes the datetime when it does. This is quite inefficient, but not too difficult to implement.\n"}}
{"actor":{"display_login":"yyc"}}