プロジェクト

全般

プロフィール

Vote #81417

未完了

Make adding project settings tabs easier

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

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

0%

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

説明

Currently it is quite cumbersome to add a tab to the projects settings. It is necessary to patch the @ProjectsHelper@ and override the @project_settings_tabs@, which can be dangerous if the behaviour of the checks in the method change and patching helpers can lead to problems due to load orders.

I would suggest to at least extract the list of tags from the method to a constant like for the @CustomFieldsHelper::CUSTOM_FIELDS_TABS@ list. This would have the added benefit that it would not be necessary to duplicate any logic from the @project_settings_tabs@ to a plugin if needed.


journals

--------------------------------------------------------------------------------
Note: another solution than the constant as for the custom fields tabs would be ok too if someone comes up with a better solution. I mentioned the custom fields tabs as this is an already existing pattern in Redmine and would be a good first improvement.
--------------------------------------------------------------------------------

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

  • カテゴリCode cleanup/refactoring_30 にセット

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

いいね!0
いいね!0