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
Go MAEDA
578e367c8c
Allow addition/removal of subtasks to show in parent's history ( #6033 ).
...
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21273 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-11-08 14:22:06 +00:00
Marius Balteanu
243c110265
Move @lib/diff.rb@ to @lib/redmine/string_array_diff@ and extract @Diffable@ class to its own file ( #29914 , #32938 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21262 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-10-27 20:42:10 +00:00
Marius Balteanu
fe5c3f81de
Revert changes made in r21251 due to a test fail ( #29914 , #32938 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21254 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-10-21 06:30:52 +00:00
Marius Balteanu
7125fd70ce
Split multiple classes and modules that existed in the same file ( #29914 , #32938 ).
...
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21252 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-10-20 22:18:49 +00:00
Marius Balteanu
a256addaf7
Fix rubocop "Style/CombinableLoops" offense in wiki_page.rb ( #29914 , #32938 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21251 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-10-20 22:02:03 +00:00
Marius Balteanu
d91f644a14
Disable rubocop Lint/IneffectiveAccessModifier for @self.tokenized_like_conditions@ in @app/models/query.rb@ ( #35764 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21241 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-10-09 06:47:54 +00:00
Marius Balteanu
6cbf1f2015
Explicitly specify escape character using an ESCAPE on SQLite ( #35073 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21240 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-10-09 06:35:47 +00:00
Marius Balteanu
506fc9d74c
Tokenize search parameter in order to allow multiple search terms in:
...
* the "contains" operator of text filters
* in issue autocomplete
Patch by Jens Krämer.
git-svn-id: http://svn.redmine.org/redmine/trunk@21238 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-10-05 19:54:31 +00:00
Marius Balteanu
a0ef175ffe
Fix rubocop offense ( #35073 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21234 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-10-03 19:56:00 +00:00
Marius Balteanu
5c7d43d36a
Replace send with direct call because sanitize_sql_for_conditions is now public ( #35073 ).
...
Patch by Jens Krämer.
git-svn-id: http://svn.redmine.org/redmine/trunk@21233 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-10-03 19:46:53 +00:00
Marius Balteanu
0ec96f52f3
Use sanitize_sql_like in Query#sql_contains ( #35073 ).
...
Patch by Jens Krämer.
git-svn-id: http://svn.redmine.org/redmine/trunk@21232 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-10-03 19:45:20 +00:00
Marius Balteanu
05e9d7883b
Use sanitize_sql_like in like scopes ( #35073 ).
...
Patch Jens Krämer.
git-svn-id: http://svn.redmine.org/redmine/trunk@21231 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-10-03 19:44:39 +00:00
Marius Balteanu
715ffcda43
Append two spaces to lines when importing an email on CommonMark with hardbreaks disabled ( #32424 ).
...
Patch by Jens Krämer.
git-svn-id: http://svn.redmine.org/redmine/trunk@21228 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-10-03 19:20:04 +00:00
Go MAEDA
bc3938fca3
Fix NoMethodError when generating a link to a locked user ( #12795 , #35823 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21217 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-09-07 14:59:40 +00:00
Marius Balteanu
55ce8de0ae
Use ids instead of pluck(:id) ( #32977 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21208 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-09-06 18:33:14 +00:00
Marius Balteanu
4378b7e1b4
Remove references to deleted user from "user"-Format CustomFields when destroying an user ( #32977 ).
...
Patch by Jens Krämer.
git-svn-id: http://svn.redmine.org/redmine/trunk@21207 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-09-06 18:30:04 +00:00
Go MAEDA
1578c7207b
Fix that binmode specified twice ( #35539 , #35720 ).
...
Patch by Pavel Rosický.
git-svn-id: http://svn.redmine.org/redmine/trunk@21193 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-08-18 02:34:46 +00:00
Marius Balteanu
f31a1e2bbb
Fixed attachments deletable by user without edit issue permission on tracker ( #35634 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21142 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-08-05 23:50:11 +00:00
Marius Balteanu
805b36cbfb
Remove unused setting 'Blind carbon copy recipients (bcc)' ( #30820 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21130 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-08-01 17:25:13 +00:00
Go MAEDA
da4303a961
Locked users should not be displayed in the members box of the project overview page ( #35606 ).
...
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21090 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-07-27 04:55:08 +00:00