From eba5672077f5d7956fc8f7db583136b3ccb451b5 Mon Sep 17 00:00:00 2001 From: Sean McGivern Date: Tue, 12 Mar 2019 08:13:21 +0000 Subject: Allow filtering labels by a single character When we use Gitlab::SQL::Pattern, this typically relates to a trigram index. As the 'tri' indicates, we need at least three characters to be able to use that index. Labels don't have a trigram index, because we never allow you to search for them globally: it's always in the context of a project or a group. In that context, it's just as fast to search for a single character (in general) because there is already a pretty specific index being used. --- .../unreleased/allow-filtering-labels-by-a-single-character.yml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 changelogs/unreleased/allow-filtering-labels-by-a-single-character.yml (limited to 'changelogs') diff --git a/changelogs/unreleased/allow-filtering-labels-by-a-single-character.yml b/changelogs/unreleased/allow-filtering-labels-by-a-single-character.yml new file mode 100644 index 00000000000..31165bbadb7 --- /dev/null +++ b/changelogs/unreleased/allow-filtering-labels-by-a-single-character.yml @@ -0,0 +1,5 @@ +--- +title: Allow filtering labels list by one or two characters +merge_request: 26012 +author: +type: changed -- cgit v1.2.1