{"action":"opened","number":23,"pull_request":{"url":"https://api.github.com/repos/Islandora-CLAW/islandora/pulls/23","id":97372187,"html_url":"https://github.com/Islandora-CLAW/islandora/pull/23","diff_url":"https://github.com/Islandora-CLAW/islandora/pull/23.diff","patch_url":"https://github.com/Islandora-CLAW/islandora/pull/23.patch","issue_url":"https://api.github.com/repos/Islandora-CLAW/islandora/issues/23","number":23,"state":"open","locked":false,"title":"Rules actions for event message","user":{"login":"dannylamb","id":20773151,"avatar_url":"https://avatars.githubusercontent.com/u/20773151?v=3","gravatar_id":"","url":"https://api.github.com/users/dannylamb","html_url":"https://github.com/dannylamb","followers_url":"https://api.github.com/users/dannylamb/followers","following_url":"https://api.github.com/users/dannylamb/following{/other_user}","gists_url":"https://api.github.com/users/dannylamb/gists{/gist_id}","starred_url":"https://api.github.com/users/dannylamb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dannylamb/subscriptions","organizations_url":"https://api.github.com/users/dannylamb/orgs","repos_url":"https://api.github.com/users/dannylamb/repos","events_url":"https://api.github.com/users/dannylamb/events{/privacy}","received_events_url":"https://api.github.com/users/dannylamb/received_events","type":"User","site_admin":false},"body":"Resolves https://github.com/Islandora-CLAW/CLAW/issues/450\r\n\r\nThis PR has three rules actions, one to create each type of event message.  It packages those actions into three reaction rules.  Since https://github.com/Islandora-CLAW/CLAW/issues/448 and https://github.com/Islandora-CLAW/CLAW/issues/432 are still on the go, we simple print the event messages to the screen instead actually doing any queue publishing.\r\n\r\nIt also comes with more Kernel tests for the actions, along with a healthy refactoring of the tests so phpcpd doesn't complain.\r\n\r\n### To test\r\n- Uninstall islandora\r\n- Pull down this PR\r\n- Re-install islandora\r\n- Verify the rules have installed themselves by visiting `admin/config/workflow/rules`\r\n![screenshot from 2016-12-09 15-54-58](https://cloud.githubusercontent.com/assets/20773151/21062857/1c10fc7a-be29-11e6-9238-438a880c2e7e.png)\r\n- Go to edit the rules to verify there are two actions, one for generating the message and another to display it\r\n![screenshot from 2016-12-09 15-55-39](https://cloud.githubusercontent.com/assets/20773151/21062880/3a9d4ac2-be29-11e6-9acc-86673280b973.png)\r\n- Then go create a FedoraResource, and a create event message should be dsm'd to the screen\r\n![screenshot from 2016-12-09 15-56-31](https://cloud.githubusercontent.com/assets/20773151/21062900/58b8afc4-be29-11e6-83ec-3d2f4502e716.png)\r\n- Edit the entity, and you should see an update event message\r\n![screenshot from 2016-12-09 15-57-16](https://cloud.githubusercontent.com/assets/20773151/21062912/6b4cf7ee-be29-11e6-845b-a068874d7499.png)\r\n- Delete the entity and you should see a delete event message\r\n![screenshot from 2016-12-09 15-57-45](https://cloud.githubusercontent.com/assets/20773151/21062926/76312b62-be29-11e6-8c58-7b181b13b462.png)\r\n","created_at":"2016-12-09T20:09:49Z","updated_at":"2016-12-09T20:09:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Islandora-CLAW/islandora/pulls/23/commits","review_comments_url":"https://api.github.com/repos/Islandora-CLAW/islandora/pulls/23/comments","review_comment_url":"https://api.github.com/repos/Islandora-CLAW/islandora/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Islandora-CLAW/islandora/issues/23/comments","statuses_url":"https://api.github.com/repos/Islandora-CLAW/islandora/statuses/beb31dfe3f02d85adcfaca2a5bace97a8279c9d8","head":{"label":"dannylamb:rules","ref":"rules","sha":"beb31dfe3f02d85adcfaca2a5bace97a8279c9d8","user":{"login":"dannylamb","id":20773151,"avatar_url":"https://avatars.githubusercontent.com/u/20773151?v=3","gravatar_id":"","url":"https://api.github.com/users/dannylamb","html_url":"https://github.com/dannylamb","followers_url":"https://api.github.com/users/dannylamb/followers","following_url":"https://api.github.com/users/dannylamb/following{/other_user}","gists_url":"https://api.github.com/users/dannylamb/gists{/gist_id}","starred_url":"https://api.github.com/users/dannylamb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dannylamb/subscriptions","organizations_url":"https://api.github.com/users/dannylamb/orgs","repos_url":"https://api.github.com/users/dannylamb/repos","events_url":"https://api.github.com/users/dannylamb/events{/privacy}","received_events_url":"https://api.github.com/users/dannylamb/received_events","type":"User","site_admin":false},"repo":{"id":73302611,"name":"islandora","full_name":"dannylamb/islandora","owner":{"login":"dannylamb","id":20773151,"avatar_url":"https://avatars.githubusercontent.com/u/20773151?v=3","gravatar_id":"","url":"https://api.github.com/users/dannylamb","html_url":"https://github.com/dannylamb","followers_url":"https://api.github.com/users/dannylamb/followers","following_url":"https://api.github.com/users/dannylamb/following{/other_user}","gists_url":"https://api.github.com/users/dannylamb/gists{/gist_id}","starred_url":"https://api.github.com/users/dannylamb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dannylamb/subscriptions","organizations_url":"https://api.github.com/users/dannylamb/orgs","repos_url":"https://api.github.com/users/dannylamb/repos","events_url":"https://api.github.com/users/dannylamb/events{/privacy}","received_events_url":"https://api.github.com/users/dannylamb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dannylamb/islandora","description":"CLAW Drupal modules","fork":true,"url":"https://api.github.com/repos/dannylamb/islandora","forks_url":"https://api.github.com/repos/dannylamb/islandora/forks","keys_url":"https://api.github.com/repos/dannylamb/islandora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dannylamb/islandora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dannylamb/islandora/teams","hooks_url":"https://api.github.com/repos/dannylamb/islandora/hooks","issue_events_url":"https://api.github.com/repos/dannylamb/islandora/issues/events{/number}","events_url":"https://api.github.com/repos/dannylamb/islandora/events","assignees_url":"https://api.github.com/repos/dannylamb/islandora/assignees{/user}","branches_url":"https://api.github.com/repos/dannylamb/islandora/branches{/branch}","tags_url":"https://api.github.com/repos/dannylamb/islandora/tags","blobs_url":"https://api.github.com/repos/dannylamb/islandora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dannylamb/islandora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dannylamb/islandora/git/refs{/sha}","trees_url":"https://api.github.com/repos/dannylamb/islandora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dannylamb/islandora/statuses/{sha}","languages_url":"https://api.github.com/repos/dannylamb/islandora/languages","stargazers_url":"https://api.github.com/repos/dannylamb/islandora/stargazers","contributors_url":"https://api.github.com/repos/dannylamb/islandora/contributors","subscribers_url":"https://api.github.com/repos/dannylamb/islandora/subscribers","subscription_url":"https://api.github.com/repos/dannylamb/islandora/subscription","commits_url":"https://api.github.com/repos/dannylamb/islandora/commits{/sha}","git_commits_url":"https://api.github.com/repos/dannylamb/islandora/git/commits{/sha}","comments_url":"https://api.github.com/repos/dannylamb/islandora/comments{/number}","issue_comment_url":"https://api.github.com/repos/dannylamb/islandora/issues/comments{/number}","contents_url":"https://api.github.com/repos/dannylamb/islandora/contents/{+path}","compare_url":"https://api.github.com/repos/dannylamb/islandora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dannylamb/islandora/merges","archive_url":"https://api.github.com/repos/dannylamb/islandora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dannylamb/islandora/downloads","issues_url":"https://api.github.com/repos/dannylamb/islandora/issues{/number}","pulls_url":"https://api.github.com/repos/dannylamb/islandora/pulls{/number}","milestones_url":"https://api.github.com/repos/dannylamb/islandora/milestones{/number}","notifications_url":"https://api.github.com/repos/dannylamb/islandora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dannylamb/islandora/labels{/name}","releases_url":"https://api.github.com/repos/dannylamb/islandora/releases{/id}","deployments_url":"https://api.github.com/repos/dannylamb/islandora/deployments","created_at":"2016-11-09T16:45:37Z","updated_at":"2016-11-09T16:45:38Z","pushed_at":"2016-12-09T20:01:45Z","git_url":"git://github.com/dannylamb/islandora.git","ssh_url":"git@github.com:dannylamb/islandora.git","clone_url":"https://github.com/dannylamb/islandora.git","svn_url":"https://github.com/dannylamb/islandora","homepage":"http://islandora.ca/CLAW","size":232,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"8.x-1.x"}},"base":{"label":"Islandora-CLAW:8.x-1.x","ref":"8.x-1.x","sha":"a7801811e0a46c95824990c99178870dd7f5c1d5","user":{"login":"Islandora-CLAW","id":15603186,"avatar_url":"https://avatars.githubusercontent.com/u/15603186?v=3","gravatar_id":"","url":"https://api.github.com/users/Islandora-CLAW","html_url":"https://github.com/Islandora-CLAW","followers_url":"https://api.github.com/users/Islandora-CLAW/followers","following_url":"https://api.github.com/users/Islandora-CLAW/following{/other_user}","gists_url":"https://api.github.com/users/Islandora-CLAW/gists{/gist_id}","starred_url":"https://api.github.com/users/Islandora-CLAW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Islandora-CLAW/subscriptions","organizations_url":"https://api.github.com/users/Islandora-CLAW/orgs","repos_url":"https://api.github.com/users/Islandora-CLAW/repos","events_url":"https://api.github.com/users/Islandora-CLAW/events{/privacy}","received_events_url":"https://api.github.com/users/Islandora-CLAW/received_events","type":"Organization","site_admin":false},"repo":{"id":58668425,"name":"islandora","full_name":"Islandora-CLAW/islandora","owner":{"login":"Islandora-CLAW","id":15603186,"avatar_url":"https://avatars.githubusercontent.com/u/15603186?v=3","gravatar_id":"","url":"https://api.github.com/users/Islandora-CLAW","html_url":"https://github.com/Islandora-CLAW","followers_url":"https://api.github.com/users/Islandora-CLAW/followers","following_url":"https://api.github.com/users/Islandora-CLAW/following{/other_user}","gists_url":"https://api.github.com/users/Islandora-CLAW/gists{/gist_id}","starred_url":"https://api.github.com/users/Islandora-CLAW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Islandora-CLAW/subscriptions","organizations_url":"https://api.github.com/users/Islandora-CLAW/orgs","repos_url":"https://api.github.com/users/Islandora-CLAW/repos","events_url":"https://api.github.com/users/Islandora-CLAW/events{/privacy}","received_events_url":"https://api.github.com/users/Islandora-CLAW/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Islandora-CLAW/islandora","description":"CLAW Drupal modules","fork":false,"url":"https://api.github.com/repos/Islandora-CLAW/islandora","forks_url":"https://api.github.com/repos/Islandora-CLAW/islandora/forks","keys_url":"https://api.github.com/repos/Islandora-CLAW/islandora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Islandora-CLAW/islandora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Islandora-CLAW/islandora/teams","hooks_url":"https://api.github.com/repos/Islandora-CLAW/islandora/hooks","issue_events_url":"https://api.github.com/repos/Islandora-CLAW/islandora/issues/events{/number}","events_url":"https://api.github.com/repos/Islandora-CLAW/islandora/events","assignees_url":"https://api.github.com/repos/Islandora-CLAW/islandora/assignees{/user}","branches_url":"https://api.github.com/repos/Islandora-CLAW/islandora/branches{/branch}","tags_url":"https://api.github.com/repos/Islandora-CLAW/islandora/tags","blobs_url":"https://api.github.com/repos/Islandora-CLAW/islandora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Islandora-CLAW/islandora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Islandora-CLAW/islandora/git/refs{/sha}","trees_url":"https://api.github.com/repos/Islandora-CLAW/islandora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Islandora-CLAW/islandora/statuses/{sha}","languages_url":"https://api.github.com/repos/Islandora-CLAW/islandora/languages","stargazers_url":"https://api.github.com/repos/Islandora-CLAW/islandora/stargazers","contributors_url":"https://api.github.com/repos/Islandora-CLAW/islandora/contributors","subscribers_url":"https://api.github.com/repos/Islandora-CLAW/islandora/subscribers","subscription_url":"https://api.github.com/repos/Islandora-CLAW/islandora/subscription","commits_url":"https://api.github.com/repos/Islandora-CLAW/islandora/commits{/sha}","git_commits_url":"https://api.github.com/repos/Islandora-CLAW/islandora/git/commits{/sha}","comments_url":"https://api.github.com/repos/Islandora-CLAW/islandora/comments{/number}","issue_comment_url":"https://api.github.com/repos/Islandora-CLAW/islandora/issues/comments{/number}","contents_url":"https://api.github.com/repos/Islandora-CLAW/islandora/contents/{+path}","compare_url":"https://api.github.com/repos/Islandora-CLAW/islandora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Islandora-CLAW/islandora/merges","archive_url":"https://api.github.com/repos/Islandora-CLAW/islandora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Islandora-CLAW/islandora/downloads","issues_url":"https://api.github.com/repos/Islandora-CLAW/islandora/issues{/number}","pulls_url":"https://api.github.com/repos/Islandora-CLAW/islandora/pulls{/number}","milestones_url":"https://api.github.com/repos/Islandora-CLAW/islandora/milestones{/number}","notifications_url":"https://api.github.com/repos/Islandora-CLAW/islandora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Islandora-CLAW/islandora/labels{/name}","releases_url":"https://api.github.com/repos/Islandora-CLAW/islandora/releases{/id}","deployments_url":"https://api.github.com/repos/Islandora-CLAW/islandora/deployments","created_at":"2016-05-12T18:54:08Z","updated_at":"2016-11-25T20:10:00Z","pushed_at":"2016-12-09T20:09:49Z","git_url":"git://github.com/Islandora-CLAW/islandora.git","ssh_url":"git@github.com:Islandora-CLAW/islandora.git","clone_url":"https://github.com/Islandora-CLAW/islandora.git","svn_url":"https://github.com/Islandora-CLAW/islandora","homepage":"http://islandora.ca/CLAW","size":243,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":5,"forks":7,"open_issues":5,"watchers":4,"default_branch":"8.x-1.x"}},"_links":{"self":{"href":"https://api.github.com/repos/Islandora-CLAW/islandora/pulls/23"},"html":{"href":"https://github.com/Islandora-CLAW/islandora/pull/23"},"issue":{"href":"https://api.github.com/repos/Islandora-CLAW/islandora/issues/23"},"comments":{"href":"https://api.github.com/repos/Islandora-CLAW/islandora/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/Islandora-CLAW/islandora/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/Islandora-CLAW/islandora/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Islandora-CLAW/islandora/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/Islandora-CLAW/islandora/statuses/beb31dfe3f02d85adcfaca2a5bace97a8279c9d8"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":9,"additions":745,"deletions":58,"changed_files":18}}
{"actor":{"display_login":"dannylamb"}}