Commit Graph

235 Commits

Author SHA1 Message Date
Toshi MARUYAMA
aa5e49c37b fix element order (#26769)
git-svn-id: http://svn.redmine.org/redmine/trunk@16954 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-08-28 04:20:55 +00:00
Toshi MARUYAMA
7cb8ce8e40 add category_id to REST issue creation tests (#26769)
git-svn-id: http://svn.redmine.org/redmine/trunk@16953 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-08-28 04:15:55 +00:00
Jean-Philippe Lang
09e55e3e3a Adds a few tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@16940 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-31 16:44:06 +00:00
Jean-Philippe Lang
d74f0bfd5c Merged rails-5.1 branch (#23630).
git-svn-id: http://svn.redmine.org/redmine/trunk@16859 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-23 11:26:04 +00:00
Toshi MARUYAMA
d73f437f06 Update remaining copyrights.
git-svn-id: http://svn.redmine.org/redmine/trunk@16734 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-02 07:08:12 +00:00
Jean-Philippe Lang
7fd04e1f8d Update copyright.
git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-25 08:40:31 +00:00
Jean-Philippe Lang
966f238da4 Use Rails 5 syntax for integration tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@16586 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-01 18:17:27 +00:00
Jean-Philippe Lang
73dc7256c6 Adds a test for #25526.
git-svn-id: http://svn.redmine.org/redmine/trunk@16492 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-05 16:10:16 +00:00
Toshi MARUYAMA
749e260980 add missing fixtures to test/integration/api_test/api_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@16426 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-21 11:29:56 +00:00
Jean-Philippe Lang
ba788c336d REST API: option to get the project activities for time entries (#7506).
git-svn-id: http://svn.redmine.org/redmine/trunk@16365 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-03 19:12:51 +00:00
Jean-Philippe Lang
331c1f674d Add attachment information to issues.xml in REST API (#12181).
git-svn-id: http://svn.redmine.org/redmine/trunk@16360 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-03 17:18:58 +00:00
Jean-Philippe Lang
dac7903da3 Fixes uploading of empty files (#25115).
- prevents creation of attachment records without existing diskfile and empty
  digest
- adds test case to check file upload API response
- also removes the file size check in ActsAsAttachable which still prevented
  attachment of zero size attachments to containers but only for clients
  without Javascript (where save_attachments is called with the actual file
  upload).
  
Patch by Jens Kraemer.

git-svn-id: http://svn.redmine.org/redmine/trunk@16341 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-02-28 18:05:17 +00:00
Jean-Philippe Lang
56159412b3 Issues API does not respect time_entries_visibility (#24875).
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@16293 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-29 10:31:04 +00:00
Jean-Philippe Lang
514d9bad9e Fixed that project settings should show locked members (#22034).
git-svn-id: http://svn.redmine.org/redmine/trunk@16116 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-12-31 13:33:02 +00:00
Jean-Philippe Lang
e068f855dc Files REST API (#19116).
Patch by Lucile Quirion and Jake Kemme.

git-svn-id: http://svn.redmine.org/redmine/trunk@16109 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-12-21 10:05:55 +00:00
Jean-Philippe Lang
3186130966 Don't use assert_equal nil.
git-svn-id: http://svn.redmine.org/redmine/trunk@16064 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-12-12 21:36:14 +00:00
Jean-Philippe Lang
bf5dade8df Use assert_nil instead of assert_equal.
git-svn-id: http://svn.redmine.org/redmine/trunk@16060 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-12-11 15:26:41 +00:00
Jean-Philippe Lang
3a2b6c7c96 Enforce issue assignee validation (#23921).
git-svn-id: http://svn.redmine.org/redmine/trunk@16055 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-12-10 12:02:37 +00:00
Jean-Philippe Lang
4df50bc66b Adds a test for #24297.
git-svn-id: http://svn.redmine.org/redmine/trunk@15956 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-11-18 08:37:24 +00:00
Jean-Philippe Lang
be11a2048b Test failure.
git-svn-id: http://svn.redmine.org/redmine/trunk@15888 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-10-04 20:31:32 +00:00
Jean-Philippe Lang
30fc03ac32 Adds a routing test for deleting attachment via the API.
git-svn-id: http://svn.redmine.org/redmine/trunk@15862 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-10-01 13:24:18 +00:00
Jean-Philippe Lang
696c510852 Add support for updating attachments over REST API (#22356).
git-svn-id: http://svn.redmine.org/redmine/trunk@15861 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-10-01 13:22:35 +00:00
Jean-Philippe Lang
d478785aea Let the API accept project identifier for creating issues (#23766).
Patch by Holger Just.

git-svn-id: http://svn.redmine.org/redmine/trunk@15855 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-10-01 09:06:17 +00:00
Jean-Philippe Lang
baaa15ebdd Return attachment id in api response to attachment upload (#23566).
Patch by Jan Schulz-Hofen.

git-svn-id: http://svn.redmine.org/redmine/trunk@15762 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-08-30 21:15:13 +00:00
Jean-Philippe Lang
8b107b6058 Don't use render :text => "".
git-svn-id: http://svn.redmine.org/redmine/trunk@15731 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-21 20:49:14 +00:00
Jean-Philippe Lang
e1da6de36f Removes calls to #assert_template and #assigns in integration tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@15727 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-21 17:50:00 +00:00
Jean-Philippe Lang
681740d5be Tests for #22754.
git-svn-id: http://svn.redmine.org/redmine/trunk@15443 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-06-04 07:41:05 +00:00
Jean-Philippe Lang
7d6b3d344d Add support for attaching file to WIKI pages by REST API (#14830).
Patch by Takenori TAKAKI.

git-svn-id: http://svn.redmine.org/redmine/trunk@15415 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-05-16 06:29:52 +00:00
Jean-Philippe Lang
0e59482e90 Include private_notes property in xml/json Journals output (#20985).
Patch by Takenori TAKAKI.

git-svn-id: http://svn.redmine.org/redmine/trunk@15414 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-05-16 06:25:11 +00:00
Jean-Philippe Lang
60bb7565dd Include value and label of possible values in custom fields API (#22745).
git-svn-id: http://svn.redmine.org/redmine/trunk@15401 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-05-08 08:44:53 +00:00
Jean-Philippe Lang
130424fc3e Support for deleting attachments via API (#14828).
Patch by Takenori TAKAKI.

git-svn-id: http://svn.redmine.org/redmine/trunk@15332 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-04-12 19:18:34 +00:00
Jean-Philippe Lang
223141a20b Support of default Active Record (I18n) transliteration paths (#22383).
Patch by Ivan Zabrovskiy.

git-svn-id: http://svn.redmine.org/redmine/trunk@15330 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-04-12 18:54:28 +00:00
Jean-Philippe Lang
e1aa18b333 Handle search pagination with the REST API (#6277).
git-svn-id: http://svn.redmine.org/redmine/trunk@15264 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-19 10:27:55 +00:00
Jean-Philippe Lang
7a81281583 Missing fixtures (#6277).
git-svn-id: http://svn.redmine.org/redmine/trunk@15263 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-19 09:43:53 +00:00
Jean-Philippe Lang
5533a2b5f2 REST API for Search (#6277).
Patch by Akiko Takano and Takenori TAKAKI.

git-svn-id: http://svn.redmine.org/redmine/trunk@15262 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-19 09:42:35 +00:00
Jean-Philippe Lang
39a3ffd069 Total spent hours and estimated hours need to be get via REST (#21757).
Patch by Takenori TAKAKI.

git-svn-id: http://svn.redmine.org/redmine/trunk@15254 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-19 09:05:12 +00:00
Jean-Philippe Lang
5d9b87de3a NameError: uninitialized constant Redmine::ApiTest::GroupsTest::MultiJson
git-svn-id: http://svn.redmine.org/redmine/trunk@15252 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-17 19:57:59 +00:00
Jean-Philippe Lang
cda9c63d9c Updates copyright for 2016.
git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-13 10:30:10 +00:00
Jean-Philippe Lang
aaeb0807bf Accept dots in JSONP callback (#13718).
git-svn-id: http://svn.redmine.org/redmine/trunk@15066 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-01-16 09:08:06 +00:00
Jean-Philippe Lang
a196aaa2a9 Fixed that Issues API may disclose changesets that are not visible (#21136).
git-svn-id: http://svn.redmine.org/redmine/trunk@14794 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-11-04 18:17:07 +00:00
Jean-Philippe Lang
e6112a9710 New custom fields of existing issues are not initialized with their default value (#21074).
git-svn-id: http://svn.redmine.org/redmine/trunk@14773 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-10-31 09:17:29 +00:00
Jean-Philippe Lang
fac0f7f38b Adds tests for default custom field value (#21074).
git-svn-id: http://svn.redmine.org/redmine/trunk@14768 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-10-30 12:59:48 +00:00
Jean-Philippe Lang
c63da2c0a5 Use generated groups.
git-svn-id: http://svn.redmine.org/redmine/trunk@14710 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-10-20 18:02:52 +00:00
Jean-Philippe Lang
d509341797 API: creating an issue with an invalid project_id should return 422 instead of 403 (#19276).
git-svn-id: http://svn.redmine.org/redmine/trunk@14141 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-03-20 10:02:45 +00:00
Jean-Philippe Lang
6c5e5142df Don't include milliseconds in JSON API responses (#19354).
git-svn-id: http://svn.redmine.org/redmine/trunk@14101 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-03-15 09:49:35 +00:00
Jean-Philippe Lang
242eb5db5d Fixed assertion (#19368).
git-svn-id: http://svn.redmine.org/redmine/trunk@14087 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-03-14 12:13:37 +00:00
Jean-Philippe Lang
1014ba195f Fixed assertion (#19368).
git-svn-id: http://svn.redmine.org/redmine/trunk@14086 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-03-14 11:40:01 +00:00
Jean-Philippe Lang
9dfe8fe03c Adds a test for setting multivalued custom fields with JSON (#19368).
git-svn-id: http://svn.redmine.org/redmine/trunk@14084 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-03-14 09:54:11 +00:00
Jean-Philippe Lang
5e1d042c40 Fixed that creating an issue without tracker_id attribute ignores custom field values (#19368).
git-svn-id: http://svn.redmine.org/redmine/trunk@14083 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-03-14 09:53:36 +00:00
Jean-Philippe Lang
95e5902b4c Adds a test for #19270.
git-svn-id: http://svn.redmine.org/redmine/trunk@14046 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-03-07 07:31:01 +00:00