Commit Graph

18825 Commits

Author SHA1 Message Date
Marius Balteanu
3407711118 Introduces Stimulus as a Javascript framework (#42510):
* old @application.js@ from @app/assets/javascripts@ become @application-legacy.js@ in favour of @application.js@ provided by Stimulus
 * adds @importmap@ gem to handle JavaScript modules using logical names that map to versioned/digested files
 
 Stimulus will be used for new functionality and, over time, to migrate existing features from JQuery / JQuery UI.

git-svn-id: https://svn.redmine.org/redmine/trunk@23697 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-21 05:48:38 +00:00
Marius Balteanu
524a41eb6c Disable header_ids, tasklist, shortcodes extensions and github_pre_lang render option that are now enabled by default in commonmark (#40197).
git-svn-id: https://svn.redmine.org/redmine/trunk@23696 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-21 05:29:13 +00:00
Marius Balteanu
320ed9c3d8 Updates commonmarker to 2.3.0 (#40197).
git-svn-id: https://svn.redmine.org/redmine/trunk@23695 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-21 05:26:03 +00:00
Marius Balteanu
29872344b3 Drop support for Ruby 3.1 (#42496).
git-svn-id: https://svn.redmine.org/redmine/trunk@23694 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-20 07:55:11 +00:00
Marius Balteanu
9a9ba1d217 Updates for 6.0.5 release.
git-svn-id: https://svn.redmine.org/redmine/trunk@23689 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-20 07:15:47 +00:00
Go MAEDA
abbaaf73fa Add missing _filters.html.erb view file that was not included in r23686 (#42335).
git-svn-id: https://svn.redmine.org/redmine/trunk@23688 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-20 03:33:53 +00:00
Go MAEDA
18909613f0 Ensure Mercurial uses Python >= 3.5 (#33784).
Redmine no longer supports Python 2.7.
Mercurial does not support Python 3.0 to 3.4.

Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@23687 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-20 02:22:18 +00:00
Go MAEDA
ce94a1d71a Adds interval ratio setting to progressbar custom field (#42335).
Patch by Marius BĂLTEANU (user:marius.balteanu) and Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@23686 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-19 08:46:02 +00:00
Marius Balteanu
d76cf64516 Fixes rubocop offense "Layout/SpaceAroundBlockParameters: Space before first block parameter detected" (#42509).
git-svn-id: https://svn.redmine.org/redmine/trunk@23684 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-19 07:31:03 +00:00
Marius Balteanu
ae566b3bf9 Fixes plugin activity SVG icons broken when multiple plugins are loaded (#42509).
Patch by Stefan Rinkes (user:srinkes).

git-svn-id: https://svn.redmine.org/redmine/trunk@23683 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-19 07:24:46 +00:00
Marius Balteanu
de96d418b1 Add "editable" attribute in the custom fields API response (#41935).
git-svn-id: https://svn.redmine.org/redmine/trunk@23678 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-18 14:44:17 +00:00
Marius Balteanu
33ce711f99 Fix tests after r23672 (#42545).
git-svn-id: https://svn.redmine.org/redmine/trunk@23675 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-18 14:10:01 +00:00
Marius Balteanu
5f29dd87b2 Replaces legacy atom icon with file-rss filled (#42577).
git-svn-id: https://svn.redmine.org/redmine/trunk@23673 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-18 13:41:05 +00:00
Marius Balteanu
e0403f99b1 Fixes commit message in issue history might be rendered in incorrect context (#42545).
Patch by Felix Schäfer (user:felix).

git-svn-id: https://svn.redmine.org/redmine/trunk@23672 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-18 13:04:37 +00:00
Marius Balteanu
b9bb441dc6 Hide user icon in add watchers modal when gravatar is disabled (#42596).
git-svn-id: https://svn.redmine.org/redmine/trunk@23668 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-18 12:19:05 +00:00
Marius Balteanu
727edd15a6 Replaces legacy del and attachment icons with SVG in attachments form (#42576).
git-svn-id: https://svn.redmine.org/redmine/trunk@23667 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-18 11:43:31 +00:00
Go MAEDA
41ed48fd7d NoMethodError when creating a user with an invalid email address and domain restrictions are enabled (#42584).
Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@23666 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-18 07:43:14 +00:00
Go MAEDA
38730e5b3c Add a button to copy pre code block content to the clipboard (#29214).
Patch by Mizuki ISHIKAWA (user:ishikawa999) and Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@23663 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-17 06:52:50 +00:00
Go MAEDA
113d7f50a9 Optimize autocomplete issue listing triggered by typing "##" by eager loading trackers (#42574).
Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@23660 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-16 06:50:26 +00:00
Go MAEDA
c3f4d90ad7 Updates translations for Array#to_sentence (#42580).
Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@23659 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-16 00:15:47 +00:00
Marius Balteanu
5c0525a459 Prevent delete relation icon overflow with long related issue subjects on related issues sections on an issue page in mobile view (#41828).
git-svn-id: https://svn.redmine.org/redmine/trunk@23658 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-15 06:23:07 +00:00
Marius Balteanu
99cc321840 Add/remove @icon-rtl@ class when switching between angle-down / angle-right SVG icons (#42465).
git-svn-id: https://svn.redmine.org/redmine/trunk@23656 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-13 20:57:15 +00:00
Marius Balteanu
6951e569c4 Improve SVG icon compatibility with RTL languages by adding the @rtl@ parameter to @sprite_icon@ method. When it is @true@, it adds the 'icon-rtl' class to SVG icons, flipping their direction if an RTL language is used (#42465).
git-svn-id: https://svn.redmine.org/redmine/trunk@23654 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-13 20:30:19 +00:00
Marius Balteanu
e85cd113fe Do not show legacy bullet add icon in search for watchers if SVG is rendered for RTL languages (#42465).
git-svn-id: https://svn.redmine.org/redmine/trunk@23652 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-13 07:49:44 +00:00
Marius Balteanu
40c7203b08 Replaces magnifier legacy icon with SVG icon for RTL language (#42465).
git-svn-id: https://svn.redmine.org/redmine/trunk@23651 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-13 07:47:56 +00:00
Marius Balteanu
6c5136e2f3 Removes extra padding in administration menu icons for RTL languages (#42465).
git-svn-id: https://svn.redmine.org/redmine/trunk@23650 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-13 07:21:40 +00:00
Marius Balteanu
33384d74a5 Fixes sidebar switch button display in RTL language (#42575).
git-svn-id: https://svn.redmine.org/redmine/trunk@23649 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-13 07:13:06 +00:00
Go MAEDA
b5dbbc98ee Update versions of Ruby standard gems to match those bundled with Ruby 3.4 (#41976).
git-svn-id: https://svn.redmine.org/redmine/trunk@23648 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-12 05:23:26 +00:00
Go MAEDA
3d0a5dd763 Disable RuboCop Style/BarePercentLiterals (#41884).
git-svn-id: https://svn.redmine.org/redmine/trunk@23647 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-12 05:09:41 +00:00
Go MAEDA
aa1a4f2901 Traditional Chinese translation update (#42573).
Patch by ChunChang (Nagaharu) Lo (user:shortie).


git-svn-id: https://svn.redmine.org/redmine/trunk@23646 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-12 04:56:26 +00:00
Go MAEDA
923918542b Fix random test failure in MemberTest#test_update_roles_with_inherited_roles due to non-deterministic ordering (#42572).
git-svn-id: https://svn.redmine.org/redmine/trunk@23641 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-12 04:10:48 +00:00
Go MAEDA
2f443f840c Update Rubocop Rails to 2.31 (#42044).
git-svn-id: https://svn.redmine.org/redmine/trunk@23640 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-12 03:43:01 +00:00
Go MAEDA
92b7df7d4e Update Rubocop Performance to 1.25 (#41761).
git-svn-id: https://svn.redmine.org/redmine/trunk@23639 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-12 03:34:27 +00:00
Go MAEDA
a08ce1c54f Update RuboCop to 1.75 (#41884).
git-svn-id: https://svn.redmine.org/redmine/trunk@23638 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-12 02:07:11 +00:00
Go MAEDA
1d0a389b40 Update RuboCop to 1.74 (#41884).
git-svn-id: https://svn.redmine.org/redmine/trunk@23637 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-12 01:52:56 +00:00
Go MAEDA
a376cd6c73 Regenerate .rubocop_todo.yml (#41884).
git-svn-id: https://svn.redmine.org/redmine/trunk@23636 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-12 01:47:36 +00:00
Go MAEDA
065a44749d Fix RuboCop Lint/UselessConstantScoping (#41884).
git-svn-id: https://svn.redmine.org/redmine/trunk@23635 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-11 10:19:05 +00:00
Go MAEDA
626bd9efe2 Fix RuboCop Style/ComparableBetween (#41884).
git-svn-id: https://svn.redmine.org/redmine/trunk@23634 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-11 10:11:44 +00:00
Go MAEDA
54285f461c Fix random test failure in ProjectAdminQueryTest due to missing language setting (#42562).
git-svn-id: https://svn.redmine.org/redmine/trunk@23631 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-11 09:50:45 +00:00
Go MAEDA
5528c81022 Revert r23629: incorrect issue number (#41884) in commit message
git-svn-id: https://svn.redmine.org/redmine/trunk@23630 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-11 09:49:32 +00:00
Go MAEDA
42dbfd3c9f Fix random test failure in ProjectAdminQueryTest due to missing language setting (#41884).
git-svn-id: https://svn.redmine.org/redmine/trunk@23629 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-11 09:44:07 +00:00
Go MAEDA
5f49539633 Update RuboCop to 1.73 (#41884).
git-svn-id: https://svn.redmine.org/redmine/trunk@23628 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-11 09:39:39 +00:00
Go MAEDA
08ea4e0323 Fix RuboCop Style/RedundantCondition (#41884).
git-svn-id: https://svn.redmine.org/redmine/trunk@23627 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-11 09:21:17 +00:00
Go MAEDA
5668aa651f Fix RuboCop Lint/SuppressedExceptionInNumberConversion (#41884).
git-svn-id: https://svn.redmine.org/redmine/trunk@23626 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-11 09:00:58 +00:00
Go MAEDA
c77c1d078b Exclude known RuboCop Lint/UselessConstantScoping offenses to prevent regressions while allowing new checks (#41884).
git-svn-id: https://svn.redmine.org/redmine/trunk@23625 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-11 08:44:08 +00:00
Go MAEDA
15d33f6827 Fix RuboCop Style/RedundantFormat by renaming custom format method to to_html to avoid name conflict with Kernel#format (#41884).
git-svn-id: https://svn.redmine.org/redmine/trunk@23624 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-11 08:37:27 +00:00
Go MAEDA
dd3d6206bd Update RuboCop to 1.72 (#41884).
git-svn-id: https://svn.redmine.org/redmine/trunk@23623 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-11 08:12:37 +00:00
Go MAEDA
dcdd453287 Fix RuboCop Lint/SharedMutableDefault (#41884).
Although `Hash.new {|h, k| h[k] = []}` is commonly used for this pattern, `Hash.new {|_h, _k| []}` is more appropriate here to avoid modifying the hash when accessing missing keys, which would cause `UserTest#test_accessing_projects_by_role_with_no_projects_should_return_an_empty_array` to fail.


git-svn-id: https://svn.redmine.org/redmine/trunk@23622 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-11 07:43:44 +00:00
Go MAEDA
d325010d64 Adds the Bullet gem to detect query problems such as N+1 and improve performance (#42555).
Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@23621 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-10 11:05:01 +00:00
Go MAEDA
17f5e172e8 Update locales (#42441).
git-svn-id: https://svn.redmine.org/redmine/trunk@23620 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-10 10:15:58 +00:00