{"action":"closed","number":4698,"pull_request":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/4698","id":72696254,"html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/4698","diff_url":"https://github.com/openmicroscopy/openmicroscopy/pull/4698.diff","patch_url":"https://github.com/openmicroscopy/openmicroscopy/pull/4698.patch","issue_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/4698","number":4698,"state":"closed","locked":false,"title":"slack notification","user":{"login":"aleksandra-tarkowska","id":1065155,"avatar_url":"https://avatars.githubusercontent.com/u/1065155?v=3","gravatar_id":"","url":"https://api.github.com/users/aleksandra-tarkowska","html_url":"https://github.com/aleksandra-tarkowska","followers_url":"https://api.github.com/users/aleksandra-tarkowska/followers","following_url":"https://api.github.com/users/aleksandra-tarkowska/following{/other_user}","gists_url":"https://api.github.com/users/aleksandra-tarkowska/gists{/gist_id}","starred_url":"https://api.github.com/users/aleksandra-tarkowska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleksandra-tarkowska/subscriptions","organizations_url":"https://api.github.com/users/aleksandra-tarkowska/orgs","repos_url":"https://api.github.com/users/aleksandra-tarkowska/repos","events_url":"https://api.github.com/users/aleksandra-tarkowska/events{/privacy}","received_events_url":"https://api.github.com/users/aleksandra-tarkowska/received_events","type":"User","site_admin":false},"body":"This PR allows to set up custom notification using slack using http://django-slack.readthedocs.io/\r\n\r\nTo test:\r\n\r\n- `pip install django_slack`\r\n- generate your token https://api.slack.com/web#authentication\r\n- set up config:\r\n\r\n ```\r\n bin/omero config set omero.web.debug false\r\n bin/omero config set omero.slack.enabled true\r\n bin/omero config set omero.slack.token \"xoxp-123token...\"\r\n bin/omero config set omero.slack.channel \"#logs\"\r\n bin/omero config set omero.slack.username \"abc\"\r\n ```\r\n- add weberror app for testing\r\n- start web and enjoy slack :)\r\n\r\n\r\nAdditional testing: I also cleaned up email notification\r\n-  set the following:\r\n\r\n ```\r\nbin/omero config set omero.web.debug False\r\nbin/omero config set omero.mail.config true\r\n```\r\n *mail config is not named `enabled` but `config` because property name is matching server side property*\r\n\r\n- add weberror app for testing\r\n- set mail config https://www.openmicroscopy.org/site/support/omero5.2/sysadmins/mail.html or use local SMTP mock (you will not get real email, just console output):\r\n    - set ```bin/omero config set omero.mail.from \"your@email``` and ```bin/omero config set omero.mail.host \"localhost\"```\r\n    - run in new console SMTP mock ```sudo python -m smtpd -n -c DebuggingServer localhost:25```. *Email message will be shown as a plane text on your console.*\r\n- set your email in ```bin/omero config set omero.web.admins '[[\"Username\", \"your@email\"]]'```\r\n- try to get HTTP500 and 404 (must come from broken link in template, do not access random url) and see if you received both errors by email","created_at":"2016-06-06T11:45:37Z","updated_at":"2016-06-06T21:04:23Z","closed_at":"2016-06-06T21:04:23Z","merged_at":null,"merge_commit_sha":"ebd8c7fb4b16de967b1562e53ffc8dc6c49d9fd6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/4698/commits","review_comments_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/4698/comments","review_comment_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/4698/comments","statuses_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/statuses/a4ac61e5385dab425ff768b28928d8108dd4d293","head":{"label":"aleksandra-tarkowska:notification","ref":"notification","sha":"a4ac61e5385dab425ff768b28928d8108dd4d293","user":{"login":"aleksandra-tarkowska","id":1065155,"avatar_url":"https://avatars.githubusercontent.com/u/1065155?v=3","gravatar_id":"","url":"https://api.github.com/users/aleksandra-tarkowska","html_url":"https://github.com/aleksandra-tarkowska","followers_url":"https://api.github.com/users/aleksandra-tarkowska/followers","following_url":"https://api.github.com/users/aleksandra-tarkowska/following{/other_user}","gists_url":"https://api.github.com/users/aleksandra-tarkowska/gists{/gist_id}","starred_url":"https://api.github.com/users/aleksandra-tarkowska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleksandra-tarkowska/subscriptions","organizations_url":"https://api.github.com/users/aleksandra-tarkowska/orgs","repos_url":"https://api.github.com/users/aleksandra-tarkowska/repos","events_url":"https://api.github.com/users/aleksandra-tarkowska/events{/privacy}","received_events_url":"https://api.github.com/users/aleksandra-tarkowska/received_events","type":"User","site_admin":false},"repo":{"id":2422748,"name":"openmicroscopy","full_name":"aleksandra-tarkowska/openmicroscopy","owner":{"login":"aleksandra-tarkowska","id":1065155,"avatar_url":"https://avatars.githubusercontent.com/u/1065155?v=3","gravatar_id":"","url":"https://api.github.com/users/aleksandra-tarkowska","html_url":"https://github.com/aleksandra-tarkowska","followers_url":"https://api.github.com/users/aleksandra-tarkowska/followers","following_url":"https://api.github.com/users/aleksandra-tarkowska/following{/other_user}","gists_url":"https://api.github.com/users/aleksandra-tarkowska/gists{/gist_id}","starred_url":"https://api.github.com/users/aleksandra-tarkowska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleksandra-tarkowska/subscriptions","organizations_url":"https://api.github.com/users/aleksandra-tarkowska/orgs","repos_url":"https://api.github.com/users/aleksandra-tarkowska/repos","events_url":"https://api.github.com/users/aleksandra-tarkowska/events{/privacy}","received_events_url":"https://api.github.com/users/aleksandra-tarkowska/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aleksandra-tarkowska/openmicroscopy","description":"OME (Open Microscopy Environment) develops open-source software and data format standards for the storage and manipulation of biological light microscopy data. A joint project between universities, research establishments and industry in Europe and the USA, OME has over 20 active researchers with strong links to the microscopy community. Funded by private and public research grants, OME has been a major force on the international microscopy stage since 2000.","fork":true,"url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy","forks_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/forks","keys_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/teams","hooks_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/hooks","issue_events_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/issues/events{/number}","events_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/events","assignees_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/assignees{/user}","branches_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/branches{/branch}","tags_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/tags","blobs_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/git/refs{/sha}","trees_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/statuses/{sha}","languages_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/languages","stargazers_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/stargazers","contributors_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/contributors","subscribers_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/subscribers","subscription_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/subscription","commits_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/commits{/sha}","git_commits_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/git/commits{/sha}","comments_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/comments{/number}","issue_comment_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/issues/comments{/number}","contents_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/contents/{+path}","compare_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/merges","archive_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/downloads","issues_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/issues{/number}","pulls_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/pulls{/number}","milestones_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/milestones{/number}","notifications_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/labels{/name}","releases_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/releases{/id}","deployments_url":"https://api.github.com/repos/aleksandra-tarkowska/openmicroscopy/deployments","created_at":"2011-09-20T14:10:30Z","updated_at":"2015-04-06T09:08:09Z","pushed_at":"2016-06-06T19:38:42Z","git_url":"git://github.com/aleksandra-tarkowska/openmicroscopy.git","ssh_url":"git@github.com:aleksandra-tarkowska/openmicroscopy.git","clone_url":"https://github.com/aleksandra-tarkowska/openmicroscopy.git","svn_url":"https://github.com/aleksandra-tarkowska/openmicroscopy","homepage":"http://www.openmicroscopy.org","size":2119003,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"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":1,"default_branch":"develop"}},"base":{"label":"openmicroscopy:metadata52","ref":"metadata52","sha":"4bc1af8738c051c9aecb4ac41cab19169c820010","user":{"login":"openmicroscopy","id":975861,"avatar_url":"https://avatars.githubusercontent.com/u/975861?v=3","gravatar_id":"","url":"https://api.github.com/users/openmicroscopy","html_url":"https://github.com/openmicroscopy","followers_url":"https://api.github.com/users/openmicroscopy/followers","following_url":"https://api.github.com/users/openmicroscopy/following{/other_user}","gists_url":"https://api.github.com/users/openmicroscopy/gists{/gist_id}","starred_url":"https://api.github.com/users/openmicroscopy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmicroscopy/subscriptions","organizations_url":"https://api.github.com/users/openmicroscopy/orgs","repos_url":"https://api.github.com/users/openmicroscopy/repos","events_url":"https://api.github.com/users/openmicroscopy/events{/privacy}","received_events_url":"https://api.github.com/users/openmicroscopy/received_events","type":"Organization","site_admin":false},"repo":{"id":2228226,"name":"openmicroscopy","full_name":"openmicroscopy/openmicroscopy","owner":{"login":"openmicroscopy","id":975861,"avatar_url":"https://avatars.githubusercontent.com/u/975861?v=3","gravatar_id":"","url":"https://api.github.com/users/openmicroscopy","html_url":"https://github.com/openmicroscopy","followers_url":"https://api.github.com/users/openmicroscopy/followers","following_url":"https://api.github.com/users/openmicroscopy/following{/other_user}","gists_url":"https://api.github.com/users/openmicroscopy/gists{/gist_id}","starred_url":"https://api.github.com/users/openmicroscopy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmicroscopy/subscriptions","organizations_url":"https://api.github.com/users/openmicroscopy/orgs","repos_url":"https://api.github.com/users/openmicroscopy/repos","events_url":"https://api.github.com/users/openmicroscopy/events{/privacy}","received_events_url":"https://api.github.com/users/openmicroscopy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openmicroscopy/openmicroscopy","description":"OME (Open Microscopy Environment) develops open-source software and data format standards for the storage and manipulation of biological light microscopy data. A joint project between universities, research establishments and industry in Europe and the USA, OME has over 20 active researchers with strong links to the microscopy community. Funded by private and public research grants, OME has been a major force on the international microscopy stage since 2000.","fork":false,"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy","forks_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/forks","keys_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/teams","hooks_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/hooks","issue_events_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/events{/number}","events_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/events","assignees_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/assignees{/user}","branches_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/branches{/branch}","tags_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/tags","blobs_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/git/refs{/sha}","trees_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/statuses/{sha}","languages_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/languages","stargazers_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/stargazers","contributors_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/contributors","subscribers_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/subscribers","subscription_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/subscription","commits_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/commits{/sha}","git_commits_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/git/commits{/sha}","comments_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/comments{/number}","issue_comment_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/comments{/number}","contents_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/contents/{+path}","compare_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/merges","archive_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/downloads","issues_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues{/number}","pulls_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls{/number}","milestones_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/milestones{/number}","notifications_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/labels{/name}","releases_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/releases{/id}","deployments_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/deployments","created_at":"2011-08-18T14:26:02Z","updated_at":"2016-06-06T13:16:02Z","pushed_at":"2016-06-06T21:03:46Z","git_url":"git://github.com/openmicroscopy/openmicroscopy.git","ssh_url":"git@github.com:openmicroscopy/openmicroscopy.git","clone_url":"https://github.com/openmicroscopy/openmicroscopy.git","svn_url":"https://github.com/openmicroscopy/openmicroscopy","homepage":"http://www.openmicroscopy.org","size":2147895,"stargazers_count":84,"watchers_count":84,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":74,"mirror_url":null,"open_issues_count":42,"forks":74,"open_issues":42,"watchers":84,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/4698"},"html":{"href":"https://github.com/openmicroscopy/openmicroscopy/pull/4698"},"issue":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/4698"},"comments":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/4698/comments"},"review_comments":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/4698/comments"},"review_comment":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/4698/commits"},"statuses":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/statuses/a4ac61e5385dab425ff768b28928d8108dd4d293"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":1,"review_comments":0,"commits":2,"additions":186,"deletions":8,"changed_files":3}}
{"actor":{"display_login":"aleksandra-tarkowska"}}