プロジェクト

全般

プロフィール

Vote #75394

未完了

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

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
Reopend
優先度:
通常
担当者:
-
カテゴリ:
REST API_32
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
32
version_id:
0
issue_org_id:
17469
author_id:
71696
assigned_to_id:
0
comments:
6
status_id:
8
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Reopend]

説明

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.


journals

I did this 8 months ago, and I don't see it in the new releases' changelog
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
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.

--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
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?
--------------------------------------------------------------------------------

Admin Redmine さんが約2年前に更新

  • カテゴリREST API_32 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0