Commit Graph

254 Commits

Author SHA1 Message Date
Toshi MARUYAMA
2ccc46c955 fix source indent of test/unit/query_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20201 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-26 13:35:50 +00:00
Toshi MARUYAMA
b22dad45a8 fix source indent of test/unit/query_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20200 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-26 13:35:42 +00:00
Toshi MARUYAMA
af0f1c878a shorten long line of test/unit/query_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20164 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-22 14:18:21 +00:00
Go MAEDA
eab671320a Fix RuboCop offense Style/RedundantCapitalW due to r20154 (#34142).
git-svn-id: http://svn.redmine.org/redmine/trunk@20155 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-22 02:34:53 +00:00
Go MAEDA
8018beb5f0 Drop Ruby 2.3 support (#34142).
git-svn-id: http://svn.redmine.org/redmine/trunk@20154 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-21 02:41:13 +00:00
Toshi MARUYAMA
1856a025bc add space after comma to test/unit/query_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19914 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-07-19 14:05:35 +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
c5ec830b68 Remove duplicate keys from sort criteria (#32737).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19636 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-04-02 06:22:23 +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
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
e2ed6f27b6 Test for r19363 (#32546).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19364 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-12-12 01:00:10 +00:00
Toshi MARUYAMA
17e05f3590 cleanup: rubocop: fix Layout/SpaceInsideParens in test/unit/query_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19247 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-24 12:57:39 +00:00
Go MAEDA
c8ae0c4246 Add a fixture for QueryTest#test_filter_my_bookmarks (#29482).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18881 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-30 02:23:23 +00:00
Toshi MARUYAMA
a54f13888b code cleanup: rubocop: revert r18854
git-svn-id: http://svn.redmine.org/redmine/trunk@18868 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-26 12:54:00 +00:00
Toshi MARUYAMA
6ae403e93e code cleanup: rubocop: fix Layout/AlignArguments in test/unit/query_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18855 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-23 13:27:10 +00:00
Toshi MARUYAMA
217347b5cf code cleanup: rubocop: fix Layout/SpaceBeforeBlockBraces in test/unit/query_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18854 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-23 13:26:57 +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
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
e2cb4be892 code cleanup: rubocop: fix Layout/EmptyLines in test/unit/query_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18741 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-19 07:27:35 +00:00
Toshi MARUYAMA
7b7a1a3ed5 code cleanup: rubocop: fix Layout/LeadingCommentSpace in test/unit/query_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18653 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-14 11:14:12 +00:00
Toshi MARUYAMA
f3f1fad8de code cleanup: rubocop: fix Layout/SpaceAroundBlockParameters in test/unit/query_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18645 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-13 16:22:42 +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
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
ef856653ac Code cleanup: RuboCop: Fix Performance/InefficientHashSearch
git-svn-id: http://svn.redmine.org/redmine/trunk@18423 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-09-03 07:42:05 +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
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
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
b900ae6107 Support frozen_string_literal in test/**/*.rb (#26561).
Contributed by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@17996 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-21 03:27:53 +00:00
Go MAEDA
26509e7f4c Decode hexadecimal-encoded literals in order to be frozen string literals friendly (#31004).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17991 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-19 15:43:55 +00:00
Go MAEDA
e70c283a22 Remove unnecessary encoding magic comment (#31034).
The default script encoding is UTF-8 in Ruby 2.0 or later.

Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17976 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-16 06:26:33 +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
d25f697d39 Fix the test (#4502).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17942 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-13 15:50:24 +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
a08b64dfbb Ensure that the current language is 'en' in the test (#30718).
Patch by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@17868 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-02-15 23:38:55 +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
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
Go MAEDA
14d441a144 Remove blank keys from sort criteria (#30009).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@17638 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-11-26 05:22:04 +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
1d596677f2 Redmine::SortCriteria#normalize! does not limit properly the maximum number of elements (#29632).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17494 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-09-20 02:08:15 +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
d8a2024715 Dangerous query method deprecation warnings (#23630).
git-svn-id: http://svn.redmine.org/redmine/trunk@17411 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-06-23 05:19:07 +00:00
Jean-Philippe Lang
baab521b8b Fixed that "test_editable_by_for_global_query" and "test_editable_by_for_global_query_with_project_set" are identical (#28264).
git-svn-id: http://svn.redmine.org/redmine/trunk@17384 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-06-16 10:53:48 +00:00
Jean-Philippe Lang
af2730de5e Global and public custom queries are shown as editable to non administrators in projects (#28264).
git-svn-id: http://svn.redmine.org/redmine/trunk@17292 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-04-08 13:23:30 +00:00
Go MAEDA
e5a8bcfd72 Ignore archived project memberships when calculating issue query visibility (#28180).
Patch by Holger Just.


git-svn-id: http://svn.redmine.org/redmine/trunk@17257 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-04-07 00:26:54 +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