Add associated Gitter rooms when serializing GitLab projects
Add associated Gitter rooms when serializing GitLab projects
Related to https://gitlab.com/gitlab-org/gitter/webapp/-/issues/2472
Follow-up to https://gitlab.com/gitlab-org/gitter/webapp/-/merge_requests/1822
Testing strategy
NB: Checkout this branch and rebase it on top of https://gitlab.com/gitlab-org/gitter/webapp/-/merge_requests/1822
- Insert a new GitLab Gitter group into Mongo
db.groups.insert({ "name" : "gitlab-org-gitter", "uri" : "gitlab-org-gitter", "lcUri" : "gitlab-org-gitter", "lcHomeUri" : "gitlab-org-gitter/home", "homeUri" : "gitlab-org-gitter/home", "sd" : { "externalId" : "1540914", "linkPath" : "gitlab-org/gitter", "public" : true, "admins" : "GL_GROUP_MAINTAINER", "members" : "PUBLIC", "type" : "GL_GROUP" }, });
- Insert a room in that new GitLab group
db.troupes.insert({ "groupId" : db.groups.findOne({ "lcUri" : "gitlab-org-gitter", })._id, "lcUri" : "gitlab-org-gitter/webapp", "uri" : "gitlab-org-gitter/webapp", "sd" : { "type" : "GL_PROJECT", "externalId" : "3601513", "linkPath" : "gitlab-org/gitter/webapp", "public" : true, "members" : "PUBLIC", "admins" : "GL_PROJECT_MAINTAINER", "extraAdmins" : [ ], "extraMembers" : [ ], } });
- Do not join the
gitlab-org-gitter/webapp
Gitter room - Search for
webapp
(ensure the user you sign in with is a maintainer of https://gitlab.com/gitlab-org/gitter/webapp) - Notice the
gitter/webapp
search result and clicking on it goes to http://localhost:5000/gitlab-org-gitter/webapp (with join room button)
TODO:
-
Merge https://gitlab.com/gitlab-org/gitter/webapp/-/merge_requests/1822 (not a blocker but they go together)
Edited by Eric Eastwood