Add GL_GROUP and inherited GROUP support for the chat header link
Add GL_GROUP
and inherited GROUP
support for the chat header link
Part of https://gitlab.com/gitlab-org/gitter/webapp/issues/2393 and https://gitlab.com/gitlab-org/gitter/webapp/issues/2394
A bit related to https://gitlab.com/gitlab-org/gitter/webapp/issues/1955 but this is for the header link instead of the repo info section in the right toolbar
Testing strategy
- Insert a new GitLab Gitter group into Mongo
db.groups.insert({ "name" : "_test-gitlab-group-test-community", "uri" : "_test-gitlab-group-test-community", "lcUri" : "_test-gitlab-group-test-community", "lcHomeUri" : "_test-gitlab-group-test-community/home", "homeUri" : "_test-gitlab-group-test-community/home", "sd" : { "externalId" : "3281315", "linkPath" : "gitter-integration-tests-group", "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" : "_test-gitlab-group-test-community", })._id, "lcUri" : "_test-gitlab-group-test-community/community", "uri" : "_test-gitlab-group-test-community/community", "sd" : { "internalId" : db.groups.findOne({ "lcUri" : "_test-gitlab-group-test-community", })._id, "extraAdmins" : [ ], "extraMembers" : [ ], "members" : "PUBLIC", "public" : true, "admins" : "GROUP_ADMIN", "type" : "GROUP" } });
- Visit http://localhost:5000/_test-gitlab-group-test-community/community
- Click on the room name in the chat header and notice it links off to the GitLab group
Edited by 🤖 GitLab Bot 🤖