Commit Graph

6927 Commits

Author SHA1 Message Date
Go MAEDA
8ce553727d Remove unnecessary fixture declarations (#29664).
Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@24039 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-10-08 04:56:24 +00:00
Marius Balteanu
a524967fbc Adds the :use_webhooks permission in order to allow users to use webhooks only in projects where they have this permission. This is checked when a hook is saved, and before a hook runs (#29664).
Patch by Jens Krämer (user:jkraemer).



git-svn-id: https://svn.redmine.org/redmine/trunk@24035 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-10-07 06:51:33 +00:00
Marius Balteanu
d90d192f48 Introduces issue webhooks (#29664):
* users can set up hooks for issue creation, update and deletion events, for any number of projects
* hooks run in the context of the creating user, and only if the object in question is visible to that user
* the actual HTTP call is done in ActiveJob
* webhook calls are optionally signed the same way GitHub does

Patch by Jens Krämer (user:jkraemer).



git-svn-id: https://svn.redmine.org/redmine/trunk@24034 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-10-07 06:49:14 +00:00
Go MAEDA
3ef7e5624b Incorrect comments_count value in News fixture for news_001 (#43289).
Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@24028 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-10-05 08:27:54 +00:00
Marius Balteanu
d745168d57 Enables CJK friendly emphasis extension for CommonMark (#43234).
Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@24013 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-25 05:30:33 +00:00
Marius Balteanu
0da90f00e1 Support automatic list marker insertion in textareas (#43095).
Patch by Mizuki ISHIKAWA (user:ishikawa999).



git-svn-id: https://svn.redmine.org/redmine/trunk@24003 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-21 16:42:07 +00:00
Marius Balteanu
d39ff6e666 Adds button to copy API access key to clipboard.
Patch by Mizuki ISHIKAWA (user:ishikawa999).



git-svn-id: https://svn.redmine.org/redmine/trunk@23991 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-20 07:41:50 +00:00
Go MAEDA
bda20bad30 Remove unused tooltip variables from reactions_helper_test.rb (#42630).
Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@23981 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-18 06:39:28 +00:00
Go MAEDA
f465577b78 Improve consistency and visibility of reaction buttons with reactions (#42630).
Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@23980 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-18 06:36:41 +00:00
Go MAEDA
a56c55a628 Add system test for Edit heading visibility (#42684, #43143).
Patch by Mizuki ISHIKAWA (user:ishikawa999).


git-svn-id: https://svn.redmine.org/redmine/trunk@23971 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-11 04:07:18 +00:00
Marius Balteanu
724c4c0024 Fix tests when checking custom fields editability (#43161).
Patch by Holger Just  (user:hjust).

git-svn-id: https://svn.redmine.org/redmine/trunk@23961 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-08 21:02:44 +00:00
Marius Balteanu
da2095ca43 Improve test cases for #42880.
git-svn-id: https://svn.redmine.org/redmine/trunk@23960 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-08 20:07:57 +00:00
Marius Balteanu
f78c463043 Offer %done values in issue context menu based on Done ratio options interval setting (#43192).
Patch by Holger Just (user:hjust).

git-svn-id: https://svn.redmine.org/redmine/trunk@23959 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-08 19:58:19 +00:00
Marius Balteanu
48e2621fa6 Fixes failing test introduced in r23956 (#42880).
git-svn-id: https://svn.redmine.org/redmine/trunk@23958 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-08 06:12:16 +00:00
Marius Balteanu
3a19544136 Adds {{recent_pages}} macro that displays a list of recently updated Wiki pages (#38501).
Patch by Go MAEDA (user:maeda).

git-svn-id: https://svn.redmine.org/redmine/trunk@23957 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-07 08:20:04 +00:00
Marius Balteanu
2d44c48657 Makes 'auto watch issues' default user settings configurable (#42880).
Patch by Jan Catrysse (user:jcatrysse).

git-svn-id: https://svn.redmine.org/redmine/trunk@23956 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-07 08:02:04 +00:00
Marius Balteanu
343a2b4f2e Adds specific classes for anonymous and group avatars (#29824).
git-svn-id: https://svn.redmine.org/redmine/trunk@23954 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-07 06:59:25 +00:00
Marius Balteanu
283a7ed07a Mark accounts#register with Cache-Control: no-store (#42998).
Patch by Holger Just (user:hjust).

git-svn-id: https://svn.redmine.org/redmine/trunk@23947 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-07 06:21:11 +00:00
Marius Balteanu
66021a5be2 Reverts r23943 due to wrong commit message (#42998).
git-svn-id: https://svn.redmine.org/redmine/trunk@23946 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-07 06:20:12 +00:00
Marius Balteanu
bd034751bf Clear non-editable custom fields when creating an issue (43161).
This ensures that only editable custom fields are saved on a new issue
when copying an existing one. 

Patch by Holger Just (user:hjust).

git-svn-id: https://svn.redmine.org/redmine/trunk@23945 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-07 06:18:55 +00:00
Marius Balteanu
686f5b15c0 Mark sensitive repository forms with Cache-Control: no-store (#42998).
Patch by Holger Just (user:hjust).

git-svn-id: https://svn.redmine.org/redmine/trunk@23944 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-07 06:16:45 +00:00
Marius Balteanu
ddc61d80d7 Mark sensitive repository forms with Cache-Control: no-store (#42998).
Patch by Holger Just (user:hjust).

git-svn-id: https://svn.redmine.org/redmine/trunk@23943 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-07 06:16:09 +00:00
Marius Balteanu
e67680a694 Mark sensitive user forms with Cache-Control: no-store (#42998).
Patch by Holger Just (user:hjust).

git-svn-id: https://svn.redmine.org/redmine/trunk@23942 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-07 06:15:43 +00:00
Marius Balteanu
5f4ce0fe0e Mark sensitive auth_source forms with Cache-Control: no-store (#42998).
Patch by Holger Just (user:hjust).

git-svn-id: https://svn.redmine.org/redmine/trunk@23941 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-07 06:15:09 +00:00
Marius Balteanu
81d647e34d Render anonymous and group avatars also when gravatar is disabled (#29824).
git-svn-id: https://svn.redmine.org/redmine/trunk@23940 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-06 22:11:58 +00:00
Go MAEDA
e06b4a8435 CookieOverflow error when deleting a tracker used by many projects (#43174).
Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@23939 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-05 06:45:30 +00:00
Go MAEDA
9b4f905c78 Show the "Delete" item in the context menu only when opened from Issues#index, Gantts#show, or Calendars#show. (#35616).
Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@23938 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-04 05:31:22 +00:00
Go MAEDA
43ef62c0d3 Add back_url parameter to get requests in context menu tests and ensure all tests pass with back_url included (#35616).
Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@23937 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-04 05:29:19 +00:00
Go MAEDA
aef12fbe49 Fix CookieOverflow error when deleting a role used by many projects (#42441, #43164).
Patch by Kenta Kumojima (user:kumojima).


git-svn-id: https://svn.redmine.org/redmine/trunk@23933 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-08-30 06:38:26 +00:00
Marius Balteanu
2116ebb79a Fix Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body (#43125).
Patch by Katsuya HIDAKA (user:hidakatsuya).

git-svn-id: https://svn.redmine.org/redmine/trunk@23921 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-08-13 20:34:33 +00:00
Marius Balteanu
2d1f1684a1 Explicitly don't cache sensitive 2FA actions (#43083).
Patch by Felix Schäfer (user:felix).

git-svn-id: https://svn.redmine.org/redmine/trunk@23917 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-08-13 05:58:49 +00:00
Marius Balteanu
8f002c297e Deny 2fa setup when 2fa already present (#43083).
Patch by Felix Schäfer (user:felix).

git-svn-id: https://svn.redmine.org/redmine/trunk@23916 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-08-13 05:57:21 +00:00
Marius Balteanu
30880b861f Run Setting.clear_cache after each test in order to decrease the number of random failing tests (#43130).
Patch by Katsuya HIDAKA (user:hidakatsuya).

git-svn-id: https://svn.redmine.org/redmine/trunk@23915 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-08-13 05:31:26 +00:00
Marius Balteanu
686c04dd85 Remove redundant fixtures declaration from OauthProviderSystemTest (#43125, 24808).
Patch by Katsuya HIDAKA (user:hidakatsuya).

git-svn-id: https://svn.redmine.org/redmine/trunk@23914 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-08-13 05:26:20 +00:00
Marius Balteanu
d79fe0df9a Adds @Cache-Control: no-store@ header to login, lost password, change password and sudo pages (#42998).
Patch by Go MAEDA (user:maeda).

git-svn-id: https://svn.redmine.org/redmine/trunk@23908 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-08-10 13:23:14 +00:00
Marius Balteanu
458072ab7d When the Gravatar service is disabled, display the user's initials as a fallback avatar. This provides a consistent user interface than the generic icon (#29824).
git-svn-id: https://svn.redmine.org/redmine/trunk@23903 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-08-07 19:07:33 +00:00
Go MAEDA
9605bb4b3b Add model/controller generators tests (#42934).
Patch by Haruka Asakura (Agileware) (user:asakura-agileware).


git-svn-id: https://svn.redmine.org/redmine/trunk@23901 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-07-31 11:49:13 +00:00
Marius Balteanu
ae3cb747bb Adds method @initials@ to @Principal@ and return @nil@ by default (#42623).
git-svn-id: https://svn.redmine.org/redmine/trunk@23888 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-07-15 05:20:23 +00:00
Marius Balteanu
e940540e2e Refactor, refresh UI and unify the structure of journals, replies and comments (#42972, #40744).
git-svn-id: https://svn.redmine.org/redmine/trunk@23887 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-07-14 21:33:33 +00:00
Go MAEDA
69dde23d5c Downloading .js files from the repository browser fails with a 422 error due to ActionController::InvalidCrossOriginRequest (#42839).
Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@23857 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-07-05 02:22:30 +00:00
Marius Balteanu
a531b4fe80 Reimplement partial quote feature using Stimulus JS (#42515).
Patch by Katsuya HIDAKA (user:hidakatsuya).

git-svn-id: https://svn.redmine.org/redmine/trunk@23854 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-07-04 05:45:29 +00:00
Marius Balteanu
c1115fea4a Fixes @icon-only@ class for quote reply button and test assertions that are always true (#42515).
git-svn-id: https://svn.redmine.org/redmine/trunk@23853 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-07-04 05:28:34 +00:00
Go MAEDA
a4a32179f6 Fix "Page not found" error when saving workflows with many statuses on Rack >= 3.1.14 (#42875).
Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@23841 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-06-18 01:57:58 +00:00
Marius Balteanu
9186b8e64d Replaces webrick server used in @OauthProviderSystemTest@ with puma (#24808).
git-svn-id: https://svn.redmine.org/redmine/trunk@23840 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-06-16 21:32:45 +00:00
Marius Balteanu
eb1fcac5e4 Improve text assertion (#24808).
git-svn-id: https://svn.redmine.org/redmine/trunk@23839 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-06-16 21:21:24 +00:00
Marius Balteanu
2d3b3b939e Add OAuth2 provider capability using doorkeeper gem (#24808).
Patch by Jens Krämer (user:jkraemer).

git-svn-id: https://svn.redmine.org/redmine/trunk@23837 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-06-12 07:09:03 +00:00
Marius Balteanu
e56d84b632 Reverts r23835 due to wrong issue ID (#40856).
git-svn-id: https://svn.redmine.org/redmine/trunk@23836 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-06-12 07:05:01 +00:00
Marius Balteanu
ebdd1a40f4 Add OAuth2 provider capability using doorkeeper gem (#40856).
Patch by Jens Krämer (user:jkraemer).

git-svn-id: https://svn.redmine.org/redmine/trunk@23835 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-06-11 20:30:44 +00:00
Go MAEDA
bb6b8e1e43 Fix RuboCop Style/RedundantArrayFlatten (#41884).
git-svn-id: https://svn.redmine.org/redmine/trunk@23823 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-06-07 07:42:07 +00:00
Go MAEDA
8c10cf3f30 Fix render_flash_messages method to ignore non-string flash values and prevent errors (#42073).
Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@23821 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-06-06 06:34:26 +00:00