Feature #32818

Add a system settings for default results display format of project query

Added by Sebastian Paluch about 1 month ago. Updated 15 days ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:


Target version:4.2.0


Add a system settings for default results display format ("Display results as") of project query, so that we make query results to be shown as list by default.

Related to #29482.

  Redmine version                4.1.0.stable
  Ruby version                   2.5.7-p206 (2019-10-01) [x64-mingw32]
  Rails version        
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
  Subversion                     1.11.1
  Git                            2.19.1
Redmine plugins:
  no plugin installed

setting_project_list_display_type.png (33.6 KB) Takenori TAKAKI, 2020-02-03 14:14

32818.patch Magnifier (3.15 KB) Takenori TAKAKI, 2020-02-03 14:16

0001-Add-system-setting-for-default-results-display-forma.patch Magnifier (3.51 KB) Marius BALTEANU, 2020-02-09 23:17

Related issues

Related to Redmine - Feature #29482: Query system for Projects page Closed

Associated revisions

Revision 19505
Added by Go MAEDA 15 days ago

Add system setting for default results display format of project query (#32818).

Patch by Takenori TAKAKI and Marius BALTEANU.


#1 Updated by Marius BALTEANU about 1 month ago

#2 Updated by Takenori TAKAKI 23 days ago

I made a patch that enable to set the default 'display type' of project list.
We can select either "Boar" or "List" on the "settings?Tab=project" as shown below.

#3 Updated by Go MAEDA 22 days ago

  • Target version set to Candidate for next major release

#4 Updated by Go MAEDA 19 days ago

  • Target version changed from Candidate for next major release to 4.2.0

I think there are many users who prefer "List" style over "Board". This is a useful feature for those users.

The patch looks good to me. Setting the target version to 4.2.0.

#5 Updated by Marius BALTEANU 17 days ago

  • Assignee set to Marius BALTEANU

I would like to review this patch.

#6 Updated by Marius BALTEANU 17 days ago

Thanks Takenori TAKAKI for writing the patch.

I propose few changes in the attached patch in order to keep the existing logic, please let me know what do you think.

Tests pass: https://gitlab.com/redmine-org/redmine/pipelines/116338730

#7 Updated by Takenori TAKAKI 16 days ago

Thanks to Marius for reviewing the patch and suggesting improvements!
I think attached code is better, because the patch will be more DRY.

#8 Updated by Go MAEDA 15 days ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patch. Thank you for improving Redmine.

Also available in: Atom PDF