{"action":"created","issue":{"url":"https://api.github.com/repos/unee-t/frontend/issues/424","repository_url":"https://api.github.com/repos/unee-t/frontend","labels_url":"https://api.github.com/repos/unee-t/frontend/issues/424/labels{/name}","comments_url":"https://api.github.com/repos/unee-t/frontend/issues/424/comments","events_url":"https://api.github.com/repos/unee-t/frontend/issues/424/events","html_url":"https://github.com/unee-t/frontend/pull/424","id":346041385,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1MDAwNDYy","number":424,"title":"wip: editUnitField","user":{"login":"sophieyang0813","id":25441733,"node_id":"MDQ6VXNlcjI1NDQxNzMz","avatar_url":"https://avatars1.githubusercontent.com/u/25441733?v=4","gravatar_id":"","url":"https://api.github.com/users/sophieyang0813","html_url":"https://github.com/sophieyang0813","followers_url":"https://api.github.com/users/sophieyang0813/followers","following_url":"https://api.github.com/users/sophieyang0813/following{/other_user}","gists_url":"https://api.github.com/users/sophieyang0813/gists{/gist_id}","starred_url":"https://api.github.com/users/sophieyang0813/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sophieyang0813/subscriptions","organizations_url":"https://api.github.com/users/sophieyang0813/orgs","repos_url":"https://api.github.com/users/sophieyang0813/repos","events_url":"https://api.github.com/users/sophieyang0813/events{/privacy}","received_events_url":"https://api.github.com/users/sophieyang0813/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-31T05:34:05Z","updated_at":"2018-07-31T18:28:44Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/unee-t/frontend/pulls/424","html_url":"https://github.com/unee-t/frontend/pull/424","diff_url":"https://github.com/unee-t/frontend/pull/424.diff","patch_url":"https://github.com/unee-t/frontend/pull/424.patch"},"body":"@nbiton Afternoon! I have a question regarding to editable fields in Unit/Overview #352. Upon editing, Bugzilla raises an error that user does not have the special permission to edit. \r\n![image](https://user-images.githubusercontent.com/25441733/43439350-6a3eba8a-94c5-11e8-8d1d-fb999a29e903.png)\r\n\r\nTo write editUnitField code, I referred to editCaseField. First, I created edit unit field action and action creator in unit.actions.js. Second, I included this action in root-epic.js which I see as a reducer equivalent and which is a part of createStore in store.js. Editable item in unit overview can dispatch the action. Third, I wrote under Meteor method [`${collectionName}.editUnitField`]. I am stuck at this stage of writing meteor server code. When calling API, I chose `/rest/product` because unit-overview referred to .byIdWithUsers in CreateContainer.\r\n\r\nIs this a right approach? if yes, how can I grant a user a permission to edit? if no, could you kindly point me to a right diretion? Thank you so much!!   \r\n"},"comment":{"url":"https://api.github.com/repos/unee-t/frontend/issues/comments/409321899","html_url":"https://github.com/unee-t/frontend/pull/424#issuecomment-409321899","issue_url":"https://api.github.com/repos/unee-t/frontend/issues/424","id":409321899,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTMyMTg5OQ==","user":{"login":"franck-boullier","id":31331637,"node_id":"MDQ6VXNlcjMxMzMxNjM3","avatar_url":"https://avatars0.githubusercontent.com/u/31331637?v=4","gravatar_id":"","url":"https://api.github.com/users/franck-boullier","html_url":"https://github.com/franck-boullier","followers_url":"https://api.github.com/users/franck-boullier/followers","following_url":"https://api.github.com/users/franck-boullier/following{/other_user}","gists_url":"https://api.github.com/users/franck-boullier/gists{/gist_id}","starred_url":"https://api.github.com/users/franck-boullier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franck-boullier/subscriptions","organizations_url":"https://api.github.com/users/franck-boullier/orgs","repos_url":"https://api.github.com/users/franck-boullier/repos","events_url":"https://api.github.com/users/franck-boullier/events{/privacy}","received_events_url":"https://api.github.com/users/franck-boullier/received_events","type":"User","site_admin":false},"created_at":"2018-07-31T18:28:44Z","updated_at":"2018-07-31T18:28:44Z","author_association":"MEMBER","body":"> Is there any fields that user should not be able to edit in Unit-Overview? In this commit, all fields (Unit name, Unit type, Additional description, Address, City, Country, State, and Zip/Postal Code) except Unit groups are editable\r\n\r\nExcellent, this is the expected behavior\r\n\r\n> I am looking into implementing editable drop-down menus for 'Unit Type' and 'Country'. Currently, country name and unit type have to be manually typed out.\r\n\r\nYou should implement the same thing for unit modification as we have for Unit creation\r\n- `Unit Type` should be a drop down (so user can see the list of options he/she can choose from)\r\n- `Country` should NOT be a drop down (see #387)"}}
{"actor":{"display_login":"franck-boullier"}}