Project

General

Profile

Actions

Feature #17469

open

Add percentage done of project's version to Version#index API response

Added by Jorge S. over 10 years ago. Updated over 9 years ago.

Status:
Reopened
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

Adding this:

api.completed_percent version.completed_percent.to_i

On /app/views/versions/index.api.rsb did the trick.

This is something useful in my case because I developed some mercurial hooks to ensure that the version is completed before tagging the release.

Actions #1

Updated by Jorge S. over 10 years ago

I did this 8 months ago, and I don't see it in the new releases' changelog

Actions #2

Updated by Jan Niggemann (redmine.org team member) over 10 years ago

  • Due date set to 2014-07-23
  • Status changed from New to Needs feedback

Jorge Sivil wrote:

I did this 8 months ago, and I don't see it in the new releases' changelog

Do I understand correctly: You posted a patch here on the trackers and are waiting for it to be included in a redmine release?
If so, please reference the issue number.

Actions #3

Updated by Jan Niggemann (redmine.org team member) about 10 years ago

  • Status changed from Needs feedback to Closed
  • Resolution set to No feedback
Actions #4

Updated by Mischa The Evil almost 10 years ago

  • Subject changed from Add percentage done on project's version to Add percentage done of project's version to Version#index API response
  • Due date deleted (2014-07-23)
  • Category changed from Roadmap to REST API
  • Status changed from Closed to Reopened
  • Resolution deleted (No feedback)

The request of the OP is to add the version progress (as calculated by Version#completed_percent) to the version index action API response. This is not implemented yet (see source:/trunk/app/views/versions/index.api.rsb@13998).
Regarding the request: I think that if the property is added to the index response, it should be included in the show response also.

Actions #5

Updated by Jean-Philippe Lang almost 10 years ago

I think we can add this to the #show response only as the OP wants to check the completion of a version.
Adding this to #index would slow down responses noticeably.

Actions #6

Updated by Jean-Philippe Lang almost 10 years ago

But we can't get a single version by its name, #index needs to be called here.
Maybe we can add a include_completed_percent option to have this attribute in the response?

Actions

Also available in: Atom PDF