Commit Graph

330 Commits

Author SHA1 Message Date
Go MAEDA
7c7d29e33c Unnecessary database access when IssueQuery class is defined (#33290).
Patch by Kevin Fischer.


git-svn-id: http://svn.redmine.org/redmine/trunk@20830 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-03-19 05:20:48 +00:00
Go MAEDA
83f3f45497 Fix that column header is clickable even when the column is not actually sortable (#33548).
Patch by Vincent Robert and Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@20783 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-03-14 03:14:49 +00:00
Go MAEDA
f238663f2b Allow to use watch_by filter in the global issues list (#34700).
Patch by Holger Just.


git-svn-id: http://svn.redmine.org/redmine/trunk@20744 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-02-11 06:48:29 +00:00
Go MAEDA
36b5c32048 Subprojects issues are not displayed on main project when all subprojects are closed (#34297).
Patch by Yuichi HARADA and Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20693 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-27 06:46:37 +00:00
Toshi MARUYAMA
a91da01ade shorten long line of Query#sql_for_custom_field
git-svn-id: http://svn.redmine.org/redmine/trunk@20640 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-12 15:49:44 +00:00
Toshi MARUYAMA
c840cefb76 shorten long line of Query#relative_date_clause
git-svn-id: http://svn.redmine.org/redmine/trunk@20607 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-10 13:33:44 +00:00
Toshi MARUYAMA
d30d70a418 shorten long line of Query#sql_for_field
git-svn-id: http://svn.redmine.org/redmine/trunk@20588 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-09 14:11:21 +00:00
Toshi MARUYAMA
807952bdd9 shorten long line of Query#add_custom_fields_filters
git-svn-id: http://svn.redmine.org/redmine/trunk@20570 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-04 13:59:21 +00:00
Toshi MARUYAMA
96acbee6d3 use "do end" instead of {} at ActiveRecord scope lambda of app/models/query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20317 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-09 13:25:10 +00:00
Toshi MARUYAMA
a62f6cde56 fix source indent of app/models/query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20039 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-09-17 15:48:09 +00:00
Go MAEDA
a411666fe8 Remove an unused variable in Query#add_chained_custom_field_filters (#33728).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20007 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-09-07 13:33:07 +00:00
Toshi MARUYAMA
cdb4743408 use "do end" instead of {} at app/models/query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19972 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-08-09 15:57:44 +00:00
Toshi MARUYAMA
4df233e947 fix source indent of app/models/query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19931 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-07-21 13:41:09 +00:00
Toshi MARUYAMA
457b39a980 remove spaces inside {} of app/models/query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19880 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-07-11 01:21:27 +00:00
Go MAEDA
4fd0e739db Fix that totals of custom fields may not be sorted as configured (#33281).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19758 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-05-08 04:30:24 +00:00
Jean-Philippe Lang
d6734e6239 Fix sort does not work with group by datetime columns (#33110).
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@19655 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-04-05 09:43:03 +00:00
Go MAEDA
3614346962 Fix a RuboCop offense Style/MultipleComparison (#33083).
git-svn-id: http://svn.redmine.org/redmine/trunk@19563 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-03-07 07:29:14 +00:00
Go MAEDA
db2118fd82 Projects filter "Subproject of" does not work when the given value is "My projects" or "My bookmarks" (#33083).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19559 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-03-04 08:26:34 +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
Go MAEDA
b6d26dc170 Add system setting for default results display format of project query (#32818).
Patch by Takenori TAKAKI and Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@19505 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-02-11 01:10:48 +00:00
Go MAEDA
b995014c49 Allow adding user groups as watchers for issues (#4511).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19498 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-02-06 08:19:13 +00:00
Go MAEDA
261d3ed39c Issue relations filter lacks "is not" (#32546).
Patch by Alexander Achenbach.


git-svn-id: http://svn.redmine.org/redmine/trunk@19363 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-12-12 00:56:32 +00:00
Toshi MARUYAMA
daf4f93c16 cleanup: rubocop: fix Layout/SpaceAfterComma in app/models/query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19256 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-24 13:18:54 +00:00
Toshi MARUYAMA
37272d1c41 cleanup: rubocop: fix Layout/EmptyLineAfterGuardClause in app/models/query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19173 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-22 14:55:16 +00:00
Toshi MARUYAMA
3326956a62 cleanup: rubocop: fix Layout/EmptyLinesAroundClassBody in app/models/query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19097 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-20 16:00:28 +00:00
Jean-Philippe Lang
9746ab7e5b Add anonymous user to author list in issue/time query (#16904).
Patch by Yuichi HARADA and Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@19065 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-10 07:58:57 +00:00
Toshi MARUYAMA
95401eced1 cleanup: rubocop: fix Layout/AlignArguments in app/models/query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18967 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-08 14:54:00 +00:00
Go MAEDA
b1f1108606 Option to filter after my bookmarked projects (#32302, #29482, #31355).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@18842 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-23 01:20:07 +00:00
Toshi MARUYAMA
48b2c8bc36 code cleanup: rubocop: fix Style/ParenthesesAroundCondition in app/models/query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18833 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-22 15:54:24 +00:00
Jean-Philippe Lang
45f039187d Option to switch between table list and board list (#29482).
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@18765 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-19 11:42:20 +00:00
Jean-Philippe Lang
ecd9d9ba2f Filter after project custom fields (#29482).
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@18764 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-19 11:39:02 +00:00
Jean-Philippe Lang
80844362db Filter after projects (#29482).
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@18762 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-19 11:37:30 +00:00
Jean-Philippe Lang
6c5440a21b Filters for Projects page (#29482).
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@18761 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-19 11:36:13 +00:00
Toshi MARUYAMA
1c0b6075ee use "attr_writer" instead of "attr_accessor" for QueryColumn#sortable
QueryColumn#sortable is already defined in this class.

git-svn-id: http://svn.redmine.org/redmine/trunk@18616 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-07 11:45:11 +00:00
Go MAEDA
b3baa5c1ce "starts with" and "ends with" filter operators for string values (#31879).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18534 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-09-25 16:24:08 +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
b0e17e8199 Don't rescue Exception class (#31387).
Patch by Go MAEDA and Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@18197 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-25 06:50:25 +00:00
Go MAEDA
470c168783 Changes Query#as_params for more complete serialization (#31276).
Patch by Jens Krämer.


git-svn-id: http://svn.redmine.org/redmine/trunk@18103 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-04-30 03:10:43 +00:00
Go MAEDA
72e1451159 Use Regexp#match? to reduce allocations of MatchData object (#28940).
Patch by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@18011 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-27 02:15:24 +00:00
Go MAEDA
d4daf4e23b Support frozen_string_literal in issue, journal, and query (#26561).
Patch by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@17980 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-17 00:29:58 +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
6a639cdf0f Translation missing error in "Project's Status" filter options (#30718).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@17869 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-02-15 23:44:20 +00:00
Go MAEDA
489664df7e Show full width layout custom fields as block columns in issue listing (#26081).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@17865 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-02-13 14:06:10 +00:00
Go MAEDA
04ac58b3c5 New date filter operators: tomorrow, next week, next month (#4502).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17811 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-01-19 07:42:26 +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
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
824f98e353 Remove unused variable 'filter_options' from Query#add_filter (#29710).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17560 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-10-02 03:43:39 +00:00
Go MAEDA
b7f15fbadc Replace String#gsub with faster String#tr (#29363).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17469 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-08-12 23:40:44 +00:00
Go MAEDA
eee1c36b4b Replace Enumerable#sort with faster Enumerable#sort_by (#29299).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17462 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-08-02 21:54:21 +00:00