1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-10-17 17:01:01 +00:00

852 Commits

Author SHA1 Message Date
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
Go MAEDA
975e485afd Add information about whether an issue is open or closed to Issues API response (#15855).
Patch by Takenori TAKAKI.


git-svn-id: http://svn.redmine.org/redmine/trunk@21225 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-10-02 06:16:15 +00:00
Go MAEDA
c46e55e496 File upload fails when run with uWSGI (#35715).
Contributed by Pavel Rosický and Holger Just.


git-svn-id: http://svn.redmine.org/redmine/trunk@21173 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-08-14 01:38:26 +00:00
Marius Balteanu
14e7b1a8e6 Adds test for #35417.
git-svn-id: http://svn.redmine.org/redmine/trunk@21104 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-07-28 15:59:03 +00:00
Marius Balteanu
7534775306 Use issue path instead of bulk update issues path when only one issue is selected in the context menu (#33521).
git-svn-id: http://svn.redmine.org/redmine/trunk@21089 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-07-26 21:46:43 +00:00
Go MAEDA
5fa84c0b4e API to close/reopen projects (#35507).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@21066 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-07-09 02:42:47 +00:00
Go MAEDA
4b661cca29 Add enabled core fields to /trackers API response (#35505).
Patch by Jens Krämer.


git-svn-id: http://svn.redmine.org/redmine/trunk@21064 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-07-06 10:13:01 +00:00
Marius Balteanu
1b0bf28803 When 2FA is set to optional, allow to require 2FA only for certain user groups (#31920).
Patch by Jens Krämer.

git-svn-id: http://svn.redmine.org/redmine/trunk@21060 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-07-04 13:06:47 +00:00
Go MAEDA
58fb324663 Add missing fixture to IssuesTest (#35312, #35500).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@21055 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-06-30 12:23:04 +00:00
Go MAEDA
e2c08c7b36 Add total estimated hours, spent hours, total spent hours for issues to issue list API (#34857).
Patch by Felix Schäfer and Takenori TAKAKI.


git-svn-id: http://svn.redmine.org/redmine/trunk@21051 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-06-27 07:18:58 +00:00
Go MAEDA
890dc20ad7 API to archive/unarchive projects (#35420).
Patch by Felix Schäfer.


git-svn-id: http://svn.redmine.org/redmine/trunk@21044 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-06-24 13:55:06 +00:00
Go MAEDA
66fc9f463d Gracefully handle invalid query parameters for custom fields (#35312).
Patch by Holger Just.


git-svn-id: http://svn.redmine.org/redmine/trunk@21012 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-05-28 03:58:01 +00:00
Go MAEDA
ec3527102d Remove deprecated WikiContent::Version (#35031).
git-svn-id: http://svn.redmine.org/redmine/trunk@21002 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-05-15 05:51:14 +00:00
Go MAEDA
6369d139dd Uploading a big file fails with NoMemoryError (#33752).
Patch by Karel Pičman and Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@20993 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-05-11 05:35:19 +00:00
Go MAEDA
9055e5dfe5 Include new statuses allowed by workflow in Issues REST API (#24976).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20951 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-04-19 09:04:24 +00:00
Go MAEDA
f9e937f85a Users without two-factor authentication enabled cannot sign out when two-factor authentication is required (#35087).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20949 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-04-16 02:27:18 +00:00
Go MAEDA
f2b17f7794 Clean-up workflows controller (#33337).
Patch by Vincent Robert and Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@20941 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-04-13 09:01:44 +00:00
Go MAEDA
5b95f064e0 Fix undefined method 'split' when issue_to_id is numeric (#35039).
Patch by  Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@20932 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-04-12 09:20:02 +00:00
Go MAEDA
7fe7fdd7bc Roadmap tab is missing if there are only inherited from parent project versions (#34983).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@20921 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-04-07 05:09:13 +00:00
Go MAEDA
9e27972181 Use media_type to get the MIME type of the request (#29914).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@20890 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-04-01 15:06:45 +00:00
Go MAEDA
184eece3e5 Test for r20852 (#22008).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20853 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-03-26 04:52:39 +00:00
Go MAEDA
a4ee2963fb Associated Revision API (#22008).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20852 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-03-26 04:37:14 +00:00
Go MAEDA
3e36b5c452 Update copyright year in source files to 2021 (#33069).
git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-03-25 06:58:56 +00:00
Go MAEDA
4c2e42e1c3 "Add news" button in cross-project News tab (#33167).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20845 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-03-25 05:16:54 +00:00
Go MAEDA
4dfa6fc724 Allow manually fetching changesets (#8875).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20772 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-03-11 07:00:09 +00:00
Go MAEDA
e0581b34b7 Activity tab in cross-project menu is sometimes broken (#34805).
Patch by Felix Schäfer.


git-svn-id: http://svn.redmine.org/redmine/trunk@20764 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-03-06 06:46:59 +00:00
Go MAEDA
ce5c54a590 Reverts r20762
git-svn-id: http://svn.redmine.org/redmine/trunk@20763 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-03-06 06:45:51 +00:00
Go MAEDA
8fcef23fef Activity tab in cross-project menu is sometimes broken (#34032).
Patch by Felix Schäfer.


git-svn-id: http://svn.redmine.org/redmine/trunk@20762 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-03-06 06:43:34 +00:00
Go MAEDA
e1cfdc38c9 Projects API should not return invisible trackers (#30121).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20753 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-02-23 03:17:29 +00:00
Go MAEDA
75b6cacb5d Fix redirect loop when both enabling two-factor authentication and changing password are required (#1237, #34618).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20734 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-02-02 07:15:08 +00:00
Go MAEDA
2ee2b34987 Fix passing a wrong parameter to assert_select in API test for 'GET /users/:id' (#34492).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20700 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-31 00:44:39 +00:00
Go MAEDA
988a36babc Users API should return twofa_scheme only for administrators (#34242).
git-svn-id: http://svn.redmine.org/redmine/trunk@20687 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-23 03:47:45 +00:00
Go MAEDA
5eb4b6af79 Include two-factor authentication scheme in users API response (#34242).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20686 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-23 02:58:49 +00:00
Go MAEDA
87d2fa498d Revert r20440 (#10535).
git-svn-id: http://svn.redmine.org/redmine/trunk@20684 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-22 11:48:29 +00:00