Skip to content

Add GL_PROJECT support to header view who can join tooltip

Eric Eastwood requested to merge 2411-GL_PROJECT-header-view-tooltip into develop

Add GL_PROJECT support to header view who can join tooltip

Part of https://gitlab.com/gitlab-org/gitter/webapp/issues/2411

Other MR where we added it for GL_GROUP: https://gitlab.com/gitlab-org/gitter/webapp/-/merge_requests/1751

Testing strategy

  1. Insert a new GitLab Gitter group into Mongo
    db.groups.insert({
            "name" : "gitlab-org",
            "uri" : "gitlab-org",
            "lcUri" : "gitlab-org",
            "lcHomeUri" : "gitlab-org/home",
            "homeUri" : "gitlab-org/home",
            "sd" : {
                    "externalId" : "9970",
                    "linkPath" : "gitlab-org",
                    "public" : true,
                    "admins" : "GL_GROUP_MAINTAINER",
                    "members" : "PUBLIC",
                    "type" : "GL_GROUP"
            },
    });
  2. Insert a room in that new GitLab group
    db.troupes.insert({
            "groupId" : db.groups.findOne({ "lcUri" : "gitlab-org", })._id,
            "uri" : "gitlab-org/gitlab",
            "lcUri" : "gitlab-org/gitlab",
            "sd" : {
                    "externalId" : "278964",
                    "linkPath" : "gitlab-org/gitlab",
                    "public" : false,
                    "admins" : "GL_PROJECT_MAINTAINER",
                    "members" : "GL_PROJECT_MEMBER",
                    "type" : "GL_PROJECT"
            },
    });
  3. Visit gitlab-org/gitlab signed in with your GitLab account (ensure the user you sign in with is part of the gitlab-org GitLab group)
  4. Hover of the title and notice it says All GitLab gitlab-org/gitlab project members can join
Edited by Eric Eastwood

Merge request reports