{"action":"closed","issue":{"url":"https://api.github.com/repos/informatics-isi-edu/ermrest/issues/91","repository_url":"https://api.github.com/repos/informatics-isi-edu/ermrest","labels_url":"https://api.github.com/repos/informatics-isi-edu/ermrest/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/informatics-isi-edu/ermrest/issues/91/comments","events_url":"https://api.github.com/repos/informatics-isi-edu/ermrest/issues/91/events","html_url":"https://github.com/informatics-isi-edu/ermrest/issues/91","id":167985293,"number":91,"title":"Unable to add \"comment\" to Keys while table creation and ForeignKeys creation","user":{"login":"chiragsanghvi","id":1658152,"avatar_url":"https://avatars.githubusercontent.com/u/1658152?v=3","gravatar_id":"","url":"https://api.github.com/users/chiragsanghvi","html_url":"https://github.com/chiragsanghvi","followers_url":"https://api.github.com/users/chiragsanghvi/followers","following_url":"https://api.github.com/users/chiragsanghvi/following{/other_user}","gists_url":"https://api.github.com/users/chiragsanghvi/gists{/gist_id}","starred_url":"https://api.github.com/users/chiragsanghvi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chiragsanghvi/subscriptions","organizations_url":"https://api.github.com/users/chiragsanghvi/orgs","repos_url":"https://api.github.com/users/chiragsanghvi/repos","events_url":"https://api.github.com/users/chiragsanghvi/events{/privacy}","received_events_url":"https://api.github.com/users/chiragsanghvi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-28T00:09:22Z","updated_at":"2016-07-28T18:07:11Z","closed_at":"2016-07-28T18:07:11Z","body":"@karlcz @hongsudt \r\n\r\nWhen you try creating a table with **comment** value set in some keys, the API doesn't returns the **comment** in GET request.\r\n\r\n```json\r\n\r\nRequest URL: https://dev.isrd.isi.edu/ermrest/catalog/2441/schema/product/table\r\nRequest Method: POST\r\n\r\n {\r\n      \"comment\": \"domain\", \r\n      \"kind\": \"table\", \r\n      \"keys\": [\r\n        {\r\n          \"comment\": \"some comment\", \r\n          \"annotations\": {}, \r\n          \"unique_columns\": [\r\n            \"id\"\r\n          ]\r\n        }\r\n      ], \r\n      \"foreign_keys\": [], \r\n      \"table_name\": \"category\", \r\n      \"schema_name\": \"product\", \r\n      \"column_definitions\": [\r\n        {\r\n          \"comment\": null, \r\n          \"name\": \"id\", \r\n          \"default\": null, \r\n          \"nullok\": false, \r\n          \"type\": {\r\n            \"typename\": \"int4\"\r\n          }, \r\n          \"annotations\": {}\r\n        }\r\n      ], \r\n      \"annotations\": { }\r\n }\r\n```\r\n\r\nThe same doesn't works while foreign key creation too."}}
{"actor":{"display_login":"chiragsanghvi"}}