Marius Balteanu
88b776df2f
Update integration test for plugin routes after r22515 ( #36320 , #39803 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22516 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-12-12 16:45:43 +00:00
Marius Balteanu
92125fa467
Refactor integration test for plugins routing (added in r22328) in order to use the new plugins directory path for test environment ( #36320 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22513 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-12-11 10:56:02 +00:00
Marius Balteanu
7b911245d3
Updates Rails to 7.1.2 ( #36320 ).
...
Patch by Takashi Kato.
git-svn-id: https://svn.redmine.org/redmine/trunk@22488 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-11-27 20:58:55 +00:00
Marius Balteanu
e5034f5ac0
Delete whole @tmp/plugins@ directory ( #38707 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22374 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-10-24 20:13:15 +00:00
Marius Balteanu
bfe6121ef3
Fixes a random failing test in @test_plugins@ (integration/routing/plugins_test.rb) by enforcing the plugins path to @tmp/plugins@ ( #38707 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22373 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-10-24 20:06:54 +00:00
Marius Balteanu
b141aed19f
Fix typo in plugins_test.rb ( #38707 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22371 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-10-23 17:51:02 +00:00
Go MAEDA
03280712d3
Fix RuboCop offenses due to r22343: Style/RedundantRegexpEscape, Layout/EmptyLinesAroundMethodBody, and Style/HashSyntax ( #39181 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22346 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-10-16 14:17:35 +00:00
Go MAEDA
28a45b7144
Add missing Homepage attribute in Projects API response ( #39113 ).
...
Patch by Vincent Robert.
git-svn-id: https://svn.redmine.org/redmine/trunk@22345 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-10-15 02:18:26 +00:00
Go MAEDA
ff93ee3cfa
API compatibility to legacy status and name query params ( #39181 , #37674 )
...
- adds 'name' filter that mimics the old behavior of matching on email, login, first- or lastname
- maps the 'status' url parameter to the status_id filter, and the 'name' url parameter to the new name filter
Patch by Jens Krämer.
git-svn-id: https://svn.redmine.org/redmine/trunk@22343 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-10-15 01:42:07 +00:00
Go MAEDA
b81818100c
Fix RuboCop offense Rails/RedundantActiveRecordAllMethod ( #37248 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22340 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-10-12 23:10:25 +00:00
Go MAEDA
9ab7d166b2
Fix RuboCop offences introduced in r22328 ( #38707 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22330 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-10-06 08:18:26 +00:00
Go MAEDA
291206fda1
Add test for r22327 ( #38707 ).
...
Patch by Nishida Yuya.
git-svn-id: https://svn.redmine.org/redmine/trunk@22328 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-10-06 06:12:24 +00:00
Go MAEDA
fe9ef2fc27
Add description for issue statuses and display them in issue new/edit form ( #2568 ).
...
Patch by Takenori TAKAKI.
git-svn-id: https://svn.redmine.org/redmine/trunk@22288 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-08-31 13:21:34 +00:00
Go MAEDA
66f16ff348
Unable to retrieve custom fields set as "For all projects" via Projects API ( #38668 ).
...
Patch by Hirokazu Onozato.
git-svn-id: https://svn.redmine.org/redmine/trunk@22270 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-06-30 09:20:09 +00:00
Go MAEDA
555acea780
Check if the user has the permission to add notes or edit an issue when adding an issue attachments ( #38297 ).
...
Patch by Holger Just.
git-svn-id: https://svn.redmine.org/redmine/trunk@22122 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-03-02 04:32:34 +00:00
Go MAEDA
c80c7f1d26
Fix robots.txt to disallow issue lists with a sort or query_id parameter in any position, not just first ( #38201 ).
...
Patch by Felix Schäfer.
git-svn-id: https://svn.redmine.org/redmine/trunk@22070 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-23 08:08:21 +00:00
Go MAEDA
9d65eee424
Avoid double-render error with ApplicationController#find_optional_project ( #38063 ).
...
Patch by Holger Just.
git-svn-id: https://svn.redmine.org/redmine/trunk@22066 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-20 03:31:41 +00:00
Go MAEDA
dbf8c1d921
Fix RuboCop offense Performance/RedundantEqualityComparisonBlock ( #38146 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22031 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-11 13:30:25 +00:00
Go MAEDA
1d3a76580f
Fix RuboCop offense Performance/FixedSize ( #38146 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22030 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-11 13:29:11 +00:00
Go MAEDA
1481c721a2
Use require_relative instead of require File.expand_path(..., __FILE__) ( #38093 ).
...
Patch by Go MAEDA.
git-svn-id: https://svn.redmine.org/redmine/trunk@22016 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-01 07:13:39 +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
10af27eac3
Fix RuboCop offense Performance/StringInclude ( #37247 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22003 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-12-26 02:46:53 +00:00
Marius Balteanu
df9ff95f2b
Add tests for #37772 .
...
Patch by Holger Just.
git-svn-id: https://svn.redmine.org/redmine/trunk@21979 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-12-01 15:27:17 +00:00
Marius Balteanu
e96d8038fc
Revert r21975.
...
git-svn-id: https://svn.redmine.org/redmine/trunk@21977 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-12-01 15:21:37 +00:00
Marius Balteanu
3f5f020a78
Add tests for #37772 .
...
Patch by Holger Just.
git-svn-id: https://svn.redmine.org/redmine/trunk@21975 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-12-01 15:18:04 +00:00
Go MAEDA
0f8c36869e
Disallow all in /robots.txt if login is required ( #37807 ).
...
Patch by Holger Just.
git-svn-id: https://svn.redmine.org/redmine/trunk@21940 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-11-01 03:28:08 +00:00
Go MAEDA
afbec488c4
Always allow access to /robots.txt for Anonymous ( #37807 ).
...
Patch by Holger Just.
git-svn-id: https://svn.redmine.org/redmine/trunk@21939 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-11-01 03:26:15 +00:00
Go MAEDA
dcdf27b895
Render all visible projects in robots.txt (including closed projects) ( #37807 ).
...
Patch by Holger Just.
git-svn-id: https://svn.redmine.org/redmine/trunk@21938 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-11-01 03:24:17 +00:00
Go MAEDA
783e986048
Add missing fixture to test/integration/issue_test.rb ( #37851 ).
...
Patch by Dmitry Makurin.
git-svn-id: https://svn.redmine.org/redmine/trunk@21932 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-10-29 08:24:03 +00:00
Go MAEDA
ee1476f802
Fix RuboCop offense Rails/Pluck ( #37248 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@21928 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-10-28 07:50:11 +00:00
Go MAEDA
099a9adcb3
Add description field to custom fields API ( #37617 ).
...
Patch by Holger Just and Go MAEDA.
git-svn-id: https://svn.redmine.org/redmine/trunk@21793 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-09-01 05:25:04 +00:00
Go MAEDA
8c1fda0b5d
Repository tab is not displayed if no repository is set as the main repository ( #33953 ).
...
Patch by Yuichi HARADA.
git-svn-id: https://svn.redmine.org/redmine/trunk@21741 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-07-27 15:35:25 +00:00
Go MAEDA
3164895f69
Open Help in a separate tab ( #1069 ).
...
Contributed by Vijay Kiran.
git-svn-id: https://svn.redmine.org/redmine/trunk@21737 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-07-22 01:33:38 +00:00
Marius Balteanu
3ce719b120
Fix internal server error when trying to retrieve AnonymousUser's information via Users API ( #37157 ).
...
Patch by Yuichi HARADA.
git-svn-id: https://svn.redmine.org/redmine/trunk@21606 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-05-27 22:14:59 +00:00
Go MAEDA
3258ff7244
Fix test failure due to r21601 ( #36938 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@21603 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-05-25 13:52:04 +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
32abb15847
Add support for PUT API to journals ( #10171 ).
...
Patch by Mizuki ISHIKAWA .
git-svn-id: https://svn.redmine.org/redmine/trunk@21496 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-03-23 14:26:47 +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
Marius Balteanu
1ebb8920d2
Update API test to use token based authentication when twofa is enabled for user ( #35001 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21441 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-02-25 07:57:37 +00:00
Marius Balteanu
1db2566ff9
Disable API authentication with username and password when two-factor authentication is enabled for the user ( #35001 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21436 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-02-24 19:10:35 +00:00
Marius Balteanu
9f82265782
Fix WikiContentVersion API returns 500 if author is nil ( #36494 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21414 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-02-18 08:08:10 +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
5ea0340b8d
Add test for #34766 .
...
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21393 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-30 13:39:55 +00:00
Marius Balteanu
4807beaebf
Explicitly specify text formatting in the tests ( #35952 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21386 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-22 10:11:13 +00:00
Go MAEDA
5d0798c0d1
Include avatar URL in Users API ( #36303 ).
...
Contributed by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21375 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-21 00:31:11 +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
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
be61fe9626
MenuManagerTest randomly fails ( #36241 ).
...
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21297 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-11-29 13:50:47 +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