Commit Graph

108 Commits

Author SHA1 Message Date
Toshi MARUYAMA
9d9d6851b9 avoid multi-line ternary operators in app/models/issue_query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19856 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-07-04 12:14:27 +00:00
Go MAEDA
907e0173e4 Update copyright year in source files to 2020 (#33069).
git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-03-03 00:24:10 +00:00
Toshi MARUYAMA
902d2d4f53 cleanup: rubocop: fix Layout/EmptyLinesAroundClassBody in app/models/issue_query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19096 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-20 16:00:16 +00:00
Toshi MARUYAMA
b7a2acd45d cleanup: rubocop: fix Layout/AlignArguments in IssueQuery available_columns variable
git-svn-id: http://svn.redmine.org/redmine/trunk@18931 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-07 03:42:01 +00:00
Toshi MARUYAMA
d4ec592f67 cleanup: rubocop: fix Layout/AlignArguments in IssueQuery#initialize_available_filters
git-svn-id: http://svn.redmine.org/redmine/trunk@18930 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-07 03:41:50 +00:00
Toshi MARUYAMA
28047659fc cleanup: rubocop: fix Layout/AlignArguments in IssueQuery#available_columns
git-svn-id: http://svn.redmine.org/redmine/trunk@18929 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-07 03:41:39 +00:00
Jean-Philippe Lang
c5b5f0d6a9 Fixed that total estimated time column is shown even when estimated time field is deactivated (#31779).
Patch by Felix Schäfer and Yuichi HARADA.

git-svn-id: http://svn.redmine.org/redmine/trunk@18743 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-19 08:30:15 +00:00
Toshi MARUYAMA
a8b7aa8299 code cleanup: rubocop: fix Layout/CaseIndentation in app/models/issue_query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18728 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-17 16:46:05 +00:00
Toshi MARUYAMA
80f18dd89c code cleanup: rubocop: fix Layout/SpaceBeforeSemicolon and Style/WhenThen in app/models/issue_query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18725 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-17 16:40:54 +00:00
Toshi MARUYAMA
b817973038 code cleanup: rubocop: fix Layout/ElseAlignment in app/models/issue_query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18711 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-17 15:28:23 +00:00
Go MAEDA
b0f1175e3e Add support for "start with" and "end with" operators to "Files" filter (#31879).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18570 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-09-30 13:15:45 +00:00
Go MAEDA
3c91a3d5b2 Per role visibility settings for spent time custom fields (#31859).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@18358 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-09 09:31:16 +00:00
Go MAEDA
8a9123de04 Limit total_estimated_hours to visible issues (#31778).
Patch by Gregor Schmidt.


git-svn-id: http://svn.redmine.org/redmine/trunk@18356 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-07 04:44:19 +00:00
Jean-Philippe Lang
87e82b4894 Issues in paginated views may be lost because sorting criteria are not unique (#29581).
Patch by Mizuki ISHIKAWA.

git-svn-id: http://svn.redmine.org/redmine/trunk@18263 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-20 06:13:11 +00:00
Go MAEDA
4082069c75 Update copyright year.
git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-25 07:36:06 +00:00
Go MAEDA
0328b5671a Show selected columns in gantt chart (#27672).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18171 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-16 21:54:33 +00:00
Go MAEDA
81e06a2f25 Issue filtering by spent time (#26826).
Patch by Tobias Umbach and Takenori TAKAKI.


git-svn-id: http://svn.redmine.org/redmine/trunk@18112 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-04-30 10:52:18 +00:00
Go MAEDA
7e407ebeb2 Adds a new query column for the parent task subject (#19371).
Patch by Jens Krämer.


git-svn-id: http://svn.redmine.org/redmine/trunk@18078 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-04-24 02:29:49 +00:00
Go MAEDA
07b3087fda Enable frozen_string_literal for some files under app and lib directory (#26561).
git-svn-id: http://svn.redmine.org/redmine/trunk@17977 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-16 09:37:35 +00:00
Go MAEDA
5861160ffc Add "frozen_string_literal: false" for all files (#26561).
This will be changed to true in the future.


git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-15 01:32:57 +00:00
Go MAEDA
bbacbd3353 "Last updated by" filter causes an SQL error with MariaDB (#30367).
Patch by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@17933 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-07 08:05:03 +00:00
Go MAEDA
40c894ff03 Multiple issue ids in "Subtasks" filter (#30808).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17908 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-02-28 10:01:45 +00:00
Go MAEDA
aca80173b6 Multiple issue ids in "Parent task" filter (#30482).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17843 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-02-01 23:31:52 +00:00
Jean-Philippe Lang
e647e99b74 Allow issues grouping by creation, update and closing date (#13803).
Implemented for PostgreSQL only for now.

git-svn-id: http://svn.redmine.org/redmine/trunk@17724 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-12-12 19:52:28 +00:00
Jean-Philippe Lang
72980f4175 Allow issues grouping by start and due dates (#13803).
git-svn-id: http://svn.redmine.org/redmine/trunk@17723 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-12-12 19:10:28 +00:00
Go MAEDA
21034c5628 Filter issues after project status (#20081).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@17607 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-10-29 04:03:52 +00:00
Go MAEDA
28c231473f Custom queries are broken by updating with nil parameter values (#29701).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17566 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-10-04 12:46:32 +00:00
Go MAEDA
ed14823d13 Replace Hash#keys.each with faster Hash#each_key (#29305).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17458 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-08-01 14:28:39 +00:00
Go MAEDA
5a2f924b76 Extend watched_by_me-issue filter to include all project-members instead of only <<me>>-substitution (#8160).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17439 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-07-09 06:07:26 +00:00
Go MAEDA
5484198d98 Ensure that only visible watchers on issues can be queried (#29133).
Contributed by Holger Just and Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17436 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-07-08 07:23:23 +00:00
Jean-Philippe Lang
cd1ca24a87 Fix that spent_time total on the issue list can be wrong (#26471).
git-svn-id: http://svn.redmine.org/redmine/trunk@16839 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-20 16:51:18 +00:00
Jean-Philippe Lang
2a721fff4c Set default configuration for the timelog list (#26356).
git-svn-id: http://svn.redmine.org/redmine/trunk@16814 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-12 18:13:20 +00:00
Jean-Philippe Lang
7fd04e1f8d Update copyright.
git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-25 08:40:31 +00:00
Jean-Philippe Lang
d9418864b6 Show the same trackers and statuses on time entry queries (#5385).
git-svn-id: http://svn.redmine.org/redmine/trunk@16577 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-27 09:19:14 +00:00
Jean-Philippe Lang
ba37a2c476 Show statuses of project trackers only (#5385).
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@16575 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-27 09:12:42 +00:00
Jean-Philippe Lang
dd37b8cfb6 Fixed that related to "no open issues" filter shows all issues (#25478).
Patch by Kevin Fischer.

git-svn-id: http://svn.redmine.org/redmine/trunk@16504 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-06 16:57:44 +00:00
Jean-Philippe Lang
41cb7a3a55 Let the issue list be grouped by private flag.
git-svn-id: http://svn.redmine.org/redmine/trunk@16476 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-04 17:19:55 +00:00
Jean-Philippe Lang
5c7aaa4d1e Makes Attachments column available on the issue list (#25515).
git-svn-id: http://svn.redmine.org/redmine/trunk@16473 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-04 17:07:13 +00:00
Jean-Philippe Lang
6c4b73b448 Query through multiple projects by issue custom field not possible anymore (#25501).
git-svn-id: http://svn.redmine.org/redmine/trunk@16467 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-03 14:04:04 +00:00
Jean-Philippe Lang
71d88e5535 Get rid of sort_helper when using queries.
git-svn-id: http://svn.redmine.org/redmine/trunk@16390 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-13 19:17:59 +00:00
Jean-Philippe Lang
b714c71402 Get the count by group from the query directly.
git-svn-id: http://svn.redmine.org/redmine/trunk@16387 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-09 20:01:01 +00:00
Jean-Philippe Lang
91d10c63f0 Show Last Comment in Issue list (#1474).
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@16367 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-05 07:58:07 +00:00
Jean-Philippe Lang
06c6de06e4 Last updated by colum in issue list (#6375).
git-svn-id: http://svn.redmine.org/redmine/trunk@16366 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-05 07:42:52 +00:00
Jean-Philippe Lang
27ebd84309 Priority should always be preloaded as it's used to render issue links.
git-svn-id: http://svn.redmine.org/redmine/trunk@16346 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-02 18:16:54 +00:00
Jean-Philippe Lang
2b0e910cd5 Adds a filter on issue attachments (#2783).
git-svn-id: http://svn.redmine.org/redmine/trunk@16344 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-02 18:13:59 +00:00
Jean-Philippe Lang
1eee6b3a30 Changed filter position (#17720).
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@16248 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-21 10:37:36 +00:00
Jean-Philippe Lang
151a215ea4 Adds updated_by and last_updated_by filters on issues (#17720).
git-svn-id: http://svn.redmine.org/redmine/trunk@16228 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-19 20:16:49 +00:00
Jean-Philippe Lang
e8d7b36f1b Searching for issues with "updated = none" always returns zero results (#15226).
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@16226 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-18 14:57:14 +00:00
Jean-Philippe Lang
3a21dc6912 Fixed #joins_for_order_statement (#24865).
git-svn-id: http://svn.redmine.org/redmine/trunk@16223 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-18 13:17:39 +00:00
Jean-Philippe Lang
aa354e6275 Don't join all associations by default (#24865).
git-svn-id: http://svn.redmine.org/redmine/trunk@16221 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-18 12:54:22 +00:00