{"action":"created","issue":{"url":"https://api.github.com/repos/nextcloud/server/issues/292","repository_url":"https://api.github.com/repos/nextcloud/server","labels_url":"https://api.github.com/repos/nextcloud/server/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/server/issues/292/comments","events_url":"https://api.github.com/repos/nextcloud/server/issues/292/events","html_url":"https://github.com/nextcloud/server/pull/292","id":163516609,"number":292,"title":"Add \"Recent\" file listing","user":{"login":"icewind1991","id":1283854,"avatar_url":"https://avatars.githubusercontent.com/u/1283854?v=3","gravatar_id":"","url":"https://api.github.com/users/icewind1991","html_url":"https://github.com/icewind1991","followers_url":"https://api.github.com/users/icewind1991/followers","following_url":"https://api.github.com/users/icewind1991/following{/other_user}","gists_url":"https://api.github.com/users/icewind1991/gists{/gist_id}","starred_url":"https://api.github.com/users/icewind1991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icewind1991/subscriptions","organizations_url":"https://api.github.com/users/icewind1991/orgs","repos_url":"https://api.github.com/users/icewind1991/repos","events_url":"https://api.github.com/users/icewind1991/events{/privacy}","received_events_url":"https://api.github.com/users/icewind1991/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nextcloud/server/labels/4.%20to%20release","name":"4. to release","color":"0052cc"},{"url":"https://api.github.com/repos/nextcloud/server/labels/enhancement","name":"enhancement","color":"0e8a16"},{"url":"https://api.github.com/repos/nextcloud/server/labels/feature:%20files","name":"feature: files","color":"c2e0c6"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/nextcloud/server/milestones/2","html_url":"https://github.com/nextcloud/server/milestones/Nextcloud%2010.0","labels_url":"https://api.github.com/repos/nextcloud/server/milestones/2/labels","id":1812017,"number":2,"title":"Nextcloud 10.0","description":"","creator":{"login":"jancborchardt","id":925062,"avatar_url":"https://avatars.githubusercontent.com/u/925062?v=3","gravatar_id":"","url":"https://api.github.com/users/jancborchardt","html_url":"https://github.com/jancborchardt","followers_url":"https://api.github.com/users/jancborchardt/followers","following_url":"https://api.github.com/users/jancborchardt/following{/other_user}","gists_url":"https://api.github.com/users/jancborchardt/gists{/gist_id}","starred_url":"https://api.github.com/users/jancborchardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jancborchardt/subscriptions","organizations_url":"https://api.github.com/users/jancborchardt/orgs","repos_url":"https://api.github.com/users/jancborchardt/repos","events_url":"https://api.github.com/users/jancborchardt/events{/privacy}","received_events_url":"https://api.github.com/users/jancborchardt/received_events","type":"User","site_admin":false},"open_issues":24,"closed_issues":202,"state":"open","created_at":"2016-06-06T21:28:18Z","updated_at":"2016-07-25T14:25:02Z","due_on":null,"closed_at":null},"comments":33,"created_at":"2016-07-02T12:31:55Z","updated_at":"2016-07-25T18:36:04Z","closed_at":"2016-07-25T14:25:02Z","pull_request":{"url":"https://api.github.com/repos/nextcloud/server/pulls/292","html_url":"https://github.com/nextcloud/server/pull/292","diff_url":"https://github.com/nextcloud/server/pull/292.diff","patch_url":"https://github.com/nextcloud/server/pull/292.patch"},"body":"Show a list of recently modified files and folders\r\n\r\n![recent](https://i.imgur.com/pqnCkw0.png)\r\n\r\n### On showing folders ###\r\n\r\nHow to show folders in the list is the most complex part of this PR, since the mtime (both on disk and in cache) of a folder gets changed when a file in the folder is modified simply just showing folders in the same way as files would result in the parent folder being shown together with the most recently changed file in that folder.\r\n\r\nIdeally we would show folders based on their creation time but unfortunately we don't save that information, instead this PR uses the modified date of the least recently changed file in the folder which isn't perfect (especially for folders containing a single file) but it works decently.\r\n\r\nI could also be better to hide most folders altogether in most cases\r\n\r\n### On hiding folder contents ###\r\n\r\nAnother thing I was thinking about to make the recent list more useful is hiding the contents of newly uploaded folders, currently if you upload a large folder the contents of it will take over the entire recents list.\r\nInstead it would be nice if the recents list would only show the newly uploaded folder, with the newly uploaded contents being implicitly grouped in the folder.\r\n\r\n### Further work (maybe for nc+1) ###\r\n\r\n- [x] unit tests\r\n- [ ] make the list as useful as possible\r\n - [ ] maybe hide folders where they don't add value\r\n - [ ] hide content of folders where they don't add value\r\n- [x] Icon for the files sidebar\r\n- [ ] Maybe allow specifying the range mtimes to be searched for (show me files modified 2 days ago)\r\n\r\ncc @jancborchardt @LukasReschke "},"comment":{"url":"https://api.github.com/repos/nextcloud/server/issues/comments/235043420","html_url":"https://github.com/nextcloud/server/pull/292#issuecomment-235043420","issue_url":"https://api.github.com/repos/nextcloud/server/issues/292","id":235043420,"user":{"login":"mar1u5","id":19711361,"avatar_url":"https://avatars.githubusercontent.com/u/19711361?v=3","gravatar_id":"","url":"https://api.github.com/users/mar1u5","html_url":"https://github.com/mar1u5","followers_url":"https://api.github.com/users/mar1u5/followers","following_url":"https://api.github.com/users/mar1u5/following{/other_user}","gists_url":"https://api.github.com/users/mar1u5/gists{/gist_id}","starred_url":"https://api.github.com/users/mar1u5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mar1u5/subscriptions","organizations_url":"https://api.github.com/users/mar1u5/orgs","repos_url":"https://api.github.com/users/mar1u5/repos","events_url":"https://api.github.com/users/mar1u5/events{/privacy}","received_events_url":"https://api.github.com/users/mar1u5/received_events","type":"User","site_admin":false},"created_at":"2016-07-25T18:36:04Z","updated_at":"2016-07-25T18:36:04Z","body":"Is this something we want to have for Nextcloud 10? @karlitschek "}}
{"actor":{"display_login":"mar1u5"}}