プロジェクト

全般

プロフィール

Vote #81253

完了

Progress bar for a shared version on gantt disappears when the tree is collapsed and then expanded

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

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

0%

予定工数:
category_id:
34
version_id:
167
issue_org_id:
34694
author_id:
435068
assigned_to_id:
332
comments:
8
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
160
ステータス-->[Closed]

説明

Example:

  1. Initial state.
    !initial.png!

  2. The bar will disappear when collapsing Version1 directly under Project1.
    !collapsed_error.png!

I suspect that the cause is in the following line.
source:/branches/4.1-stable/public/javascripts/gantt.js@19434#L262


journals

I have confirmed the issue. It occurs when a version is shared with subprojects.

Steps to reproduce:

1. Create a shared version in a parent project
2. Set any issue's target version to the shared version in the parent project and its subproject
3. On the gannt, collapse and expand the shared version in the parent project
4. The progress bar for the shared version should appear again after expanding the version but does not
--------------------------------------------------------------------------------
Go MAEDA wrote:
> I have confirmed the issue. It occurs when a version is shared with subprojects.
>
> Steps to reproduce:
>
> 1. Create a shared version in a parent project
> 2. Set any issue's target version to the shared version in the parent project and its subproject
> 3. On the gannt, collapse and expand the shared version in the parent project
> 4. The progress bar for the shared version should appear again after expanding the version but does not

I also confirmed.
When the same shared versions are displayed multiple on Gantt, I can't figure out the target taskbar when collapsing one of these versions. To solve this, the @top@ value at the time of initial display is set in the @data-default-top@ attribute for each display item. This value is used as an attribute of the selector when to execute collapse/expand.
I have attached a patch.

--------------------------------------------------------------------------------
Yuichi HARADA wrote:
> I also confirmed.
> When the same shared versions are displayed multiple on Gantt, I can't figure out the target taskbar when collapsing one of these versions. To solve this, the @top@ value at the time of initial display is set in the @data-default-top@ attribute for each display item. This value is used as an attribute of the selector when to execute collapse/expand.
> I have attached a patch.

I could get the number of the current rows, so I remade the patch.

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

--------------------------------------------------------------------------------
Setting the target version to 4.1.4.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Committed the fix. Thank you.
--------------------------------------------------------------------------------
Thank you.
--------------------------------------------------------------------------------

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

  • カテゴリGantt_34 にセット
  • 対象バージョン4.1.4_167 にセット

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

いいね!0
いいね!0