Skip to content

Add namespace field to User type in GraphQL

Mario Celi requested to merge 26732-user-namespace-api into master

What does this MR do?

Adds namespace to the UserInterface

Namespace is the personal namespace of a user

Sample Query

{
  currentUser {
    namespace {
      fullPath
      path
      id
    }
  }
}

Sample Response

{
  "data": {
    "currentUser": {
      "namespace": {
        "fullPath": "mcelicalderon",
        "path": "mcelicalderon",
        "id": "gid://gitlab/Namespace/1"
      }
    }
  }
}

How to setup and validate locally (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #26732 (closed)

Edited by Mario Celi

Merge request reports