Unable to create community for own GitHub username
As discovered by @buzzsurfr,
Unable to create community for own GitHub username
Reproduction instructions
- Sign in as a GitHub user
- Ensure a community for your own username doesn't already exist on your own Gitter instance(
mongo localhost:27017
->use gitter
->db.groups.findOne({ lcUri: 'ericgittertester' })
) - Open the create community view
- For the community URL, enter in your own GitHub username
- Notice the error
This address is not available. It already exists on Gitter
which stops you from creating the community
The http://localhost:5000/api/private/check-group-uri?uri=EricGitterTester
endpoint returns a 200
(304 Not Modified
) with a {"type":"GH_USER"}
Relevant code
The relevant code lives in public/js/vue/create-community/store/index.js#L208-241
but this is exactly the same logic as what we had before in public/js/views/community-create/main-step/community-creation-main-view.js#L230-276
we switched over to the Vue.js create community flow. I'm not totally sure if this worked before either. It definitely worked in the way past
Edited by Eric Eastwood