Skip to content
Snippets Groups Projects
Verified Commit e015bf5d authored by Lee Tickett's avatar Lee Tickett :red_circle:
Browse files

Add popular user fields to GraphQL

Changelog: added
parent 02b924e8
No related branches found
No related tags found
1 merge request!123679Add popular user fields to GraphQL
......@@ -162,6 +162,41 @@ module UserInterface
extras: [:lookahead],
resolver: ::Resolvers::Achievements::UserAchievementsResolver
field :bio,
type: ::GraphQL::Types::String,
null: true,
description: 'Bio of the user.'
field :linkedin,
type: ::GraphQL::Types::String,
null: true,
description: 'LinkedIn profile name of the user.'
field :twitter,
type: ::GraphQL::Types::String,
null: true,
description: 'Twitter username of the user.'
field :discord,
type: ::GraphQL::Types::String,
null: true,
description: 'Discord ID of the user.'
field :organization,
type: ::GraphQL::Types::String,
null: true,
description: 'Who the user represents or works for.'
field :job_title,
type: ::GraphQL::Types::String,
null: true,
description: 'Job title of the user.'
field :created_at,
type: Types::TimeType,
null: true,
description: 'Timestamp of when the user was created.'
definition_methods do
def resolve_type(object, context)
# in the absence of other information, we cannot tell - just default to
......
This diff is collapsed.
......@@ -47,7 +47,14 @@
profileEnableGitpodPath
savedReplies
savedReply
user_achievements
userAchievements
bio
linkedin
twitter
discord
organization
jobTitle
createdAt
]
expect(described_class).to include_graphql_fields(*expected_fields)
......
......@@ -42,7 +42,14 @@
profileEnableGitpodPath
savedReplies
savedReply
user_achievements
userAchievements
bio
linkedin
twitter
discord
organization
jobTitle
createdAt
]
# TODO: 'workspaces' needs to be included, but only when this spec is run in EE context, to account for the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment