Commit eefe5d6b authored by Alex Kalderimis's avatar Alex Kalderimis

Add User.location to GraphQL API

This adds the `User#location` field to the GraphQL API. This field is
currently exposed in the REST API.
parent c39c1546
......@@ -38,6 +38,8 @@ module Types
feature_flag: :user_group_counts
field :status, Types::UserStatusType, null: true,
description: 'User status'
field :location, ::GraphQL::STRING_TYPE, null: true,
description: 'The location of the user.'
field :project_memberships, Types::ProjectMemberType.connection_type, null: true,
description: 'Project memberships of the user',
method: :project_members
......
---
title: Add User.location field to GraphQL API
merge_request: 48059
author:
type: changed
......@@ -22867,6 +22867,11 @@ type User {
"""
id: ID!
"""
The location of the user.
"""
location: String
"""
Human-readable name of the user
"""
......
......@@ -66222,6 +66222,20 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "location",
"description": "The location of the user.",
"args": [
],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "name",
"description": "Human-readable name of the user",
......@@ -3407,6 +3407,7 @@ Autogenerated return type of UpdateSnippet.
| `groupCount` | Int | Group count for the user. Available only when feature flag `user_group_counts` is enabled |
| `groupMemberships` | GroupMemberConnection | Group memberships of the user |
| `id` | ID! | ID of the user |
| `location` | String | The location of the user. |
| `name` | String! | Human-readable name of the user |
| `projectMemberships` | ProjectMemberConnection | Project memberships of the user |
| `snippets` | SnippetConnection | Snippets authored by the user |
......
......@@ -21,6 +21,7 @@ RSpec.describe GitlabSchema.types['User'] do
todos
state
status
location
authoredMergeRequests
assignedMergeRequests
groupMemberships
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment