プロジェクト

全般

プロフィール

Vote #73775

未完了

REST API for issues with included changesets does not include which repository the revision is from

Admin Redmine さんがほぼ4年前に追加. ほぼ4年前に更新.

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

0%

予定工数:
category_id:
32
version_id:
0
issue_org_id:
13777
author_id:
30446
assigned_to_id:
0
comments:
4
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

(Not sure if this is a defect or a possible feature request)


Redmine 1.4.5
=================================================
Ruby version              1.8.7 (x86_64-linux)
RubyGems version          1.8.24
Rack version              1.1.3
Rails version             2.3.15
Active Record version     2.3.15
Active Resource version   2.3.15
Action Mailer version     2.3.15
Active Support version    2.3.15
Application root          /var/lib/redmine
Environment               production
Database adapter          mysql
Database schema version   20120301153455

About your Redmine plugins
Redmine ChangeAuthor plugin             0.0.2
Smart issues sort plugin                0.3.1
Redmine plugin views revisions plugin   0.0.1
Redmine Vendor Display plugin           1.0
Extra query operators plugin            0.1.1
Redmine RPPS customization plugin       0.1.0
Redmine Groups plugin                   1.0.0
Mylyn Connector plugin                  2.7.6.stable
Project Subscription                    0.0.1b
Redmine hidesidebar plugin              0.1.0
Redmine Better Gantt Chart plugin       0.6.5
Issue query operators plugin            0.0.2
==========================================================

Problem description.

REST API.

 GET /issues/[id].xml?include=changesets

The response does not include information identifying the changeset repository, just the revision number.

Looking at app/views/issues/show.api.rsb it appears that the code only returns the revision number (I checked current redmine trunk and it does the same).

The problem was "discovered" when a user used the REST API to retrieve an issue that contained a revision reference from another project.


journals

--------------------------------------------------------------------------------
We have a user requesting this feature. Any possibility of someone looking into this?
--------------------------------------------------------------------------------
This repository id would be very useful in changeset object.
--------------------------------------------------------------------------------
I added this in a plugin, but it's in alpha stage and should be tested.
https://github.com/jcatrysse/redmine_view_issue_description
https://www.redmine.org/plugins/redmine_view_issue_description

But one could patch app/views/issues/show.api.rsb
<pre>
api.array :changesets do
@changesets.each do |changeset|
api.changeset :revision => changeset.revision do
api.user(:id => changeset.user_id, :name => changeset.user.name) unless changeset.user.nil?
api.comments changeset.comments
api.committed_on changeset.committed_on
api.repository changeset.repository
end
end
end if include_in_api_response?('changesets')
</pre>
--------------------------------------------------------------------------------

Admin Redmine さんがほぼ4年前に更新

  • カテゴリREST API_32 にセット

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

いいね!0
いいね!0