Add header link support for GL_PROJECT based rooms
Add header link support for GL_PROJECT based rooms
Part of https://gitlab.com/gitlab-org/gitter/webapp/issues/2411
Other MR where we added support for GL_GROUP: https://gitlab.com/gitlab-org/gitter/webapp/-/merge_requests/1738
Testing strategy
- Insert a new GitLab Gitter group into Mongo
db.groups.insert({ "name" : "gitlab-project-community", "uri" : "gitlab-project-community", "lcUri" : "gitlab-project-community", "lcHomeUri" : "gitlab-project-community/home", "homeUri" : "gitlab-project-community/home", "sd" : { "externalId" : "278964", "linkPath" : "gitlab-org/gitlab", "public" : true, "admins" : "GL_PROJECT_MAINTAINER", "members" : "PUBLIC", "type" : "GL_PROJECT" }, });
- Insert a room in that new GitLab group
db.troupes.insert({ "groupId" : db.groups.findOne({ "lcUri" : "gitlab-project-community", })._id, "lcUri" : "gitlab-project-community/community", "uri" : "gitlab-project-community/community", "sd" : { "internalId" : db.groups.findOne({ "lcUri" : "gitlab-project-community", })._id, "extraAdmins" : [ ], "extraMembers" : [ ], "members" : "PUBLIC", "public" : true, "admins" : "GROUP_ADMIN", "type" : "GROUP" } });
- Visit http://localhost:5000/gitlab-project-community/community
- Click on the room name in the chat header and notice it links off to the GitLab project
Edited by Eric Eastwood