Skip to content

GitLab Next

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Menu
    Projects Groups Snippets
  • Get a free trial
  • Sign up
  • Login
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 is launching on May 22! This version brings many exciting improvements, but also removes deprecated features and introduces breaking changes that may impact your workflow. To see what is being deprecated and removed, please visit Breaking changes in 15.0 and Deprecations.

  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #18554
Project 'gitlab-org/gitlab-ce' was moved to 'gitlab-org/gitlab-foss'. Please update any links and bookmarks that may still have the old path.
Closed (moved)
(moved)
Open
Created Jun 14, 2016 by Douwe Maan@DouweMContributor

Issue priority should be determined by combination of label priorities instead of highest label priority

With 8.9, we're getting label priorities (https://gitlab.com/gitlab-org/gitlab-ce/issues/14189) and the ability to sort the issue and MR indexes by Priority, which will sort the issues based on the priority of their assigned labels.

Currently, the priority of each issue is determined by the priority of the highest priority label it has assigned. This works relatively well, but falls apart when an issue has multiple labels assigned, since the second label will not be taken into account. The effect is that two issues with the same highest priority label, but a different second priority label, will not be ordered as expected.

Depending on factors local to the DB, the ordering could look like this:

  1. Issue title [High] [Low]
  2. Issue title [High]
  3. Issue title [High] [Medium]

Instead of:

  1. Issue title [High] [Medium]
  2. Issue title [High] [Low]
  3. Issue title [High]

The intention was always to implement it like this (https://gitlab.com/gitlab-org/gitlab-ce/issues/14189#note_4360653), but after a lot of brain cycles were spent by @thijs-wouters, @yorickpeterse, @smcgivern and me on figuring out an efficient way to solve it (https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3205#note_4360810 and subsequent discussion), it was ultimately shelved (https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3205#note_4382181) as no good solution was found.

Now is the time to figure it out once and for all, since the sorting functionality loses a lot of usefulness in a multi-label flow like we use.

@yorickpeterse @smcgivern Now that a few months have passed since we last discussed this, does looking at it with a fresh mind give any new ideas?

Assignee
Assign to
Time tracking