Marius Balteanu
88519264cf
Adds asset path to default to support old style theme ( #39111 ).
...
Patch by Takashi Kato (user:tohosaku).
git-svn-id: https://svn.redmine.org/redmine/trunk@23173 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-10-31 08:15:57 +00:00
Go MAEDA
ffb78c12c3
Fix invalid "theme-*" CSS class in body element when theme name contains spaces ( #26778 ).
...
Patch by Go MAEDA (user:maeda).
git-svn-id: https://svn.redmine.org/redmine/trunk@23144 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-10-19 08:21:18 +00:00
Go MAEDA
d46ca0e46f
Fix broken project list layout for projects scheduled for deletion ( #41217 ).
...
Patch by Liane Hampe (user:liane_hampe).
git-svn-id: https://svn.redmine.org/redmine/trunk@23026 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-09-06 02:57:40 +00:00
Marius Balteanu
218218b783
Fix flacky test after Rails 7 update which fails occasionally because database records are not ordered, so it is necessary to specify the sort order when testing ( #36320 ).
...
Patch by Takashi Kato (user:tohosaku).
git-svn-id: https://svn.redmine.org/redmine/trunk@22964 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-20 06:06:27 +00:00
Marius Balteanu
bfcddc2692
Ensures desired test adapter is used in Active Job tests ( #36320 ).
...
Patch by Takashi Kato (user:tohosaku).
git-svn-id: https://svn.redmine.org/redmine/trunk@22963 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-20 06:04:41 +00:00
Go MAEDA
6e21ae7209
Fix RuboCop offense Layout/SpaceAfterComma, one of the offenses enabled in rubocop-rails-omakase ( #39887 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22953 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-12 08:36:05 +00:00
Go MAEDA
74e2262efb
Fix RuboCop offense Layout/EmptyLinesAroundMethodBody, one of the offenses enabled in rubocop-rails-omakase ( #39887 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22950 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-12 07:46:58 +00:00
Go MAEDA
de76bb3a4a
Fix RuboCop offense Layout/EmptyLinesAroundClassBody, one of the offenses enabled in rubocop-rails-omakase ( #39887 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22949 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-12 07:42:12 +00:00
Marius Balteanu
a08f31ca28
Update users routing test to include assertions for bulk actions (delete, lock and unlock) ( #40913 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22931 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-07-14 10:43:31 +00:00
Marius Balteanu
c1eff66f68
Truncate git authors to 255 characters ( #40948 ).
...
The committer column in the database allows max 255 characters. With longer authors, this would result in a schema violation. By manually truncating the author field, we can avoid this.
Patch by Holger Just (@hjust).
git-svn-id: https://svn.redmine.org/redmine/trunk@22910 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-07-08 20:35:16 +00:00
Go MAEDA
b803bddb1f
Fix "ArgumentError: Invalid response name: unprocessable_entity" with Rack 3.1.0+ in assert_response ( #39889 ).
...
Rack 3.1.0 changed the symbol for HTTP status code 422 from `:unprocessable_entity` to `:unprocessable_content`.
Due to the change, `assert_response(:unprocessable_entity, ...)` raises ArgumentError with Rack 3.1.0+.
This fix is a follow-up to r22837.
git-svn-id: https://svn.redmine.org/redmine/trunk@22876 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-06-12 16:09:37 +00:00
Go MAEDA
a4e7d34cb7
Add updated_on and updated_by fields to Issues API journal response ( #40449 ).
...
Contributed by Thomas Hoffmann (@ThomasHo).
git-svn-id: https://svn.redmine.org/redmine/trunk@22846 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-05-27 07:41:57 +00:00
Go MAEDA
a9518e28b8
Fix RuboCop offense Rails/HttpStatus ( #39889 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22837 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-05-18 05:56:55 +00:00
Marius Balteanu
473db7e83b
Fixes failing tests caused by r22802 ( #40652 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22807 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-05-03 07:31:17 +00:00
Marius Balteanu
466a8aa78e
Fixes missing fixture: add :groups_users fixture to @Redmine::ApiTest::UsersTest@
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22774 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-03-21 21:12:26 +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
Marius Balteanu
89e1d165a9
Adds @:user_preference@ fixture to @Redmine::ApiTest::IssuesTest@ ( #40239 ).
...
Patch by Vincent Robert (@Nanego).
git-svn-id: https://svn.redmine.org/redmine/trunk@22734 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-25 23:22:02 +00:00
Marius Balteanu
eef8f625c8
Adds route for code highlighting languages page ( #39111 , #40137 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22732 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-25 21:41:14 +00:00
Marius Balteanu
e002d26e55
Add tests for @/help/wiki_syntax@ route ( #39111 , #40137 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22730 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-25 20:12:27 +00:00
Marius Balteanu
17a0ec4c9a
Fix ThemesTest may fail if a third-party theme having theme.js is installed ( #40205 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22707 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-13 22:58:30 +00:00
Marius Balteanu
f486091b24
Fix one more failing test related to favicon after r22692 ( #39111 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22706 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-13 22:54:36 +00:00
Marius Balteanu
437e46aa45
Fix failing tests related to favicon in themes after r22692 ( #39111 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22705 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-13 22:14:34 +00:00
Go MAEDA
759bececdd
Fix robots.txt route to enforce .txt format ( #40208 ).
...
Contributed by Liane Hampe (@liane_hampe).
git-svn-id: https://svn.redmine.org/redmine/trunk@22698 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-09 04:46:13 +00:00
Go MAEDA
5c492560b5
Fix RuboCop offense Layout/SpaceAroundBlockParameters ( #23307 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22668 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-01 11:45:48 +00:00
Marius Balteanu
c1fa75386c
Include auth_source in /users API response if request includes auth_source ( #23307 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22666 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-31 03:24:44 +00:00
Go MAEDA
4b1b6ce1db
Fix RuboCop offense Layout/SpaceAfterComma ( #40099 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22647 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-27 01:47:10 +00:00
Marius Balteanu
1e71db421a
Adds user status to users list API ( #38948 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22637 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-25 16:40:13 +00:00
Marius Balteanu
479c54bf1d
Include @auth_source@ in /users/:id API response if auth_source is requested (include=auth_source) and request is made by an administrator ( #23307 ).
...
Patch by Go MAEDA (@maeda) and Marius BĂLTEANU (@marius.balteanu).
git-svn-id: https://svn.redmine.org/redmine/trunk@22636 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-25 16:13:08 +00:00
Marius Balteanu
5676499ceb
Remove deprecated @status=@ param used to get all users. @status=*@ should be used now. ( #40124 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22635 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-25 15:38:39 +00:00
Marius Balteanu
88a8234513
Fix tests after asset pipeline implementation ( #39111 ).
...
Patch by Takashi Kato (@tohosaku).
git-svn-id: https://svn.redmine.org/redmine/trunk@22628 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-25 05:41:50 +00:00
Marius Balteanu
c99bb27e27
Add Propshaft library to enable the asset pipeline without modifying existing assets ( #39111 ).
...
Patch by Takashi Kato (@tohosaku).
git-svn-id: https://svn.redmine.org/redmine/trunk@22626 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-25 05:38:33 +00:00
Marius Balteanu
c196f4e2b9
Add test cases for @status=*@, @status=@ and @status=|1|3@ ( #40099 ).
...
Patch by Jens Krämer (@jkraemer) and Marius BĂLTEANU (@marius.balteanu).
git-svn-id: https://svn.redmine.org/redmine/trunk@22623 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-25 04:58:00 +00:00
Go MAEDA
c11f213e40
Fix RuboCop offense Style/HashSyntax (Don't mix styles in the same hash) introduced in r22551 ( #39862 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22566 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-12-27 06:07:22 +00:00
Marius Balteanu
a9b7f12900
Fixes that diff of a javascript file in repository module is not displayed with layout in Rails 7.1
...
(#39747 , #36320 ).
git-svn-id: https://svn.redmine.org/redmine/trunk@22563 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-12-26 15:47:43 +00:00
Marius Balteanu
c17b42509b
Fixes attachments functionality for (custom) plugins broken since fix for CVE-2022-44030 by adding a dynamic routing constraint which can be modified by plugins ( #39862 ).
...
Patch by @jkraemer.
git-svn-id: https://svn.redmine.org/redmine/trunk@22551 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-12-22 02:08:53 +00:00
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