Skip to content

Sorting projects - Persist last choice

What does this MR do?

EE port: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/15105

This MR:

  • Adds new projects_sort column to user_preferences table
  • Saves project sort preference to backend
  • Renames issuable_sorting_field to sorting_field as it is now used in projects
  • Extracts sorting preference logic from IssuableCollections to a new SortingPreference concern so that it can be reused to projects (and groups in the future https://gitlab.com/gitlab-org/gitlab-ce/issues/50803)

Does this MR meet the acceptance criteria?

Conformity

Performance and testing

N/A

Security

N/A

Edited by 🤖 GitLab Bot 🤖

Merge request reports