-
Notifications
You must be signed in to change notification settings - Fork 0
ItEr76S13WBSSettingUpBehavior
TWiki> LibrePlan Web>ItEr76S13WBSSettingUpBehavior (20 Aug 2012, ManuelRego)EditAttach
Story summary | Improve WBS Configuration Behavior |
Iteration | ItEr76Week01To33 |
FEA | ItEr76S13WBSSettingUpBehavior |
Story Lead | |
Next Story | |
Passed acceptance test | No |
Acceptance Criteria
Additional Specification Comments
Implementation Notes
To implement this new behavior 2 new methods were added to org.libreplan.business.trees.ITreeNode
:
-
isEmptyLeaf()
: To check if a leaf is or not empty (no hours, no criteria, no progresses...). This method is used inorg.libreplan.web.tree.EntitiesTree.turnIntoContainerIfNeeded(ITreeNode? )
, if true the leaf is not added to the new container created. -
isLeaf()
: To avoid usingorg.libreplan.web.tree.TreeController.isLine(T)
(that has been removed).isLine()
checked that the element has not children, but after adding the previous condition when you're creating the container and the leaf is empty, as you're not adding the leaf, the container has not children for a while, however it's a leaf (or line).
Moreover the method org.libreplan.web.tree.EntitiesTree.addElementAt(T, String, int)
has been modified and now it returns the new element. This is used in org.libreplan.web.tree.TreeController.addElement(Component)
to update the hours input in the new element and parents. As now if the leaf is empty the old element is removed you cannot use it to update the hours inputs.
Finally, org.libreplan.business.orders.entities.OrderLine.toContainer()
was modified to keep the task name if the leaf is empty. Otherwise, new container is used for the moment.
The first part of this task (put an empty name) is already pushed. It just needed a change in the method org.libreplan.business.orders.entities.OrderLine.toContainer()
. Then it was needed to fix some tests in OrderElementTreeModelTest
.
To fix the issue with the focus, a new map has been added org.libreplan.web.tree.TreeController.Renderer.nameTextboxByElement
in order to know the Textbox
corresponding to the different tasks.
Delay Causes
Final or Pending Considerations
%RPSHOWGITCOMMITS%
User | Spent in XpTracker | Spent in phpReport | Ok? |
---|---|---|---|
ManuelRego | 8.75 | 0 | |
Total | 8.75 | 0 |
Copyright (c) by the contributing authors. All material on this collaboration platform is the property of the contributing authors.