{"action":"closed","issue":{"url":"https://api.github.com/repos/loklak/loklak_webclient/issues/36","labels_url":"https://api.github.com/repos/loklak/loklak_webclient/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/loklak/loklak_webclient/issues/36/comments","events_url":"https://api.github.com/repos/loklak/loklak_webclient/issues/36/events","html_url":"https://github.com/loklak/loklak_webclient/issues/36","id":73649456,"number":36,"title":"refresh the timeline in the wall","user":{"login":"Orbiter","id":238730,"avatar_url":"https://avatars.githubusercontent.com/u/238730?v=3","gravatar_id":"","url":"https://api.github.com/users/Orbiter","html_url":"https://github.com/Orbiter","followers_url":"https://api.github.com/users/Orbiter/followers","following_url":"https://api.github.com/users/Orbiter/following{/other_user}","gists_url":"https://api.github.com/users/Orbiter/gists{/gist_id}","starred_url":"https://api.github.com/users/Orbiter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Orbiter/subscriptions","organizations_url":"https://api.github.com/users/Orbiter/orgs","repos_url":"https://api.github.com/users/Orbiter/repos","events_url":"https://api.github.com/users/Orbiter/events{/privacy}","received_events_url":"https://api.github.com/users/Orbiter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/loklak/loklak_webclient/labels/Feature","name":"Feature","color":"5319e7"},{"url":"https://api.github.com/repos/loklak/loklak_webclient/labels/Priority%201%20-%20High","name":"Priority 1 - High","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-06T15:03:25Z","updated_at":"2015-05-16T18:08:48Z","closed_at":"2015-05-16T18:08:48Z","body":"This feature is part of the milestone target at https://groups.google.com/forum/#!msg/loklak/7azwyuslmTU/q9ueCSgwjZUJ\r\nBecause this feature changes the content of the top-tweet, it is based on the feature https://github.com/loklak/loklak_webclient/issues/32\r\n\r\nThe wall shall re-load itself. The refresh period shall be based on the number, given in the search result json search_metadata.period which is the average time between tweets in milliseconds. The refresh time shall be\r\n20 seconds if period is > 30000\r\n0.7 * period if period is <= 30000\r\n5 seconds if period is < 7000\r\n\r\nAn update period below 5 is very rare and we don't want to put the scraping frequency on twitter too high.\r\n\r\nThe refresh method must compare the previous list with the new one and identify the number of tweets which are new. For each new tweet, there shall be an update animation:\r\n- replace the top tweet by the new one\r\n- add the previous top tweet to the timeline below, which shall be moved smoothly downwards\r\n- wait at least three seconds before doing this again with the next new tweet.\r\n"}}