Commit Graph

148 Commits

Author SHA1 Message Date
Go MAEDA
d9ef2d191c Fix RuboCop offense Lint/SymbolConversion (#39887).
git-svn-id: https://svn.redmine.org/redmine/trunk@22531 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-12-20 07:16:35 +00:00
Go MAEDA
c51e4937e7 Fix RuboCop offense Style/SuperWithArgsParentheses (#39887).
git-svn-id: https://svn.redmine.org/redmine/trunk@22530 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-12-20 07:15:11 +00:00
Marius Balteanu
98fa89400e Fix an expression of non-boolean type specified in a context where a condition is expected when MSSQL is used (#39443).
Patch by Pavel Rosický.

git-svn-id: https://svn.redmine.org/redmine/trunk@22417 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-11-11 06:00:20 +00:00
Go MAEDA
bfe619ae7e Optimize IssueQuery#sql_for_assigned_to_role_field for PostgreSQL (#38319).
Contributed by Vincent Robert.


git-svn-id: https://svn.redmine.org/redmine/trunk@22334 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-10-09 05:30:04 +00:00
Go MAEDA
ad3e2bdd1b Refactor SQL construction in IssueQuery#sql_for_assigned_to_role_field for better readability (#38319).
git-svn-id: https://svn.redmine.org/redmine/trunk@22333 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-10-09 05:19:28 +00:00
Go MAEDA
f500357ba2 Fix SQL error when passing invalid value to "Related to" filter (#38301).
git-svn-id: https://svn.redmine.org/redmine/trunk@22256 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-06-21 06:05:09 +00:00
Go MAEDA
2caf5eaf97 New issues filter operators "has been", "has never been", and "changed from" (#38527).
Patch by Go MAEDA.


git-svn-id: https://svn.redmine.org/redmine/trunk@22240 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-05-11 02:08:41 +00:00
Go MAEDA
5352225a8c Make the "Any searchable text" filter search only open issues when the status filter is set to "open" (#38402).
git-svn-id: https://svn.redmine.org/redmine/trunk@22221 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-05-01 14:33:22 +00:00
Go MAEDA
fae39a9542 Fix "Any searchable text" filter doesn't support the project filter with the value "my projects" or "my bookmarks" (#38402).
git-svn-id: https://svn.redmine.org/redmine/trunk@22203 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-04-18 12:05:49 +00:00
Go MAEDA
0f6507a607 Change the notation of "contains any of" filter operator to "*~" (#38435).
git-svn-id: https://svn.redmine.org/redmine/trunk@22197 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-04-16 08:02:30 +00:00
Go MAEDA
1f5c8742e3 Fix "contains any of" operator is not taken into account in File and File description filters (#38435).
git-svn-id: https://svn.redmine.org/redmine/trunk@22195 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-04-16 05:46:52 +00:00
Go MAEDA
404a5b1de0 "contains any of" operator for text filters to perform OR search of multiple terms (#38435).
Patch by Go MAEDA.


git-svn-id: https://svn.redmine.org/redmine/trunk@22188 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-04-14 23:50:26 +00:00
Go MAEDA
972e51bc89 Change the behavior of the "Any searchable text" filter from OR search to AND search (#38402).
Patch by Go MAEDA.


git-svn-id: https://svn.redmine.org/redmine/trunk@22169 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-04-05 23:36:18 +00:00
Go MAEDA
27b8f57fd8 Fix a bug the "doesn't contain" operator returns no issues if the search finds no issues (#38402).
Patch by Holger Just.


git-svn-id: https://svn.redmine.org/redmine/trunk@22168 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-04-05 13:52:53 +00:00
Go MAEDA
d7d27374b8 Add "Any searchable text" filter for issues (#38402).
Patch by Go MAEDA and Holger Just.


git-svn-id: https://svn.redmine.org/redmine/trunk@22164 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-04-05 09:22:34 +00:00
Go MAEDA
0fb007cc02 Multiple issue ids in "Related to" filter (#38301).
Patch by Tomoko Shimizu, Ko Nagase, and Takashi Kato.


git-svn-id: https://svn.redmine.org/redmine/trunk@22156 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-03-25 06:27:30 +00:00
Go MAEDA
92bd67c279 Update copyright year to 2023 (#38141).
git-svn-id: https://svn.redmine.org/redmine/trunk@22013 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-01 06:19:35 +00:00
Go MAEDA
7f6d9d3be9 Check visibility for passed user in IssueQuery.default (#37499, #37608).
Patch by  Holger Just.


git-svn-id: https://svn.redmine.org/redmine/trunk@21781 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-08-26 01:19:10 +00:00
Go MAEDA
72e2efdc60 Default query should not be applied if the query is not allowed to be set as the default (#37499).
Patch by Mizuki ISHIKAWA.


git-svn-id: https://svn.redmine.org/redmine/trunk@21748 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-07-31 13:33:27 +00:00
Marius Balteanu
9b25b348c3 Allow to filter issues by its version status with shared versions (#36824, #30924).
Patch by Holger Just.


git-svn-id: https://svn.redmine.org/redmine/trunk@21499 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-03-24 16:52:20 +00:00
Go MAEDA
ab59d9bf87 Do not fire a query to get user default query when user has no default query set (#36503).
Patch by Dmitry Makurin.


git-svn-id: https://svn.redmine.org/redmine/trunk@21485 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-03-21 06:10:54 +00:00
Go MAEDA
fccc19a451 Reverts r21480 (#36503).
git-svn-id: https://svn.redmine.org/redmine/trunk@21484 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-03-21 06:00:21 +00:00
Marius Balteanu
d07c7d8e26 Do not fire a query to get user default query when user has no default query set (#36503).
Patch by Dmitry Makurin.



git-svn-id: http://svn.redmine.org/redmine/trunk@21480 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-03-20 21:38:45 +00:00
Go MAEDA
146097c610 Reduce extra database queries in IssueQuery.default (#7360, #36503).
git-svn-id: http://svn.redmine.org/redmine/trunk@21387 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-23 11:55:44 +00:00
Go MAEDA
3686b77eb6 Update copyright year in source files to 2022 (#36379).
git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-02 05:29:10 +00:00
Marius Balteanu
70f8ca64dd You can configure default project queries in the following places (#35795):
* App-level: Administration > Projects > Default query (Projects list defaults section)
* User-level: My account > Default project query

git-svn-id: http://svn.redmine.org/redmine/trunk@21281 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-11-15 21:58:39 +00:00
Go MAEDA
7f965286ed Default issue query (#7360).
Patch by Katsuya HIDAKA (the author of https://github.com/hidakatsuya/redmine_default_custom_query), Takenori TAKAKI, Olivier Chabert, and Jens Krämer.


git-svn-id: http://svn.redmine.org/redmine/trunk@21061 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-07-06 06:01:50 +00:00
Go MAEDA
ffc9101e23 Use base_scope for issue query results (#35396).
Patch by Alexander Meindl.


git-svn-id: http://svn.redmine.org/redmine/trunk@21040 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-06-19 02:16:38 +00:00
Go MAEDA
a0bf4e5cd3 Filter issues by file description (#34715).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@21034 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-06-14 07:01:27 +00:00
Go MAEDA
7ab1a667a9 Filter issues by notes (#5893).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20955 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-04-21 07:01:02 +00:00
Go MAEDA
74a6ff0230 Replace pluck().first with pick() (#32909).
Patch by Pavel Rosický and Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@20907 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-04-03 01:34:45 +00:00
Go MAEDA
3e36b5c452 Update copyright year in source files to 2021 (#33069).
git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-03-25 06:58:56 +00:00
Toshi MARUYAMA
69646935a1 shorten long line of app/models/issue_query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20669 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-19 17:31:57 +00:00
Toshi MARUYAMA
5f1bce0032 shorten long line of IssueQuery#available_columns
git-svn-id: http://svn.redmine.org/redmine/trunk@20522 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-30 15:48:36 +00:00
Toshi MARUYAMA
b81577a08d shorten long line of IssueQuery#sql_for_relations
git-svn-id: http://svn.redmine.org/redmine/trunk@20516 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-29 12:48:31 +00:00
Toshi MARUYAMA
b96d4c06e5 add empty line after guard clause to app/models/issue_query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20502 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-26 14:46:52 +00:00
Toshi MARUYAMA
99f567a7e3 shorten long line of IssueQuery#joins_for_order_statement
git-svn-id: http://svn.redmine.org/redmine/trunk@20497 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-26 14:46:13 +00:00
Toshi MARUYAMA
fde9b61757 remove spaces inside {} of app/models/issue_query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20399 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-16 12:22:47 +00:00
Toshi MARUYAMA
14e3857f52 use "do end" instead of {} at app/models/issue_query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20289 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-07 12:31:18 +00:00
Toshi MARUYAMA
d84e0366a1 use "do end" instead of {} at app/models/issue_query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20286 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-07 12:30:54 +00:00
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