Add GraphQL support for "user_preferences.visibility_pipeline_id_type"
requested to merge gitlab-jh/jh-team/gitlab:support-store-visibility-pipeline-id-2-graphql into master
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
- Visit GraphQL explorer: http://127.0.0.1:3000/-/graphql-explorer
- Execute modification statement:
mutation setSortPreference($input: UserPreferencesUpdateInput!) { userPreferencesUpdate(input: $input) { errors __typename userPreferences { visibilityPipelineIdType } } }
{ "input": { "visibilityPipelineIdType": "id" # can be changed to "iid" } }
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Zhiyuan Lu