{"action":"created","issue":{"url":"https://api.github.com/repos/ckan/ckan/issues/1518","labels_url":"https://api.github.com/repos/ckan/ckan/issues/1518/labels{/name}","comments_url":"https://api.github.com/repos/ckan/ckan/issues/1518/comments","events_url":"https://api.github.com/repos/ckan/ckan/issues/1518/events","html_url":"https://github.com/ckan/ckan/issues/1518","id":27722861,"number":1518,"title":"Resource URIs are too long","user":{"login":"wardi","id":153258,"avatar_url":"https://avatars.githubusercontent.com/u/153258?v=3","gravatar_id":"","url":"https://api.github.com/users/wardi","html_url":"https://github.com/wardi","followers_url":"https://api.github.com/users/wardi/followers","following_url":"https://api.github.com/users/wardi/following{/other_user}","gists_url":"https://api.github.com/users/wardi/gists{/gist_id}","starred_url":"https://api.github.com/users/wardi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wardi/subscriptions","organizations_url":"https://api.github.com/users/wardi/orgs","repos_url":"https://api.github.com/users/wardi/repos","events_url":"https://api.github.com/users/wardi/events{/privacy}","received_events_url":"https://api.github.com/users/wardi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ckan/ckan/milestones/6","html_url":"https://github.com/ckan/ckan/milestones/CKAN%202.4%20(old)","labels_url":"https://api.github.com/repos/ckan/ckan/milestones/6/labels","id":834156,"number":6,"title":"CKAN 2.4 (old)","description":"","creator":{"login":"amercader","id":200230,"avatar_url":"https://avatars.githubusercontent.com/u/200230?v=3","gravatar_id":"","url":"https://api.github.com/users/amercader","html_url":"https://github.com/amercader","followers_url":"https://api.github.com/users/amercader/followers","following_url":"https://api.github.com/users/amercader/following{/other_user}","gists_url":"https://api.github.com/users/amercader/gists{/gist_id}","starred_url":"https://api.github.com/users/amercader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amercader/subscriptions","organizations_url":"https://api.github.com/users/amercader/orgs","repos_url":"https://api.github.com/users/amercader/repos","events_url":"https://api.github.com/users/amercader/events{/privacy}","received_events_url":"https://api.github.com/users/amercader/received_events","type":"User","site_admin":false},"open_issues":100,"closed_issues":47,"state":"open","created_at":"2014-10-21T10:10:31Z","updated_at":"2015-11-18T09:55:44Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2014-02-17T14:37:40Z","updated_at":"2015-12-15T07:17:03Z","closed_at":null,"body":"[edit] Resource IDs are unique, so why do we have really long URLs with both the dataset id and resource id?"},"comment":{"url":"https://api.github.com/repos/ckan/ckan/issues/comments/164667001","html_url":"https://github.com/ckan/ckan/issues/1518#issuecomment-164667001","issue_url":"https://api.github.com/repos/ckan/ckan/issues/1518","id":164667001,"user":{"login":"dportoles","id":8052172,"avatar_url":"https://avatars.githubusercontent.com/u/8052172?v=3","gravatar_id":"","url":"https://api.github.com/users/dportoles","html_url":"https://github.com/dportoles","followers_url":"https://api.github.com/users/dportoles/followers","following_url":"https://api.github.com/users/dportoles/following{/other_user}","gists_url":"https://api.github.com/users/dportoles/gists{/gist_id}","starred_url":"https://api.github.com/users/dportoles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dportoles/subscriptions","organizations_url":"https://api.github.com/users/dportoles/orgs","repos_url":"https://api.github.com/users/dportoles/repos","events_url":"https://api.github.com/users/dportoles/events{/privacy}","received_events_url":"https://api.github.com/users/dportoles/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T07:17:03Z","updated_at":"2015-12-15T07:17:03Z","body":"FYI: \r\nI've done some changes for having URLs like: \r\n<code>/dataset/dataset-name/format-name/current-position-format</code>\r\n\r\nE.g. \r\n<code>/dataset/interesting-things/CSV/3</code>\r\n<code>/dataset/interesting-things/CSV  ==> /dataset/interesting-things/CSV/1</code>\r\n\r\n* Each resource holds the current position of its format in the package. This value is unique. For most cases, it's 1\r\n* Package holds max current position for each format. These values are never reused for maintaining previous revisions.\r\n* Changes on routing.py are also needed\r\n\r\nIf someone is interested in this approach, please let me know"}}