{"action":"created","issue":{"url":"https://api.github.com/repos/pingcap/pd/issues/44","repository_url":"https://api.github.com/repos/pingcap/pd","labels_url":"https://api.github.com/repos/pingcap/pd/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/pingcap/pd/issues/44/comments","events_url":"https://api.github.com/repos/pingcap/pd/issues/44/events","html_url":"https://github.com/pingcap/pd/issues/44","id":143766141,"number":44,"title":"support get region by id","user":{"login":"siddontang","id":1080370,"avatar_url":"https://avatars.githubusercontent.com/u/1080370?v=3","gravatar_id":"","url":"https://api.github.com/users/siddontang","html_url":"https://github.com/siddontang","followers_url":"https://api.github.com/users/siddontang/followers","following_url":"https://api.github.com/users/siddontang/following{/other_user}","gists_url":"https://api.github.com/users/siddontang/gists{/gist_id}","starred_url":"https://api.github.com/users/siddontang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siddontang/subscriptions","organizations_url":"https://api.github.com/users/siddontang/orgs","repos_url":"https://api.github.com/users/siddontang/repos","events_url":"https://api.github.com/users/siddontang/events{/privacy}","received_events_url":"https://api.github.com/users/siddontang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-03-27T01:21:43Z","updated_at":"2016-07-04T03:12:33Z","closed_at":"2016-07-04T03:12:33Z","body":"now we only support get region by key, I think sometimes we may need get region by region id too.\r\nIf support, we should add a proto in pdpb.proto, maybe in GetMeta is OK, like \r\n```\r\nmessage GetMetaRequest {\r\n    optional MetaType meta_type    = 1;\r\n    optional uint64 node_id        = 2;\r\n    optional uint64 store_id       = 3;\r\n    optional bytes region_key      = 4;\r\n    optional uint64 cluster_id     = 5;\r\n    optional uint64 region_id    = 6;\r\n}\r\n```\r\n\r\nIf the meta_type is Region and region_key is set, we will use get region, or else region_id is set, we will use get region by id. \r\n\r\n@qiuyesuifeng "},"comment":{"url":"https://api.github.com/repos/pingcap/pd/issues/comments/230196762","html_url":"https://github.com/pingcap/pd/issues/44#issuecomment-230196762","issue_url":"https://api.github.com/repos/pingcap/pd/issues/44","id":230196762,"user":{"login":"qiuyesuifeng","id":1953644,"avatar_url":"https://avatars.githubusercontent.com/u/1953644?v=3","gravatar_id":"","url":"https://api.github.com/users/qiuyesuifeng","html_url":"https://github.com/qiuyesuifeng","followers_url":"https://api.github.com/users/qiuyesuifeng/followers","following_url":"https://api.github.com/users/qiuyesuifeng/following{/other_user}","gists_url":"https://api.github.com/users/qiuyesuifeng/gists{/gist_id}","starred_url":"https://api.github.com/users/qiuyesuifeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiuyesuifeng/subscriptions","organizations_url":"https://api.github.com/users/qiuyesuifeng/orgs","repos_url":"https://api.github.com/users/qiuyesuifeng/repos","events_url":"https://api.github.com/users/qiuyesuifeng/events{/privacy}","received_events_url":"https://api.github.com/users/qiuyesuifeng/received_events","type":"User","site_admin":false},"created_at":"2016-07-04T03:12:33Z","updated_at":"2016-07-04T03:12:33Z","body":"No need now, close it."}}
{"actor":{"display_login":"qiuyesuifeng"}}