diff options
author | Patrick Derichs <pderichs@gitlab.com> | 2019-06-07 12:15:55 +0300 |
---|---|---|
committer | Patrick Derichs <pderichs@gitlab.com> | 2019-06-07 12:15:55 +0300 |
commit | b70d23c25a4bc54fda22135b0a76bae102cfd88b (patch) | |
tree | 3c3e7a33a22bdc0b73659446375c855d74f44414 /lib | |
parent | d842d80e30000b9efa57e8e69117431b38c6784a (diff) |
Add task count and completed count to responses of Issue and MR
Add spec for task_completion_status
Add test cases for task_completion_status result
Extracted shared samples
Add new spec file for task completion status response
Fix style errors
Add changelog entry
Changed samples to Hashes
Remove test for successful request
Remove not nil expectation
Add task_completion_status to api documentation for issues
Add task_completion_status to api documentation for merge_requests
Refactor spec so it just requests one specific item
Add task_completion_status to Taskable
Simplified task completion status in entities
Refactor spec so it separates status code check and content check
Fix spec description text and field name
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/entities.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index b1b6e7bd7b9..f8b950cb55d 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -576,6 +576,8 @@ module API expose :time_stats, using: 'API::Entities::IssuableTimeStats' do |issue| issue end + + expose :task_completion_status end class Issue < IssueBasic @@ -724,6 +726,8 @@ module API end expose :squash + + expose :task_completion_status end class MergeRequest < MergeRequestBasic |