Project

General

Profile

Actions

Patch #43032

open

Add bookmarks for filters in queries

Added by Leonid Murin 10 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Filters
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Some filters in queries are used more frequently than others, making it tedious to search for them each time.
This patch adds the ability to bookmark filters so they always appear at the top of the "Add filter" dropdown, marked with a ⭐ in their names.

On the query page, a "Bookmarked filters" section is added, containing a select box with the filters available to the user for that query.
When this select box is updated, the bookmarks are saved and the options in the "Add filter" dropdown are updated immediately.

The "Bookmarked filters" section is also added to the "Gantt" and "Calendar" tabs, since they also use filters. Bookmarks in these tabs are shared with the issues query.


Additionally, this patch refactors the selection of the group for a filter from the QueriesHelper#filters_options_for_select method into a separate method. This reduces the complexity of QueriesHelper#filters_options_for_select and makes it easier for plugins to add new groups to query filters.

Parent commit for patch - e76fb42 from GitHub mirror.


Files

No data to display

Actions

Also available in: Atom PDF