{"action":"created","comment":{"url":"https://api.github.com/repos/dod-ccpo/atst/pulls/comments/219175627","pull_request_review_id":156955384,"id":219175627,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxOTE3NTYyNw==","diff_hunk":"@@ -0,0 +1,40 @@\n+import FormMixin from '../../mixins/form'\n+import textinput from '../text_input'\n+import Selector from '../selector'\n+import Modal from '../../mixins/modal'\n+import toggler from '../toggler'\n+\n+export default {\n+  name: 'edit-workspace-member',\n+\n+  mixins: [FormMixin, Modal],\n+\n+  components: {\n+    toggler,\n+    Modal,\n+    Selector,\n+    textinput\n+  },\n+\n+  props: {\n+    choices: Array,\n+    initialData: String\n+  },\n+\n+  data: function () {\n+    return { value: this.initialData }\n+  },\n+\n+  methods: {\n+    change: function (e) {\n+      this.value = e.target.value\n+    },\n+    readableName: function (role) {\n+      return role.replace(/[_]/g, \" \")\n+    },\n+  },\n+\n+  mounted: function () {\n+    console.log(this.initialData, this.choices)","path":"js/components/forms/edit_workspace_member.js","position":38,"original_position":38,"commit_id":"c4c56f683a22569c1d1ae1c64b19e5482491dc30","original_commit_id":"c4c56f683a22569c1d1ae1c64b19e5482491dc30","user":{"login":"patricksmithdds","id":40774582,"node_id":"MDQ6VXNlcjQwNzc0NTgy","avatar_url":"https://avatars3.githubusercontent.com/u/40774582?v=4","gravatar_id":"","url":"https://api.github.com/users/patricksmithdds","html_url":"https://github.com/patricksmithdds","followers_url":"https://api.github.com/users/patricksmithdds/followers","following_url":"https://api.github.com/users/patricksmithdds/following{/other_user}","gists_url":"https://api.github.com/users/patricksmithdds/gists{/gist_id}","starred_url":"https://api.github.com/users/patricksmithdds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patricksmithdds/subscriptions","organizations_url":"https://api.github.com/users/patricksmithdds/orgs","repos_url":"https://api.github.com/users/patricksmithdds/repos","events_url":"https://api.github.com/users/patricksmithdds/events{/privacy}","received_events_url":"https://api.github.com/users/patricksmithdds/received_events","type":"User","site_admin":false},"body":"We can yank this out.","created_at":"2018-09-20T14:02:51Z","updated_at":"2018-09-20T14:28:02Z","html_url":"https://github.com/dod-ccpo/atst/pull/304#discussion_r219175627","pull_request_url":"https://api.github.com/repos/dod-ccpo/atst/pulls/304","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/dod-ccpo/atst/pulls/comments/219175627"},"html":{"href":"https://github.com/dod-ccpo/atst/pull/304#discussion_r219175627"},"pull_request":{"href":"https://api.github.com/repos/dod-ccpo/atst/pulls/304"}}},"pull_request":{"url":"https://api.github.com/repos/dod-ccpo/atst/pulls/304","id":216701188,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2NzAxMTg4","html_url":"https://github.com/dod-ccpo/atst/pull/304","diff_url":"https://github.com/dod-ccpo/atst/pull/304.diff","patch_url":"https://github.com/dod-ccpo/atst/pull/304.patch","issue_url":"https://api.github.com/repos/dod-ccpo/atst/issues/304","number":304,"state":"open","locked":false,"title":"Assign and Update Environment Roles for Workspace Users","user":{"login":"montana-mil","id":42577527,"node_id":"MDQ6VXNlcjQyNTc3NTI3","avatar_url":"https://avatars2.githubusercontent.com/u/42577527?v=4","gravatar_id":"","url":"https://api.github.com/users/montana-mil","html_url":"https://github.com/montana-mil","followers_url":"https://api.github.com/users/montana-mil/followers","following_url":"https://api.github.com/users/montana-mil/following{/other_user}","gists_url":"https://api.github.com/users/montana-mil/gists{/gist_id}","starred_url":"https://api.github.com/users/montana-mil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/montana-mil/subscriptions","organizations_url":"https://api.github.com/users/montana-mil/orgs","repos_url":"https://api.github.com/users/montana-mil/repos","events_url":"https://api.github.com/users/montana-mil/events{/privacy}","received_events_url":"https://api.github.com/users/montana-mil/received_events","type":"User","site_admin":false},"body":"## Description\r\n - Users with permissions to edit workspace users can now assign and update their workspace users' environment roles on each project (and each environment on the project).\r\n - The data that fills out the modal for setting environment roles comes from `data.py`. In order to get access to that data, it is passed into the form as `choices` under the `environment_role` portion of the `EditMemberForm`. This approach was the result of trying some solution to a different part of this story that eventually got taken care of elsewhere in another way, so I have the impression that this is not the best approach for giving the template access to choices. Maybe from the route directly would be better?\r\n - Each environment has its own modal in order to capture environment role changes to multiple environments.\r\n - When a new environment role is chosen, the displayed environment role is updated. Note that the environment role is not actually updated until the user presses `Save`. Note also that if a selection was made, the displayed role will show that selection, even if `Cancel` was pressed on the modal. \r\n - This PR also wires up the edit member template to use the user's real data instead of hardcoded example data.\r\n - As a result of some strangeness from rebasing, the `local_datetime.js` was somehow deleted and needed to be added here again.\r\n\r\n## Pivotal Tracker\r\nhttps://www.pivotaltracker.com/story/show/158072276\r\n\r\n## Screenshots\r\n![screen shot 2018-09-19 at 2 49 40 pm](https://user-images.githubusercontent.com/42577527/45774768-d9dbce00-bc1b-11e8-86db-c777a84b0cc5.png)\r\n![screen shot 2018-09-19 at 2 49 48 pm](https://user-images.githubusercontent.com/42577527/45774769-d9dbce00-bc1b-11e8-9ccb-cdc2109ba6f4.png)\r\n","created_at":"2018-09-19T16:26:40Z","updated_at":"2018-09-20T14:28:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"add0e5ddda35e0dbce04758b4c024f86a8721bd8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":962581416,"node_id":"MDU6TGFiZWw5NjI1ODE0MTY=","url":"https://api.github.com/repos/dod-ccpo/atst/labels/WIP","name":"WIP","color":"efb169","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/dod-ccpo/atst/pulls/304/commits","review_comments_url":"https://api.github.com/repos/dod-ccpo/atst/pulls/304/comments","review_comment_url":"https://api.github.com/repos/dod-ccpo/atst/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dod-ccpo/atst/issues/304/comments","statuses_url":"https://api.github.com/repos/dod-ccpo/atst/statuses/c4c56f683a22569c1d1ae1c64b19e5482491dc30","head":{"label":"dod-ccpo:assign-csp-roles","ref":"assign-csp-roles","sha":"c4c56f683a22569c1d1ae1c64b19e5482491dc30","user":{"login":"dod-ccpo","id":38081014,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MDgxMDE0","avatar_url":"https://avatars2.githubusercontent.com/u/38081014?v=4","gravatar_id":"","url":"https://api.github.com/users/dod-ccpo","html_url":"https://github.com/dod-ccpo","followers_url":"https://api.github.com/users/dod-ccpo/followers","following_url":"https://api.github.com/users/dod-ccpo/following{/other_user}","gists_url":"https://api.github.com/users/dod-ccpo/gists{/gist_id}","starred_url":"https://api.github.com/users/dod-ccpo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dod-ccpo/subscriptions","organizations_url":"https://api.github.com/users/dod-ccpo/orgs","repos_url":"https://api.github.com/users/dod-ccpo/repos","events_url":"https://api.github.com/users/dod-ccpo/events{/privacy}","received_events_url":"https://api.github.com/users/dod-ccpo/received_events","type":"Organization","site_admin":false},"repo":{"id":134563299,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQ1NjMyOTk=","name":"atst","full_name":"dod-ccpo/atst","private":false,"owner":{"login":"dod-ccpo","id":38081014,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MDgxMDE0","avatar_url":"https://avatars2.githubusercontent.com/u/38081014?v=4","gravatar_id":"","url":"https://api.github.com/users/dod-ccpo","html_url":"https://github.com/dod-ccpo","followers_url":"https://api.github.com/users/dod-ccpo/followers","following_url":"https://api.github.com/users/dod-ccpo/following{/other_user}","gists_url":"https://api.github.com/users/dod-ccpo/gists{/gist_id}","starred_url":"https://api.github.com/users/dod-ccpo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dod-ccpo/subscriptions","organizations_url":"https://api.github.com/users/dod-ccpo/orgs","repos_url":"https://api.github.com/users/dod-ccpo/repos","events_url":"https://api.github.com/users/dod-ccpo/events{/privacy}","received_events_url":"https://api.github.com/users/dod-ccpo/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/dod-ccpo/atst","description":null,"fork":false,"url":"https://api.github.com/repos/dod-ccpo/atst","forks_url":"https://api.github.com/repos/dod-ccpo/atst/forks","keys_url":"https://api.github.com/repos/dod-ccpo/atst/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dod-ccpo/atst/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dod-ccpo/atst/teams","hooks_url":"https://api.github.com/repos/dod-ccpo/atst/hooks","issue_events_url":"https://api.github.com/repos/dod-ccpo/atst/issues/events{/number}","events_url":"https://api.github.com/repos/dod-ccpo/atst/events","assignees_url":"https://api.github.com/repos/dod-ccpo/atst/assignees{/user}","branches_url":"https://api.github.com/repos/dod-ccpo/atst/branches{/branch}","tags_url":"https://api.github.com/repos/dod-ccpo/atst/tags","blobs_url":"https://api.github.com/repos/dod-ccpo/atst/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dod-ccpo/atst/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dod-ccpo/atst/git/refs{/sha}","trees_url":"https://api.github.com/repos/dod-ccpo/atst/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dod-ccpo/atst/statuses/{sha}","languages_url":"https://api.github.com/repos/dod-ccpo/atst/languages","stargazers_url":"https://api.github.com/repos/dod-ccpo/atst/stargazers","contributors_url":"https://api.github.com/repos/dod-ccpo/atst/contributors","subscribers_url":"https://api.github.com/repos/dod-ccpo/atst/subscribers","subscription_url":"https://api.github.com/repos/dod-ccpo/atst/subscription","commits_url":"https://api.github.com/repos/dod-ccpo/atst/commits{/sha}","git_commits_url":"https://api.github.com/repos/dod-ccpo/atst/git/commits{/sha}","comments_url":"https://api.github.com/repos/dod-ccpo/atst/comments{/number}","issue_comment_url":"https://api.github.com/repos/dod-ccpo/atst/issues/comments{/number}","contents_url":"https://api.github.com/repos/dod-ccpo/atst/contents/{+path}","compare_url":"https://api.github.com/repos/dod-ccpo/atst/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dod-ccpo/atst/merges","archive_url":"https://api.github.com/repos/dod-ccpo/atst/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dod-ccpo/atst/downloads","issues_url":"https://api.github.com/repos/dod-ccpo/atst/issues{/number}","pulls_url":"https://api.github.com/repos/dod-ccpo/atst/pulls{/number}","milestones_url":"https://api.github.com/repos/dod-ccpo/atst/milestones{/number}","notifications_url":"https://api.github.com/repos/dod-ccpo/atst/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dod-ccpo/atst/labels{/name}","releases_url":"https://api.github.com/repos/dod-ccpo/atst/releases{/id}","deployments_url":"https://api.github.com/repos/dod-ccpo/atst/deployments","created_at":"2018-05-23T12:02:56Z","updated_at":"2018-09-20T14:08:49Z","pushed_at":"2018-09-20T14:08:50Z","git_url":"git://github.com/dod-ccpo/atst.git","ssh_url":"git@github.com:dod-ccpo/atst.git","clone_url":"https://github.com/dod-ccpo/atst.git","svn_url":"https://github.com/dod-ccpo/atst","homepage":null,"size":4074,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"base":{"label":"dod-ccpo:master","ref":"master","sha":"21c724314f04351733f5daee0c3d70178f6ebe61","user":{"login":"dod-ccpo","id":38081014,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MDgxMDE0","avatar_url":"https://avatars2.githubusercontent.com/u/38081014?v=4","gravatar_id":"","url":"https://api.github.com/users/dod-ccpo","html_url":"https://github.com/dod-ccpo","followers_url":"https://api.github.com/users/dod-ccpo/followers","following_url":"https://api.github.com/users/dod-ccpo/following{/other_user}","gists_url":"https://api.github.com/users/dod-ccpo/gists{/gist_id}","starred_url":"https://api.github.com/users/dod-ccpo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dod-ccpo/subscriptions","organizations_url":"https://api.github.com/users/dod-ccpo/orgs","repos_url":"https://api.github.com/users/dod-ccpo/repos","events_url":"https://api.github.com/users/dod-ccpo/events{/privacy}","received_events_url":"https://api.github.com/users/dod-ccpo/received_events","type":"Organization","site_admin":false},"repo":{"id":134563299,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQ1NjMyOTk=","name":"atst","full_name":"dod-ccpo/atst","private":false,"owner":{"login":"dod-ccpo","id":38081014,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MDgxMDE0","avatar_url":"https://avatars2.githubusercontent.com/u/38081014?v=4","gravatar_id":"","url":"https://api.github.com/users/dod-ccpo","html_url":"https://github.com/dod-ccpo","followers_url":"https://api.github.com/users/dod-ccpo/followers","following_url":"https://api.github.com/users/dod-ccpo/following{/other_user}","gists_url":"https://api.github.com/users/dod-ccpo/gists{/gist_id}","starred_url":"https://api.github.com/users/dod-ccpo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dod-ccpo/subscriptions","organizations_url":"https://api.github.com/users/dod-ccpo/orgs","repos_url":"https://api.github.com/users/dod-ccpo/repos","events_url":"https://api.github.com/users/dod-ccpo/events{/privacy}","received_events_url":"https://api.github.com/users/dod-ccpo/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/dod-ccpo/atst","description":null,"fork":false,"url":"https://api.github.com/repos/dod-ccpo/atst","forks_url":"https://api.github.com/repos/dod-ccpo/atst/forks","keys_url":"https://api.github.com/repos/dod-ccpo/atst/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dod-ccpo/atst/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dod-ccpo/atst/teams","hooks_url":"https://api.github.com/repos/dod-ccpo/atst/hooks","issue_events_url":"https://api.github.com/repos/dod-ccpo/atst/issues/events{/number}","events_url":"https://api.github.com/repos/dod-ccpo/atst/events","assignees_url":"https://api.github.com/repos/dod-ccpo/atst/assignees{/user}","branches_url":"https://api.github.com/repos/dod-ccpo/atst/branches{/branch}","tags_url":"https://api.github.com/repos/dod-ccpo/atst/tags","blobs_url":"https://api.github.com/repos/dod-ccpo/atst/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dod-ccpo/atst/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dod-ccpo/atst/git/refs{/sha}","trees_url":"https://api.github.com/repos/dod-ccpo/atst/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dod-ccpo/atst/statuses/{sha}","languages_url":"https://api.github.com/repos/dod-ccpo/atst/languages","stargazers_url":"https://api.github.com/repos/dod-ccpo/atst/stargazers","contributors_url":"https://api.github.com/repos/dod-ccpo/atst/contributors","subscribers_url":"https://api.github.com/repos/dod-ccpo/atst/subscribers","subscription_url":"https://api.github.com/repos/dod-ccpo/atst/subscription","commits_url":"https://api.github.com/repos/dod-ccpo/atst/commits{/sha}","git_commits_url":"https://api.github.com/repos/dod-ccpo/atst/git/commits{/sha}","comments_url":"https://api.github.com/repos/dod-ccpo/atst/comments{/number}","issue_comment_url":"https://api.github.com/repos/dod-ccpo/atst/issues/comments{/number}","contents_url":"https://api.github.com/repos/dod-ccpo/atst/contents/{+path}","compare_url":"https://api.github.com/repos/dod-ccpo/atst/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dod-ccpo/atst/merges","archive_url":"https://api.github.com/repos/dod-ccpo/atst/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dod-ccpo/atst/downloads","issues_url":"https://api.github.com/repos/dod-ccpo/atst/issues{/number}","pulls_url":"https://api.github.com/repos/dod-ccpo/atst/pulls{/number}","milestones_url":"https://api.github.com/repos/dod-ccpo/atst/milestones{/number}","notifications_url":"https://api.github.com/repos/dod-ccpo/atst/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dod-ccpo/atst/labels{/name}","releases_url":"https://api.github.com/repos/dod-ccpo/atst/releases{/id}","deployments_url":"https://api.github.com/repos/dod-ccpo/atst/deployments","created_at":"2018-05-23T12:02:56Z","updated_at":"2018-09-20T14:08:49Z","pushed_at":"2018-09-20T14:08:50Z","git_url":"git://github.com/dod-ccpo/atst.git","ssh_url":"git@github.com:dod-ccpo/atst.git","clone_url":"https://github.com/dod-ccpo/atst.git","svn_url":"https://github.com/dod-ccpo/atst","homepage":null,"size":4074,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dod-ccpo/atst/pulls/304"},"html":{"href":"https://github.com/dod-ccpo/atst/pull/304"},"issue":{"href":"https://api.github.com/repos/dod-ccpo/atst/issues/304"},"comments":{"href":"https://api.github.com/repos/dod-ccpo/atst/issues/304/comments"},"review_comments":{"href":"https://api.github.com/repos/dod-ccpo/atst/pulls/304/comments"},"review_comment":{"href":"https://api.github.com/repos/dod-ccpo/atst/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dod-ccpo/atst/pulls/304/commits"},"statuses":{"href":"https://api.github.com/repos/dod-ccpo/atst/statuses/c4c56f683a22569c1d1ae1c64b19e5482491dc30"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"patricksmithdds"}}