stable

Clone or download

Read-only

Refactoring: move value saving in a dedicated object

Part of story #8833: show, import and manipulate links This step is necessary to be able to save the nature of artifact links in next changesets. No changes for end user. Code is just moved around. This allows to remove public visibility (used in tests) for some internal methods. Things to test: * Update classic artifact links (add, remove) * Update artifact links in a tracker hierarchy context (in both direction: link a user story to its task or a task to its user story) * AgileDashboard Scrum: add sub milestones, add children for backlog items, ... * XML import * REST POST/PUT artifacts/:id * Copy artifact with children Change-Id: I51c7d2c1e54d66debc5505b1360ea218ffb4fe39

Modified Files

Name
A plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/ArtifactLinkValueSaver.php +280 −0 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/SourceOfAssociationCollection.php +39 −0 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/SourceOfAssociationDetector.php +59 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/UpdateLinkingDirectionCommand.class.php +5 −8 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_ArtifactLink.class.php +79 −216 Go to diff View file
M plugins/tracker/include/autoload.php +5 −2 Go to diff View file
A plugins/tracker/tests/Tracker/FormElement/Field/ArtifactLink/ArtifactLinkValueSaverTest.php +304 −0 Go to diff View file
A plugins/tracker/tests/Tracker/FormElement/Field/ArtifactLink/SourceOfAssociationDetectorTest.php +56 −0 Go to diff View file
M plugins/tracker/tests/Tracker_FormElement_Field_ArtifactLinkTest.php +45 −315 Go to diff View file