Marius Balteanu
9c4df39c7d
Setting @--no-permission-check@ in the mail receiver should not allow creating issues in closed and archived projects ( #37187 ).
...
Patch by Felix Schäfer.
git-svn-id: https://svn.redmine.org/redmine/trunk@21641 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-06-16 21:32:02 +00:00
Marius Balteanu
68031b6544
Improved @fixed_version_id@ validation ( #37171 ).
...
Patch by Holger Just.
git-svn-id: https://svn.redmine.org/redmine/trunk@21638 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-06-16 15:13:09 +00:00
Marius Balteanu
e5550d5ed4
Ensure @category_id@ is valid within the issue's project ( #37171 ).
...
Patch by Holger Just.
git-svn-id: https://svn.redmine.org/redmine/trunk@21637 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-06-16 15:10:25 +00:00
Go MAEDA
aef5983bdd
The done ratio of a parent issue may not be 100% even if all subtasks have a done ratio of 100% ( #37151 ).
...
Patch by Go MAEDA.
git-svn-id: https://svn.redmine.org/redmine/trunk@21626 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-06-08 15:40:45 +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
fcf792615a
Issue#last_notes fallback does not respect notes visibility ( #37155 ).
...
Patch by Jens Krämer.
git-svn-id: https://svn.redmine.org/redmine/trunk@21613 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-05-28 09:52:48 +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
Go MAEDA
fe1202d626
Attachment activity provider SQL optimization ( #37057 ).
...
Patch by Jens Krämer.
git-svn-id: https://svn.redmine.org/redmine/trunk@21573 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-05-14 07:38:36 +00:00
Marius Balteanu
5914b0ebc2
Allow imported time entries to override the selected project with the actual project of their issue ( #36823 ).
...
Patch by Jens Krämer.
git-svn-id: https://svn.redmine.org/redmine/trunk@21522 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-04-03 07:54:27 +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
Marius Balteanu
883fcb89ee
Include roles of built-in "Non member users" and "Anonymous users" members when user is not a member of the project. This fixes #34029 .
...
git-svn-id: https://svn.redmine.org/redmine/trunk@21502 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-03-27 21:29:05 +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
750c5e89fb
Increase email address length limit from 60 to 254 ( #36825 ).
...
Contributed by Brice Beaumesnil.
git-svn-id: https://svn.redmine.org/redmine/trunk@21497 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-03-23 15:26:59 +00:00
Go MAEDA
2e86acfa87
Add tasks to prune registered users after a certain number of days ( #30998 ).
...
Patch by Yuichi HARADA and Marius BALTEANU.
git-svn-id: https://svn.redmine.org/redmine/trunk@21490 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-03-22 04:02:39 +00:00
Marius Balteanu
81575e7291
Skip validation of required custom fields when creating a project if user does not have permissions to see those custom fields ( #36593 ).
...
Patch by mathieu-mbru.
git-svn-id: https://svn.redmine.org/redmine/trunk@21488 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-03-21 22:13:19 +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
Marius Balteanu
e50190a82a
Automatically add the user to the watchers list after contributing to an issue ( #4347 ). User can enable/disable this feature from My Account.
...
Patch by Takenori TAKAKI and Jens Krämer.
git-svn-id: http://svn.redmine.org/redmine/trunk@21469 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-03-19 10:14:29 +00:00
Marius Balteanu
f286a6044b
Deprecate and rename rss_* methods to atom_* methods ( #15118 ).
...
Patch by Mischa The Evil and Marius BĂLTEANU
git-svn-id: http://svn.redmine.org/redmine/trunk@21467 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-03-19 09:56:46 +00:00
Go MAEDA
2d6f552599
Replace Member.find_or_new with ActiveRecord's find_or_initialize_by ( #36730 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21456 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-03-14 14:25:24 +00:00
Go MAEDA
cd688a1781
Improve performance of adding or removing members of a group ( #36696 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21447 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-03-05 08:41:55 +00:00
Marius Balteanu
4cb518049f
Add habtm relation between roles and queries_roles ( #36416 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21444 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-02-28 21:16:08 +00:00
Marius Balteanu
96d32a5226
Destroy overridden time entry activities and rows from the habtm join table @queries_roles@ on project deletion ( #36416 ).
...
Patch by Holger Just.
git-svn-id: http://svn.redmine.org/redmine/trunk@21437 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-02-24 19:44:36 +00:00
Marius Balteanu
ba74ba1c70
Allow users to be mentioned using @ in issues and wiki pages ( #13919 ):
...
* the user must have add watchers permission on that object in order to mention other users
* mentioned user will receive a notification email
* only visible users who can view the object can be mentioned
git-svn-id: http://svn.redmine.org/redmine/trunk@21435 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-02-23 21:16:18 +00:00
Marius Balteanu
9a738c2069
Fix time entries of sub-projects are not listed when activity is specified in filters ( #36248 ).
...
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21423 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-02-20 18:50:22 +00:00
Marius Balteanu
3e9f0023a1
Fix import with issue relations and invalid issues hangs without any error message in UI ( #35656 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21422 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-02-20 18:12:42 +00:00
Marius Balteanu
d8263dcdee
Return 404 if revision URL doesn't exist ( #36561 ).
...
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21413 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-02-18 08:03:52 +00:00
Marius Balteanu
eb868ad932
Add "required for administrators" option to Two-factor authentication settings that behaves like optional, but will require all users with administration rights to set up two-factor authentication at their next login ( #35439 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21395 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-02-01 20:17:27 +00:00
Marius Balteanu
972edf78cc
Improve readability of @must_activate_twofa?@ function ( #31920 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21389 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-29 09:43:46 +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
8bb06c04ba
Update session token only once per minute ( #29041 ).
...
Patch by Pavel Rosický.
git-svn-id: http://svn.redmine.org/redmine/trunk@21376 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-22 04:04:05 +00:00
Go MAEDA
9670c7fe22
Mailer.with_synched_deliveries doesn't correctly detect other async Queue adapters ( #36393 ).
...
Patch by Felix Schäfer.
git-svn-id: http://svn.redmine.org/redmine/trunk@21362 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-12 15:13:47 +00:00
Go MAEDA
4fbbcf3cdf
Fix wrong variable name in Import#set_default_settings ( #34718 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21354 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-07 10:06:28 +00:00
Go MAEDA
e00f28e82e
RuboCop: fix Style/RedundantSort in app/models/import.rb ( #34718 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21353 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-07 01:49:21 +00:00
Go MAEDA
ec0ce00b95
Auto guess file encoding when importing CSV file ( #34718 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21352 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-07 01:29:55 +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
Go MAEDA
f3f355a8bf
Fix that encoding drop-down in the import settings defaults to US-ASCII instead of general_csv_encoding in Thai ( #36377 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21336 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-02 02:38:32 +00:00
Go MAEDA
a99567846c
Fix that encoding drop-down in the import settings defaults to US-ASCII instead of general_csv_encoding in Korean ( #36377 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21335 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-02 02:37:13 +00:00
Go MAEDA
b6a26a60f3
Fixes for Performance/StringIdentifierArgument introduced in RuboCop Performance 1.13.0 ( #35142 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21330 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-12-29 06:12:27 +00:00
Go MAEDA
4db7397d2a
Use File.exist? instead of deprecated File.exists? ( #36358 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21327 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-12-27 03:20:31 +00:00
Go MAEDA
91c00f51ec
Fixes for Performance/BigDecimalWithNumericArgument introduced in RuboCop Performance 1.13.0 ( #35142 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21326 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-12-25 08:59:22 +00:00
Go MAEDA
fde1e18b3a
Saving time tracking activities without any change may turn a system activity into a project activity ( #36318 ).
...
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21319 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-12-21 06:42:47 +00:00
Go MAEDA
9955844da1
Drop OpenID support ( #35755 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21312 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-12-14 00:09:53 +00:00
Go MAEDA
3cb5f9d6c5
Include an authentication method name in LDAP connection error messages ( #33345 ).
...
Contributed by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21310 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-12-13 09:16:46 +00:00
Go MAEDA
b4dbd821c9
Issue Summary: add statistics about issues without assignee, version or category ( #13099 ).
...
Patch by Takenori TAKAKI.
git-svn-id: http://svn.redmine.org/redmine/trunk@21309 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-12-12 04:40:32 +00:00
Go MAEDA
5865edeba7
Psych 4: Psych::DisallowedClass exception when unserializing a setting value ( #36226 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21294 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-11-25 05:48:04 +00:00
Go MAEDA
0a5ef25e87
Download all attachments in a journal ( #35462 ).
...
Patch by Takenori TAKAKI.
git-svn-id: http://svn.redmine.org/redmine/trunk@21292 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-11-22 08:42:44 +00:00
Marius Balteanu
a914cf4c40
Switch to zeitwerk autoloader ( #29914 , #32938 ).
...
Patch by Takashi Kato.
git-svn-id: http://svn.redmine.org/redmine/trunk@21287 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-11-17 20:55:08 +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