Skip to content

Add header link support for GL_PROJECT based rooms

Eric Eastwood requested to merge 2411-GL_PROJECT-in-room-header-links into develop

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

  1. 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"
            },
    });
  2. 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"
            }
    });
  3. Visit http://localhost:5000/gitlab-project-community/community
  4. Click on the room name in the chat header and notice it links off to the GitLab project
Edited by Eric Eastwood

Merge request reports