stable
Clone or download
part of: story #20919 define progress of artifacts N.B: In the first implementation, only the nature _is_child is supported. How to test: - In the table tracker_semantic_progress, set a value for the three columns --> The tasks progress is not displayed --> Error "semantic not configured properly" --> The config description in Tracker > Admin > Semantic under the section "Progress" contains the same error - Now empty the two columns total_effort_field_id and remaining_effort_field_id and set an unexisting nature shortname for the third one --> Tasks progress not display --> Error: Nature XXX not found or unexisting --> Config description shows the same error - Replay the same test but fill in only total_effort_field_id and the nature with '_is_child' --> Same expectations - Replay the same test but fill in only remaining_effort_field_id and the nature with '_is_child' --> same - Leave blank the two field_id columns and set nature with '_is_child' - deactivate the nature _is_child in the project --> same - re-activate the nature _is_child in the project --> The config displays that artifacts linked with the nature _is_child will be taken into account in the computation Change-Id: Iada024ea07251d4db140bfbed1695e5b3409844a
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/roadmap/include/Roadmap/REST/v1/RoadmapResource.php | +7 | −1 | Go to diff View file |
M | plugins/tracker/db/install.sql | +2 | −1 | Go to diff View file |
A | plugins/tracker/db/mysql/updates/2021/202104301336_add_artifact_link_nature_column_in_tracker_semantic_progress.php | +46 | −0 | Go to diff View file |
A | plugins/tracker/include/Tracker/Semantic/Progress/MethodBasedOnLinksCount.php | +120 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Semantic/Progress/MethodBuilder.php | +55 | −1 | Go to diff View file |
M | plugins/tracker/include/Tracker/Semantic/Progress/SemanticProgress.php | +8 | −1 | Go to diff View file |
M | plugins/tracker/include/Tracker/Semantic/Progress/SemanticProgressBuilder.php | +17 | −1 | Go to diff View file |
M | plugins/tracker/include/Tracker/Semantic/Progress/SemanticProgressDao.php | +2 | −2 | Go to diff View file |
M | plugins/tracker/include/Tracker/Semantic/Tracker_SemanticManager.class.php | +8 | −1 | Go to diff View file |
M | plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po | +40 | −0 | Go to diff View file |
A | plugins/tracker/tests/unit/Tracker/Semantic/Progress/MethodBasedOnLinksCountTest.php | +125 | −0 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Semantic/Progress/MethodBuilderTest.php | +108 | −2 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Semantic/Progress/SemanticProgressBuilderTest.php | +47 | −22 | Go to diff View file |