Marius Balteanu
1f46b0b236
Extract project query for admins to a separate ProjectAdminQuery model ( #42352 ).
...
Patch by Holger Just (user:hjust).
git-svn-id: https://svn.redmine.org/redmine/trunk@23531 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-03-09 23:25:12 +00:00
Marius Balteanu
10971361fa
Allow query class to select layout for QueriesController ( #42352 ).
...
Patch by Holger Just (user:hjust).
git-svn-id: https://svn.redmine.org/redmine/trunk@23529 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-03-09 23:20:50 +00:00
Marius Balteanu
db0ac01d3d
Fixes project query scope that does not take into account limit and offset options ( #41791 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@23300 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-11-23 11:17:54 +00:00
Marius Balteanu
586020045b
@ProjectQuery#results_scope@ should return @Project::ActiveRecord_Relation@ to keep the backward compatibility ( #41678 , #23954 ).
...
Patch by Nishida Yuya (user:nishidayuya).
git-svn-id: https://svn.redmine.org/redmine/trunk@23187 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-11-03 11:56:23 +00:00
Go MAEDA
f82d8314d9
Expose project updated_on column and filter in project query ( #40829 ).
...
Patch by Felix Schäfer (@felix).
git-svn-id: https://svn.redmine.org/redmine/trunk@22899 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-06-27 04:46:27 +00:00
Marius Balteanu
8b57ffc3c7
Adds the date of the last activity to the list of available columns for Projects ( #23954 ).
...
Patch by Frederico Camara (@fredsdc) and Marius BĂLTEANU (@marius.balteanu).
git-svn-id: https://svn.redmine.org/redmine/trunk@22811 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-05-03 13:14:18 +00:00
Marius Balteanu
38d950df55
Remove current year from source file copyright headers and update year in footer to 2024 ( #40043 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22746 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-26 22:55:54 +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
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
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
8be29b64d8
Reduce extra queries in @ProjectQuery.default@ ( #37135 ).
...
Patch by Dmitry Makurin.
git-svn-id: https://svn.redmine.org/redmine/trunk@21614 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-05-28 09:54:34 +00:00
Marius Balteanu
883aa3b5cc
Background job for project deletion ( #36691 ).
...
Due to the deletion of dependent objects (issues etc), project deletion may take a long time.
This patch moves the actual project deletion into an ActiveJob job. It also introduces a new project status (SCHEDULED_FOR_DELETION) that is used to effectively hide the project that is about to be deleted (and any potential descendant projects) from the system immediately.
A security notification is sent out to the user that deleted the project, informing about success / failure.
The projects list is extended to be able to filter for the new status, so in case of a failure, the project can still be accessed for examination.
Patch by Jens Krämer.
git-svn-id: https://svn.redmine.org/redmine/trunk@21591 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-05-17 20:45:41 +00:00
Marius Balteanu
83ed32e8d7
Reuse ProjectQuery filters on the admin project list ( #33422 ).
...
Patch by Takenori TAKAKI.
git-svn-id: https://svn.redmine.org/redmine/trunk@21519 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-04-01 15:08:52 +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
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
3f11223486
add empty line after guard clause to app/models/project_query.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20499 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-26 14:46:29 +00:00
Toshi MARUYAMA
56dfe3c070
remove spaces inside {} of app/models/project_query.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20408 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-17 12:41:11 +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
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
a853fc0e73
Fix sort projects table by custom field ( #32769 ).
...
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@19421 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-01-12 07:03:10 +00:00
Toshi MARUYAMA
eb41a074ce
cleanup: rubocop: fix Layout/EmptyLinesAroundClassBody in app/models/project_query.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19105 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-20 16:30:02 +00:00
Jean-Philippe Lang
97efebf08e
Make sure we cannot create a ProjectQuery on a given project ( #29482 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19093 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-20 15:53:04 +00:00
Toshi MARUYAMA
7edf7a009a
cleanup: rubocop: fix Layout/AlignArguments in app/models/project_query.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19000 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 09:18:17 +00:00
Jean-Philippe Lang
49222d01fb
Default sorting on projects by id is not relevant ( #29482 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18865 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-26 07:07:17 +00:00
Jean-Philippe Lang
95188f26c3
Set default columns for the projects list ( #29482 ).
...
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@18766 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-19 11:43:23 +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
e7d52eb0af
Filter after parent project ( #29482 ).
...
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@18763 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-19 11:38:15 +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