Commit Graph

349 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Toshi MARUYAMA
061a68e466 fix source indent of test/integration/api_test/issues_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20551 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-03 13:19:17 +00:00
Toshi MARUYAMA
ae967251ec fix source indent of test/integration/api_test/projects_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20550 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-03 13:19:09 +00:00
Toshi MARUYAMA
22173ce0e6 fix source indent of test/integration/api_test/api_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20544 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-02 13:32:02 +00:00
Toshi MARUYAMA
5ada843638 fix source indent of test/integration/api_test/attachments_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20543 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-02 13:31:54 +00:00
Toshi MARUYAMA
92f87076f1 fix source indent of test/integration/api_test/time_entries_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20515 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-29 12:48:23 +00:00
Toshi MARUYAMA
17b77d3ab8 fix source indent of test/integration/api_test/memberships_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20511 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-29 12:47:53 +00:00
Toshi MARUYAMA
7dcc124d31 fix source indent of test/integration/api_test/wiki_pages_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20507 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-29 12:47:22 +00:00
Toshi MARUYAMA
1f6496c882 remove spaces inside {} of test/integration/api_test/issues_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20023 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-09-12 12:57:58 +00:00
Toshi MARUYAMA
81020f9d7d fix source indent of test/integration/api_test/groups_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19967 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-08-09 15:57:04 +00:00
Toshi MARUYAMA
9f8c788654 fix source indent of test/integration/api_test/issue_relations_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19956 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-08-07 12:43:48 +00:00
Toshi MARUYAMA
d8733f7fe4 add space after comma to test/integration/api_test/projects_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19950 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-08-07 12:42:59 +00:00
Toshi MARUYAMA
4ed0f0c345 add space after comma to test/integration/api_test/memberships_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19949 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-08-07 12:42:51 +00:00
Go MAEDA
094a7cbd9e Redmine::ApiTest::UsersTest fails if config.time_zone is set (#33592, #33787).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19942 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-08-02 05:26:26 +00:00