Create community flow throws unavailable error if you type in the community name directly
As discovered by @xmoravej, https://gitter.zendesk.com/agent/tickets/14046
When using the create community flow and you have all the OAuth permissions correct to list your GitHub orgs. If you type the name of one of your GitHub orgs directly, it doesn't auto-associate, and instead gives you a unavailable error.
This is because the /api/private/check-group-uri?uri=<my-org>
endpoint returns a 200 OK
with {"type":"GH_ORG"}
but you don't have any GitHub org association locally in your creation process. The types mismatch and we give you an error.
There is an assumption on the frontend, that it will auto-associate the GitHub org as you type the name if it's available.
This address is not available. It already exists on Gitter
Workaround
You can get around this problem in the community creation flow by clicking the link in the "do you want to start a community for one of your GitHub orgs/repos?", then selecting the your GitHub org in the list, see https://gitlab.com/gitlab-org/gitter/webapp/-/blob/develop/docs/communities.md#associate-your-community-with-github
Solution
Auto-associate a matching org as you type the name/slug