{"action":"created","comment":{"url":"https://api.github.com/repos/projectjellyfish/api/pulls/comments/43703417","id":43703417,"diff_hunk":"@@ -10,6 +10,7 @@\n       restrict: 'AE',\n       scope: {\n         projectId: '=',\n+        projectArchived: '=?',","path":"src/client/app/components/project-memberships/project-memberships.directive.js","position":4,"original_position":4,"commit_id":"f509eaa0e0f98c570dcf4f86d0607a0e0523ef47","original_commit_id":"f509eaa0e0f98c570dcf4f86d0607a0e0523ef47","user":{"login":"stackus","id":158579,"avatar_url":"https://avatars.githubusercontent.com/u/158579?v=3","gravatar_id":"","url":"https://api.github.com/users/stackus","html_url":"https://github.com/stackus","followers_url":"https://api.github.com/users/stackus/followers","following_url":"https://api.github.com/users/stackus/following{/other_user}","gists_url":"https://api.github.com/users/stackus/gists{/gist_id}","starred_url":"https://api.github.com/users/stackus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stackus/subscriptions","organizations_url":"https://api.github.com/users/stackus/orgs","repos_url":"https://api.github.com/users/stackus/repos","events_url":"https://api.github.com/users/stackus/events{/privacy}","received_events_url":"https://api.github.com/users/stackus/received_events","type":"User","site_admin":false},"body":"Can this be done another way? Sending in this \"status\" is a code smell. (project memberships shouldn't require an archived boolean to function)","created_at":"2015-11-03T00:24:12Z","updated_at":"2015-11-03T00:24:12Z","html_url":"https://github.com/projectjellyfish/api/pull/1013#discussion_r43703417","pull_request_url":"https://api.github.com/repos/projectjellyfish/api/pulls/1013","_links":{"self":{"href":"https://api.github.com/repos/projectjellyfish/api/pulls/comments/43703417"},"html":{"href":"https://github.com/projectjellyfish/api/pull/1013#discussion_r43703417"},"pull_request":{"href":"https://api.github.com/repos/projectjellyfish/api/pulls/1013"}}},"pull_request":{"url":"https://api.github.com/repos/projectjellyfish/api/pulls/1013","id":49493336,"html_url":"https://github.com/projectjellyfish/api/pull/1013","diff_url":"https://github.com/projectjellyfish/api/pull/1013.diff","patch_url":"https://github.com/projectjellyfish/api/pull/1013.patch","issue_url":"https://api.github.com/repos/projectjellyfish/api/issues/1013","number":1013,"state":"open","locked":false,"title":"Adds UX for archiving projects","user":{"login":"AllenBW","id":6640236,"avatar_url":"https://avatars.githubusercontent.com/u/6640236?v=3","gravatar_id":"","url":"https://api.github.com/users/AllenBW","html_url":"https://github.com/AllenBW","followers_url":"https://api.github.com/users/AllenBW/followers","following_url":"https://api.github.com/users/AllenBW/following{/other_user}","gists_url":"https://api.github.com/users/AllenBW/gists{/gist_id}","starred_url":"https://api.github.com/users/AllenBW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AllenBW/subscriptions","organizations_url":"https://api.github.com/users/AllenBW/orgs","repos_url":"https://api.github.com/users/AllenBW/repos","events_url":"https://api.github.com/users/AllenBW/events{/privacy}","received_events_url":"https://api.github.com/users/AllenBW/received_events","type":"User","site_admin":false},"body":"\r\n<img width=\"1920\" alt=\"screen shot 2015-11-02 at 5 00 21 pm\" src=\"https://cloud.githubusercontent.com/assets/6640236/10895738/cafa045e-8183-11e5-9682-68d1b7a80432.png\">\r\n<img width=\"1920\" alt=\"screen shot 2015-11-02 at 5 00 07 pm\" src=\"https://cloud.githubusercontent.com/assets/6640236/10895740/cafb17d6-8183-11e5-8c01-f261bcac5daa.png\">\r\n<img width=\"1920\" alt=\"screen shot 2015-11-02 at 4 59 26 pm\" src=\"https://cloud.githubusercontent.com/assets/6640236/10895739/cafb1e52-8183-11e5-8f97-9a200c9ba854.png\">\r\n<img width=\"1920\" alt=\"screen shot 2015-11-02 at 4 59 57 pm\" src=\"https://cloud.githubusercontent.com/assets/6640236/10895741/cafc2784-8183-11e5-8012-3d2f4a9df089.png\">\r\n<img width=\"1915\" alt=\"screen shot 2015-11-02 at 5 10 42 pm\" src=\"https://cloud.githubusercontent.com/assets/6640236/10895917/b904dbe2-8184-11e5-8a74-0e720eba0833.png\">\r\n<img width=\"1920\" alt=\"screen shot 2015-11-02 at 4 59 34 pm\" src=\"https://cloud.githubusercontent.com/assets/6640236/10895742/cafdb55e-8183-11e5-833b-e2e1bb92b2d7.png\">\r\n\r\n\r\n\r\n\r\n\r\nConverts the \"Edit\" button to a group now including \"Archive\", said button is disabled when a project has services that are active.\r\nHijacks the delete project action to act as archive (rather than delete).\r\nUpdates relevant directives on the project.details state to suppress actions when a project is archived.\r\n\r\nItems of additional note: \r\n* archived table doesn't show till there's cause\r\n* confirmation modal gets wacky due to the source button being placed in the upper right, on the agenda, another pr to revert confirmation modal to be centered","created_at":"2015-11-02T22:12:27Z","updated_at":"2015-11-03T00:24:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f10badff62830f78c97b3dd307c69a8eb1bc5d25","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/projectjellyfish/api/pulls/1013/commits","review_comments_url":"https://api.github.com/repos/projectjellyfish/api/pulls/1013/comments","review_comment_url":"https://api.github.com/repos/projectjellyfish/api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projectjellyfish/api/issues/1013/comments","statuses_url":"https://api.github.com/repos/projectjellyfish/api/statuses/f509eaa0e0f98c570dcf4f86d0607a0e0523ef47","head":{"label":"AllenBW:ux_935","ref":"ux_935","sha":"f509eaa0e0f98c570dcf4f86d0607a0e0523ef47","user":{"login":"AllenBW","id":6640236,"avatar_url":"https://avatars.githubusercontent.com/u/6640236?v=3","gravatar_id":"","url":"https://api.github.com/users/AllenBW","html_url":"https://github.com/AllenBW","followers_url":"https://api.github.com/users/AllenBW/followers","following_url":"https://api.github.com/users/AllenBW/following{/other_user}","gists_url":"https://api.github.com/users/AllenBW/gists{/gist_id}","starred_url":"https://api.github.com/users/AllenBW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AllenBW/subscriptions","organizations_url":"https://api.github.com/users/AllenBW/orgs","repos_url":"https://api.github.com/users/AllenBW/repos","events_url":"https://api.github.com/users/AllenBW/events{/privacy}","received_events_url":"https://api.github.com/users/AllenBW/received_events","type":"User","site_admin":false},"repo":{"id":42733244,"name":"api","full_name":"AllenBW/api","owner":{"login":"AllenBW","id":6640236,"avatar_url":"https://avatars.githubusercontent.com/u/6640236?v=3","gravatar_id":"","url":"https://api.github.com/users/AllenBW","html_url":"https://github.com/AllenBW","followers_url":"https://api.github.com/users/AllenBW/followers","following_url":"https://api.github.com/users/AllenBW/following{/other_user}","gists_url":"https://api.github.com/users/AllenBW/gists{/gist_id}","starred_url":"https://api.github.com/users/AllenBW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AllenBW/subscriptions","organizations_url":"https://api.github.com/users/AllenBW/orgs","repos_url":"https://api.github.com/users/AllenBW/repos","events_url":"https://api.github.com/users/AllenBW/events{/privacy}","received_events_url":"https://api.github.com/users/AllenBW/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AllenBW/api","description":"Project Jellyfish API","fork":true,"url":"https://api.github.com/repos/AllenBW/api","forks_url":"https://api.github.com/repos/AllenBW/api/forks","keys_url":"https://api.github.com/repos/AllenBW/api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AllenBW/api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AllenBW/api/teams","hooks_url":"https://api.github.com/repos/AllenBW/api/hooks","issue_events_url":"https://api.github.com/repos/AllenBW/api/issues/events{/number}","events_url":"https://api.github.com/repos/AllenBW/api/events","assignees_url":"https://api.github.com/repos/AllenBW/api/assignees{/user}","branches_url":"https://api.github.com/repos/AllenBW/api/branches{/branch}","tags_url":"https://api.github.com/repos/AllenBW/api/tags","blobs_url":"https://api.github.com/repos/AllenBW/api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AllenBW/api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AllenBW/api/git/refs{/sha}","trees_url":"https://api.github.com/repos/AllenBW/api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AllenBW/api/statuses/{sha}","languages_url":"https://api.github.com/repos/AllenBW/api/languages","stargazers_url":"https://api.github.com/repos/AllenBW/api/stargazers","contributors_url":"https://api.github.com/repos/AllenBW/api/contributors","subscribers_url":"https://api.github.com/repos/AllenBW/api/subscribers","subscription_url":"https://api.github.com/repos/AllenBW/api/subscription","commits_url":"https://api.github.com/repos/AllenBW/api/commits{/sha}","git_commits_url":"https://api.github.com/repos/AllenBW/api/git/commits{/sha}","comments_url":"https://api.github.com/repos/AllenBW/api/comments{/number}","issue_comment_url":"https://api.github.com/repos/AllenBW/api/issues/comments{/number}","contents_url":"https://api.github.com/repos/AllenBW/api/contents/{+path}","compare_url":"https://api.github.com/repos/AllenBW/api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AllenBW/api/merges","archive_url":"https://api.github.com/repos/AllenBW/api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AllenBW/api/downloads","issues_url":"https://api.github.com/repos/AllenBW/api/issues{/number}","pulls_url":"https://api.github.com/repos/AllenBW/api/pulls{/number}","milestones_url":"https://api.github.com/repos/AllenBW/api/milestones{/number}","notifications_url":"https://api.github.com/repos/AllenBW/api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AllenBW/api/labels{/name}","releases_url":"https://api.github.com/repos/AllenBW/api/releases{/id}","created_at":"2015-09-18T16:18:55Z","updated_at":"2015-09-18T16:18:56Z","pushed_at":"2015-11-02T23:06:07Z","git_url":"git://github.com/AllenBW/api.git","ssh_url":"git@github.com:AllenBW/api.git","clone_url":"https://github.com/AllenBW/api.git","svn_url":"https://github.com/AllenBW/api","homepage":"","size":13499,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"projectjellyfish:master","ref":"master","sha":"047755d795160842e3e4a7f0f785b0fe8d9047c3","user":{"login":"projectjellyfish","id":10867673,"avatar_url":"https://avatars.githubusercontent.com/u/10867673?v=3","gravatar_id":"","url":"https://api.github.com/users/projectjellyfish","html_url":"https://github.com/projectjellyfish","followers_url":"https://api.github.com/users/projectjellyfish/followers","following_url":"https://api.github.com/users/projectjellyfish/following{/other_user}","gists_url":"https://api.github.com/users/projectjellyfish/gists{/gist_id}","starred_url":"https://api.github.com/users/projectjellyfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectjellyfish/subscriptions","organizations_url":"https://api.github.com/users/projectjellyfish/orgs","repos_url":"https://api.github.com/users/projectjellyfish/repos","events_url":"https://api.github.com/users/projectjellyfish/events{/privacy}","received_events_url":"https://api.github.com/users/projectjellyfish/received_events","type":"Organization","site_admin":false},"repo":{"id":25487089,"name":"api","full_name":"projectjellyfish/api","owner":{"login":"projectjellyfish","id":10867673,"avatar_url":"https://avatars.githubusercontent.com/u/10867673?v=3","gravatar_id":"","url":"https://api.github.com/users/projectjellyfish","html_url":"https://github.com/projectjellyfish","followers_url":"https://api.github.com/users/projectjellyfish/followers","following_url":"https://api.github.com/users/projectjellyfish/following{/other_user}","gists_url":"https://api.github.com/users/projectjellyfish/gists{/gist_id}","starred_url":"https://api.github.com/users/projectjellyfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectjellyfish/subscriptions","organizations_url":"https://api.github.com/users/projectjellyfish/orgs","repos_url":"https://api.github.com/users/projectjellyfish/repos","events_url":"https://api.github.com/users/projectjellyfish/events{/privacy}","received_events_url":"https://api.github.com/users/projectjellyfish/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectjellyfish/api","description":"Project Jellyfish Core Application","fork":false,"url":"https://api.github.com/repos/projectjellyfish/api","forks_url":"https://api.github.com/repos/projectjellyfish/api/forks","keys_url":"https://api.github.com/repos/projectjellyfish/api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectjellyfish/api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectjellyfish/api/teams","hooks_url":"https://api.github.com/repos/projectjellyfish/api/hooks","issue_events_url":"https://api.github.com/repos/projectjellyfish/api/issues/events{/number}","events_url":"https://api.github.com/repos/projectjellyfish/api/events","assignees_url":"https://api.github.com/repos/projectjellyfish/api/assignees{/user}","branches_url":"https://api.github.com/repos/projectjellyfish/api/branches{/branch}","tags_url":"https://api.github.com/repos/projectjellyfish/api/tags","blobs_url":"https://api.github.com/repos/projectjellyfish/api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectjellyfish/api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectjellyfish/api/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectjellyfish/api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectjellyfish/api/statuses/{sha}","languages_url":"https://api.github.com/repos/projectjellyfish/api/languages","stargazers_url":"https://api.github.com/repos/projectjellyfish/api/stargazers","contributors_url":"https://api.github.com/repos/projectjellyfish/api/contributors","subscribers_url":"https://api.github.com/repos/projectjellyfish/api/subscribers","subscription_url":"https://api.github.com/repos/projectjellyfish/api/subscription","commits_url":"https://api.github.com/repos/projectjellyfish/api/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectjellyfish/api/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectjellyfish/api/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectjellyfish/api/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectjellyfish/api/contents/{+path}","compare_url":"https://api.github.com/repos/projectjellyfish/api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectjellyfish/api/merges","archive_url":"https://api.github.com/repos/projectjellyfish/api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectjellyfish/api/downloads","issues_url":"https://api.github.com/repos/projectjellyfish/api/issues{/number}","pulls_url":"https://api.github.com/repos/projectjellyfish/api/pulls{/number}","milestones_url":"https://api.github.com/repos/projectjellyfish/api/milestones{/number}","notifications_url":"https://api.github.com/repos/projectjellyfish/api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectjellyfish/api/labels{/name}","releases_url":"https://api.github.com/repos/projectjellyfish/api/releases{/id}","created_at":"2014-10-20T21:17:09Z","updated_at":"2015-10-27T19:01:11Z","pushed_at":"2015-11-02T23:06:07Z","git_url":"git://github.com/projectjellyfish/api.git","ssh_url":"git@github.com:projectjellyfish/api.git","clone_url":"https://github.com/projectjellyfish/api.git","svn_url":"https://github.com/projectjellyfish/api","homepage":"http://projectjellyfish.org","size":71231,"stargazers_count":35,"watchers_count":35,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":38,"forks":20,"open_issues":38,"watchers":35,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projectjellyfish/api/pulls/1013"},"html":{"href":"https://github.com/projectjellyfish/api/pull/1013"},"issue":{"href":"https://api.github.com/repos/projectjellyfish/api/issues/1013"},"comments":{"href":"https://api.github.com/repos/projectjellyfish/api/issues/1013/comments"},"review_comments":{"href":"https://api.github.com/repos/projectjellyfish/api/pulls/1013/comments"},"review_comment":{"href":"https://api.github.com/repos/projectjellyfish/api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projectjellyfish/api/pulls/1013/commits"},"statuses":{"href":"https://api.github.com/repos/projectjellyfish/api/statuses/f509eaa0e0f98c570dcf4f86d0607a0e0523ef47"}}}}