プロジェクト

全般

プロフィール

Vote #68805

完了

Improve Project methods to enable/disable modules

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

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Code cleanup/refactoring_30
対象バージョン:
開始日:
2010/12/15
期日:
進捗率:

100%

予定工数:
category_id:
30
version_id:
35
issue_org_id:
7115
author_id:
1188
assigned_to_id:
1188
comments:
7
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Enabling or disabling modules is not so easy now. It could be really useful when writing tests, doing modifications for many projects in a "script/console" (or "runner"), and of course in plugins. If nobody has an objection, I'm working it.


journals

That could look like Role#add_permission! and #remove_permission!
--------------------------------------------------------------------------------
I was thinking about something a bit simpler to enable/disable module one by one. See proposal attached, tell me what you think.
--------------------------------------------------------------------------------
#disable_module! would destroy any object that is given as argument, safer version attached.
--------------------------------------------------------------------------------
Thanks for your answer, didn't see it before, sorry...

r5265 removed the need to use it in @Project#enabled_module_names=@, but I think these methods could be very useful in a shared hosting environment or in plugins. So I adapted the patch for current trunk and added it in r6098.

It will be safe for next minor version, the methods aren't used for the moment, so it cannot break anything.
--------------------------------------------------------------------------------
Reopened for tracking, not merged into 1.2 branch.
--------------------------------------------------------------------------------
My mistake, sorry. I merged it in 1.2-stable with r6104. Thanks.
--------------------------------------------------------------------------------
Merged too many things with r6104, reverted in r6105, clean merge of this one is in r6106. Sorry for the noise.
--------------------------------------------------------------------------------

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

  • カテゴリCode cleanup/refactoring_30 にセット
  • 対象バージョン1.2.1_35 にセット

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

いいね!0
いいね!0