Skip to content

Add GraphQL support for "user_preferences.visibility_pipeline_id_type"

What does this MR do and why?

Related issue: #403313 (closed)

Dependent MRs: !117844 (merged) | Subsequent MRs: !117841 (merged)

Add GraphQL support for "user_preferences.visibility_pipeline_id_type".

Screenshots or screen recordings

No UI changes.

How to set up and validate locally

  1. Visit GraphQL explorer: http://127.0.0.1:3000/-/graphql-explorer
  2. Execute modification statement:
    mutation setSortPreference($input: UserPreferencesUpdateInput!) {
      userPreferencesUpdate(input: $input) {
        errors
        __typename
        userPreferences {
          visibilityPipelineIdType
        }
      }
    }
    Variables
    {
      "input": {
        "visibilityPipelineIdType": "id" # can be changed to "iid"
      }
    }
  3. Expected effect: GraphQL returns the variable "id"(Screenshot 1), and the same change effect can be seen in database(Screenshot 2)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.


cc @mtan-gitlab @icbd

Edited by Zhiyuan Lu

Merge request reports

Loading