Add organization project & group sorting and display options
What does this MR do and why?
This is part of the ongoing Category:Organization by grouptenant scale, read the blueprint here.
organization_groups_projects_sort
will store the sorting option for
https://gitlab.com/-/organizations/<org-path>/groups_and_projects
.
organization_groups_projects_display
will store an enum with options
of projects, and groups.
The mutation for user_preferences
is also updated to accept the above two
arguments and the new fields and arguments are marked as alpha as everything is experimental.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
Run the following mutation on https://gdk.test:3000/-/graphql-explorer.
mutation {
userPreferencesUpdate(
input: {organizationGroupsProjectsSort: NAME_DESC, organizationGroupsProjectsDisplay: PROJECTS}
) {
userPreferences {
organizationGroupsProjectsSort
organizationGroupsProjectsDisplay
}
}
}
{
"data": {
"userPreferencesUpdate": {
"userPreferences": {
"organizationGroupsProjectsSort": "NAME_DESC",
"organizationGroupsProjectsDisplay": "PROJECTS"
}
}
}
}
Related to #453991 (closed)