プロジェクト

全般

プロフィール

Vote #73712

未完了

Allow plugins to be able to add relationship types

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

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

0%

予定工数:
category_id:
20
version_id:
0
issue_org_id:
13690
author_id:
51223
assigned_to_id:
0
comments:
3
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

This is somewhat related to #7849 but (I think) involves significantly less work.

Firstly - can we make the TYPES constant a class variable (eg. @@types)?
Secondly - can the ".freeze" on the object inside the TYPES constant (now a class variable called @@types) be removed? (If necessary it could always be lazily frozen at some time later after the plugins have had a chance to add a relation...)

around source:trunk/app/models/issue_relation.rb@11711#L65

Unless I'm mistaken this should be all that would be required to give redmine plugins the authority to add/remove relationship types.

Eg, a plugin would be able to do something like this

IssueRelation.class_eval("@@types[:supercedes] = 'Adding a relation'")


journals

In the second paragraph the @@@ should be two @@@'s (@@) side by side but it seems my description has been mangled...
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,New,7849,custom issue relation types
relates,New,15340,Custom field referencing other tickets

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

  • カテゴリPlugin API_20 にセット

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

いいね!0
いいね!0