{"action":"closed","issue":{"url":"https://api.github.com/repos/justinmuskopf/taco_tuesday_slack_app/issues/11","repository_url":"https://api.github.com/repos/justinmuskopf/taco_tuesday_slack_app","labels_url":"https://api.github.com/repos/justinmuskopf/taco_tuesday_slack_app/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/justinmuskopf/taco_tuesday_slack_app/issues/11/comments","events_url":"https://api.github.com/repos/justinmuskopf/taco_tuesday_slack_app/issues/11/events","html_url":"https://github.com/justinmuskopf/taco_tuesday_slack_app/issues/11","id":511523733,"node_id":"MDU6SXNzdWU1MTE1MjM3MzM=","number":11,"title":"The app fails to post to private channels","user":{"login":"justinmuskopf","id":22619972,"node_id":"MDQ6VXNlcjIyNjE5OTcy","avatar_url":"https://avatars2.githubusercontent.com/u/22619972?v=4","gravatar_id":"","url":"https://api.github.com/users/justinmuskopf","html_url":"https://github.com/justinmuskopf","followers_url":"https://api.github.com/users/justinmuskopf/followers","following_url":"https://api.github.com/users/justinmuskopf/following{/other_user}","gists_url":"https://api.github.com/users/justinmuskopf/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmuskopf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmuskopf/subscriptions","organizations_url":"https://api.github.com/users/justinmuskopf/orgs","repos_url":"https://api.github.com/users/justinmuskopf/repos","events_url":"https://api.github.com/users/justinmuskopf/events{/privacy}","received_events_url":"https://api.github.com/users/justinmuskopf/received_events","type":"User","site_admin":false},"labels":[{"id":1587546345,"node_id":"MDU6TGFiZWwxNTg3NTQ2MzQ1","url":"https://api.github.com/repos/justinmuskopf/taco_tuesday_slack_app/labels/bug","name":"bug","color":"d73a4a","default":true},{"id":1632440911,"node_id":"MDU6TGFiZWwxNjMyNDQwOTEx","url":"https://api.github.com/repos/justinmuskopf/taco_tuesday_slack_app/labels/high%20priority","name":"high priority","color":"f44253","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-10-23T19:24:21Z","updated_at":"2019-10-29T05:34:57Z","closed_at":"2019-10-29T05:34:57Z","author_association":"OWNER","body":"Private channels in Slack need to be refernced from the `WebClient` using `groups`, not `channels` . The application fails to post to private channels because it only checks `channels.info` when validating a channel.\r\n\r\n**Suggested resolution**:\r\nCreate a `ChannelValidator` (or the like) and check both `channels` and `groups` for the `channel_id` before raising a `ChannelValidationException(DomainException)`.\r\n\r\n**Deliverables**\r\n1. domain/`ChannelValidator`\r\n2. domain/`ChannelValidator/ChannelValidationException`"}}
{"actor":{"display_login":"justinmuskopf"}}