{"action":"opened","issue":{"url":"https://api.github.com/repos/kubeflow/katib/issues/371","repository_url":"https://api.github.com/repos/kubeflow/katib","labels_url":"https://api.github.com/repos/kubeflow/katib/issues/371/labels{/name}","comments_url":"https://api.github.com/repos/kubeflow/katib/issues/371/comments","events_url":"https://api.github.com/repos/kubeflow/katib/issues/371/events","html_url":"https://github.com/kubeflow/katib/issues/371","id":409322131,"node_id":"MDU6SXNzdWU0MDkzMjIxMzE=","number":371,"title":"unify api/studyjob field whose type is array in v1alpha2 API version","user":{"login":"hougangliu","id":10126721,"node_id":"MDQ6VXNlcjEwMTI2NzIx","avatar_url":"https://avatars1.githubusercontent.com/u/10126721?v=4","gravatar_id":"","url":"https://api.github.com/users/hougangliu","html_url":"https://github.com/hougangliu","followers_url":"https://api.github.com/users/hougangliu/followers","following_url":"https://api.github.com/users/hougangliu/following{/other_user}","gists_url":"https://api.github.com/users/hougangliu/gists{/gist_id}","starred_url":"https://api.github.com/users/hougangliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hougangliu/subscriptions","organizations_url":"https://api.github.com/users/hougangliu/orgs","repos_url":"https://api.github.com/users/hougangliu/repos","events_url":"https://api.github.com/users/hougangliu/events{/privacy}","received_events_url":"https://api.github.com/users/hougangliu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-02-12T14:18:25Z","updated_at":"2019-02-12T14:18:25Z","closed_at":null,"author_association":"MEMBER","body":"now we have some API/filed whose type is array, some of them are named with plural type and some are named with List-suffix (such as below). I think we should name them with same style in v1alpha2 API.\r\n\r\nrpc GetStudyList(GetStudyListRequest) returns (GetStudyListReply)\r\nrpc GetTrials(GetTrialsRequest) returns (GetTrialsReply)\r\n\r\ntype StudyJobStatus struct {\r\n...\r\n**Trials []TrialSet `json:\"trials,omitempty\"`**\r\n...\r\n}\r\ntype TrialSet struct {\r\nTrialID string `json:\"trialid,omitempty\"`\r\n**WorkerList []WorkerCondition `json:\"workeridlist,omitempty\"`**\r\n}"}}
{"actor":{"display_login":"hougangliu"}}