{"action":"created","issue":{"url":"https://api.github.com/repos/mattermost/mattermost-server/issues/9648","repository_url":"https://api.github.com/repos/mattermost/mattermost-server","labels_url":"https://api.github.com/repos/mattermost/mattermost-server/issues/9648/labels{/name}","comments_url":"https://api.github.com/repos/mattermost/mattermost-server/issues/9648/comments","events_url":"https://api.github.com/repos/mattermost/mattermost-server/issues/9648/events","html_url":"https://github.com/mattermost/mattermost-server/issues/9648","id":369719635,"node_id":"MDU6SXNzdWUzNjk3MTk2MzU=","number":9648,"title":"Get a channel by name API Call not working as expected","user":{"login":"fincha","id":2435678,"node_id":"MDQ6VXNlcjI0MzU2Nzg=","avatar_url":"https://avatars2.githubusercontent.com/u/2435678?v=4","gravatar_id":"","url":"https://api.github.com/users/fincha","html_url":"https://github.com/fincha","followers_url":"https://api.github.com/users/fincha/followers","following_url":"https://api.github.com/users/fincha/following{/other_user}","gists_url":"https://api.github.com/users/fincha/gists{/gist_id}","starred_url":"https://api.github.com/users/fincha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fincha/subscriptions","organizations_url":"https://api.github.com/users/fincha/orgs","repos_url":"https://api.github.com/users/fincha/repos","events_url":"https://api.github.com/users/fincha/events{/privacy}","received_events_url":"https://api.github.com/users/fincha/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-10-12T21:40:20Z","updated_at":"2018-11-01T18:34:54Z","closed_at":"2018-11-01T18:34:54Z","author_association":"NONE","body":"#### Summary\r\nI am not able to retreive the deleted channel info. Server Version 5.1\r\n\r\n#### Steps to reproduce\r\nI have created a a channel via api, its a private channel. I have \"deleted\" channel via api. Channel was deleted, and I also not able to create a channel with the same name, so the channel is still in DB and is only marked as deleted.\r\n\r\nI am trying to restore the channel, for this I first need the channel ID, so I do the call get channel by name, gut what ever I do, I am getting \r\n\r\n`{\r\n  \"id\": \"store.sql_channel.get_by_name.missing.app_error\",\r\n  \"message\": \"Channel does not exist\",\r\n  \"detailed_error\": \"\",\r\n  \"request_id\": \"8rzkrt1ktiyqxqjjosw4rzux5y\",\r\n  \"status_code\": 404\r\n}`\r\n\r\nI have also noticed, the the client I am getting generated form the latest version of yaml file 4.0.0 does not support query params to include deleted channels. Any way, I have extended this single option, so I do send a query like this\r\n\r\n/api/v4/teams/arxrae5xutncuyez416qn5gf7a/channels/name/1223?include_deleted=true\r\n\r\n#### Expected behavior\r\nI expect the generated client to contain the option for deleted channels\r\nI expect the api call to return the deleted channel info\r\n\r\n#### Possible fixes\r\nset the include_deleted=true by default or add this option to swagger yaml\r\nwhat ever is to do in the golang code :)\r\n"},"comment":{"url":"https://api.github.com/repos/mattermost/mattermost-server/issues/comments/435141349","html_url":"https://github.com/mattermost/mattermost-server/issues/9648#issuecomment-435141349","issue_url":"https://api.github.com/repos/mattermost/mattermost-server/issues/9648","id":435141349,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTE0MTM0OQ==","user":{"login":"amyblais","id":29708087,"node_id":"MDQ6VXNlcjI5NzA4MDg3","avatar_url":"https://avatars3.githubusercontent.com/u/29708087?v=4","gravatar_id":"","url":"https://api.github.com/users/amyblais","html_url":"https://github.com/amyblais","followers_url":"https://api.github.com/users/amyblais/followers","following_url":"https://api.github.com/users/amyblais/following{/other_user}","gists_url":"https://api.github.com/users/amyblais/gists{/gist_id}","starred_url":"https://api.github.com/users/amyblais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amyblais/subscriptions","organizations_url":"https://api.github.com/users/amyblais/orgs","repos_url":"https://api.github.com/users/amyblais/repos","events_url":"https://api.github.com/users/amyblais/events{/privacy}","received_events_url":"https://api.github.com/users/amyblais/received_events","type":"User","site_admin":false},"created_at":"2018-11-01T18:34:54Z","updated_at":"2018-11-01T18:34:54Z","author_association":"MEMBER","body":"Hi @fincha , we haven't received an update so we'll assume that the problem is fixed or is no longer valid. \r\n\r\nIf you still experience the same problem, try upgrading to the [latest version](https://about.mattermost.com/download/). \r\n\r\nIf the issue persists, reopen this issue with the relevant information and we'd be glad to help you where we can."}}
{"actor":{"display_login":"amyblais"}}