プロジェクト

全般

プロフィール

Vote #74084

完了

Plugin migration directory should use plugin directory

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

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

0%

予定工数:
category_id:
20
version_id:
90
issue_org_id:
14402
author_id:
13681
assigned_to_id:
1
comments:
3
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Currently the plugin migrate directory is fixed to "plugins//db/migrate" but the plugin API allows setting a custom directory.
I attached a patch to use the plugin directory instead. Because the default value for the plugin directory is "plugins/" this should be compatible with existing plugins.


journals

--------------------------------------------------------------------------------
Florian Schwab wrote:
> Currently the plugin migrate directory is fixed to "plugins/<plugin_name>/db/migrate" [...]

Indeed, source:/trunk/lib/redmine/plugin.rb@14359#L428.

> [...] but the plugin API allows setting a custom directory.

Right, which is implemented in r11766 and first shipped with Redmine version:2.4.0.

> I attached a patch to use the plugin directory instead. Because the default value for the plugin directory is "plugins/<plugin_name>" this should be compatible with existing plugins.

Can this little fix still be included in version:3.1.0?
--------------------------------------------------------------------------------
Committed in r14364.
--------------------------------------------------------------------------------


related_issues

relates,New,13927,Reduce coupling between plugins and the "plugins/" directory

Admin Redmine さんが3年以上前に更新

  • カテゴリPlugin API_20 にセット
  • 対象バージョン3.1.0_90 にセット

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

いいね!0
いいね!0