{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/deployment-manager/issues/25","labels_url":"https://api.github.com/repos/kubernetes/deployment-manager/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/deployment-manager/issues/25/comments","events_url":"https://api.github.com/repos/kubernetes/deployment-manager/issues/25/events","html_url":"https://github.com/kubernetes/deployment-manager/issues/25","id":115620118,"number":25,"title":"Add support for shortened type names","user":{"login":"jackgr","id":5607565,"avatar_url":"https://avatars.githubusercontent.com/u/5607565?v=3","gravatar_id":"","url":"https://api.github.com/users/jackgr","html_url":"https://github.com/jackgr","followers_url":"https://api.github.com/users/jackgr/followers","following_url":"https://api.github.com/users/jackgr/following{/other_user}","gists_url":"https://api.github.com/users/jackgr/gists{/gist_id}","starred_url":"https://api.github.com/users/jackgr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackgr/subscriptions","organizations_url":"https://api.github.com/users/jackgr/orgs","repos_url":"https://api.github.com/users/jackgr/repos","events_url":"https://api.github.com/users/jackgr/events{/privacy}","received_events_url":"https://api.github.com/users/jackgr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/deployment-manager/labels/priority/P1","name":"priority/P1","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"vaikas-google","id":11279988,"avatar_url":"https://avatars.githubusercontent.com/u/11279988?v=3","gravatar_id":"","url":"https://api.github.com/users/vaikas-google","html_url":"https://github.com/vaikas-google","followers_url":"https://api.github.com/users/vaikas-google/followers","following_url":"https://api.github.com/users/vaikas-google/following{/other_user}","gists_url":"https://api.github.com/users/vaikas-google/gists{/gist_id}","starred_url":"https://api.github.com/users/vaikas-google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vaikas-google/subscriptions","organizations_url":"https://api.github.com/users/vaikas-google/orgs","repos_url":"https://api.github.com/users/vaikas-google/repos","events_url":"https://api.github.com/users/vaikas-google/events{/privacy}","received_events_url":"https://api.github.com/users/vaikas-google/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/kubernetes/deployment-manager/milestones/3","html_url":"https://github.com/kubernetes/deployment-manager/milestones/Sprint%2011","labels_url":"https://api.github.com/repos/kubernetes/deployment-manager/milestones/3/labels","id":1411879,"number":3,"title":"Sprint 11","description":"","creator":{"login":"jackgr","id":5607565,"avatar_url":"https://avatars.githubusercontent.com/u/5607565?v=3","gravatar_id":"","url":"https://api.github.com/users/jackgr","html_url":"https://github.com/jackgr","followers_url":"https://api.github.com/users/jackgr/followers","following_url":"https://api.github.com/users/jackgr/following{/other_user}","gists_url":"https://api.github.com/users/jackgr/gists{/gist_id}","starred_url":"https://api.github.com/users/jackgr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackgr/subscriptions","organizations_url":"https://api.github.com/users/jackgr/orgs","repos_url":"https://api.github.com/users/jackgr/repos","events_url":"https://api.github.com/users/jackgr/events{/privacy}","received_events_url":"https://api.github.com/users/jackgr/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":3,"state":"open","created_at":"2015-11-14T22:02:15Z","updated_at":"2015-11-25T21:39:00Z","due_on":"2015-12-07T08:00:00Z","closed_at":null},"comments":15,"created_at":"2015-11-07T00:53:44Z","updated_at":"2015-11-25T22:53:03Z","closed_at":null,"body":"Currently, we pull type definitions from URLs. We then use the URL as the type name in DM, which makes for awkward REST queries, since the URL must be encoded.\r\n\r\nA simpler approach would be to do what the go command does, and let the user specify well known registries by just their prefix (i.e., github.com, bitbucket.org, code.google.com, etc.). See go help importpath for details."},"comment":{"url":"https://api.github.com/repos/kubernetes/deployment-manager/issues/comments/159749645","html_url":"https://github.com/kubernetes/deployment-manager/issues/25#issuecomment-159749645","issue_url":"https://api.github.com/repos/kubernetes/deployment-manager/issues/25","id":159749645,"user":{"login":"vaikas-google","id":11279988,"avatar_url":"https://avatars.githubusercontent.com/u/11279988?v=3","gravatar_id":"","url":"https://api.github.com/users/vaikas-google","html_url":"https://github.com/vaikas-google","followers_url":"https://api.github.com/users/vaikas-google/followers","following_url":"https://api.github.com/users/vaikas-google/following{/other_user}","gists_url":"https://api.github.com/users/vaikas-google/gists{/gist_id}","starred_url":"https://api.github.com/users/vaikas-google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vaikas-google/subscriptions","organizations_url":"https://api.github.com/users/vaikas-google/orgs","repos_url":"https://api.github.com/users/vaikas-google/repos","events_url":"https://api.github.com/users/vaikas-google/events{/privacy}","received_events_url":"https://api.github.com/users/vaikas-google/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T22:53:03Z","updated_at":"2015-11-25T22:53:03Z","body":"I don't like assuming github (well, actually assuming the missing repo\nspecifies this) given the new found limitations with rates, etc. Seems more\nprudent to just have github.com there and be more futureproof. Just like\nwith go, it seems better to just plan for future repos rather than assume\nit's github.com if omitted. It's harder to add it back in later than just\nassume it has to be there from the get-go.\n\nOn Wed, Nov 25, 2015 at 2:46 PM, Jack Greenfield <notifications@github.com>\nwrote:\n\n> While we're at it... here's one more idea.\n>\n> Since we default to Github, why not assume it for any type reference that\n> isn't a complete URL (i.e., that doesn't have a schema component and a host\n> component)?\n>\n> So, the example above becomes:\n> kubernetes/application-dm-templates/storage/redis:v1.\n>\n> Note that we can still pull from any repository addressable by a URL by\n> specifying a complete URL. We simply make it easier to pull from Github\n> than from anywhere else, since that's the repository we expect to use the\n> most.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/kubernetes/deployment-manager/issues/25#issuecomment-159748602>\n> .\n>\n"}}