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
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