[go: up one dir, main page]

Skip to content

Introduce enums into Workspace graphql type

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

MR: Pending

Description

As a GraphQL API user, I want to use enums where possible so that there is better type support, safety, autocompletion, etc. in GraphQL queries.

The following discussion from !105783 (merged) should be addressed:

Acceptance Criteria

Fix all related TODO for this issue for all enum types:

  • ee/app/graphql/mutations/remote_development/workspaces/create.rb
  • ee/app/graphql/mutations/remote_development/workspaces/update.rb
  • ee/app/graphql/types/remote_development/workspace_type.rb
  • Any other new mutations/types that have been added to the remote development domain.
  • Note that we do NOT want to use enums in the ActiveRecord models, because they break the ActiveRecord#save contract by throwing an ArgumentError on #save, instead of #save!. See !129708 (comment 1538946504) for more context.

Technical Requirements

Use enums where possible, and update relevant specs, docs, and queries.

Design Requirements

N/A

Impact Assessment

More efficient, user friendly, and safe usage of the GraphQL API for the remote development feature.

Edited by 🤖 GitLab Bot 🤖