{"action":"created","issue":{"url":"https://api.github.com/repos/amol-/depot/issues/5","repository_url":"https://api.github.com/repos/amol-/depot","labels_url":"https://api.github.com/repos/amol-/depot/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/amol-/depot/issues/5/comments","events_url":"https://api.github.com/repos/amol-/depot/issues/5/events","html_url":"https://github.com/amol-/depot/issues/5","id":63038414,"number":5,"title":"file_id generation customization","user":{"login":"glibersat","id":262663,"avatar_url":"https://avatars1.githubusercontent.com/u/262663?v=3","gravatar_id":"","url":"https://api.github.com/users/glibersat","html_url":"https://github.com/glibersat","followers_url":"https://api.github.com/users/glibersat/followers","following_url":"https://api.github.com/users/glibersat/following{/other_user}","gists_url":"https://api.github.com/users/glibersat/gists{/gist_id}","starred_url":"https://api.github.com/users/glibersat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glibersat/subscriptions","organizations_url":"https://api.github.com/users/glibersat/orgs","repos_url":"https://api.github.com/users/glibersat/repos","events_url":"https://api.github.com/users/glibersat/events{/privacy}","received_events_url":"https://api.github.com/users/glibersat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2015-03-19T17:04:23Z","updated_at":"2017-03-01T22:45:54Z","closed_at":null,"body":"Hi,\n\nFirst, thanks for this awesome library, it fits almost everything I need except one use case.\n\nI have a mixed tree of static and dynamic files:\n\n```\nhttp://ex.com/x/y/z1 can be a dynamic object (my logic here)\nhttp://ex.com/x/y/z2 can be a static picture (static serving using filedepot lookup)\n```\n\nTherefore, I need to lookup the static files by their request path (eg. /x/y/z2 --their actual URI ID). \nWhen using `create()`, `file_id` is generated by an arbitrary uuid, there I can't use `get()` to look up by their URI ID.\nWould it be possible to allow overriding the way `file_id` is generated so i could compute it using the URI ?\n\nThanks,\n\nGuillaume\n"},"comment":{"url":"https://api.github.com/repos/amol-/depot/issues/comments/283496235","html_url":"https://github.com/amol-/depot/issues/5#issuecomment-283496235","issue_url":"https://api.github.com/repos/amol-/depot/issues/5","id":283496235,"user":{"login":"vlcinsky","id":635911,"avatar_url":"https://avatars0.githubusercontent.com/u/635911?v=3","gravatar_id":"","url":"https://api.github.com/users/vlcinsky","html_url":"https://github.com/vlcinsky","followers_url":"https://api.github.com/users/vlcinsky/followers","following_url":"https://api.github.com/users/vlcinsky/following{/other_user}","gists_url":"https://api.github.com/users/vlcinsky/gists{/gist_id}","starred_url":"https://api.github.com/users/vlcinsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlcinsky/subscriptions","organizations_url":"https://api.github.com/users/vlcinsky/orgs","repos_url":"https://api.github.com/users/vlcinsky/repos","events_url":"https://api.github.com/users/vlcinsky/events{/privacy}","received_events_url":"https://api.github.com/users/vlcinsky/received_events","type":"User","site_admin":false},"created_at":"2017-03-01T22:45:54Z","updated_at":"2017-03-01T22:45:54Z","body":"@iurisilvio There is almost no limit in number of items stored in S3 bucket. It will perform well without any problem if you have large amount of items in one (virtual) bucket directory, one cannot compare it to what would happen on local file system which suffers a lot if number of items in one directory goes too far.\r\n\r\nPersonally I do not feel putting any logic into file_id is a good idea. One rule for modelling data tells, one shall not put any logic into object identifier."}}
{"actor":{"display_login":"vlcinsky"}}