stable

Clone or download

Read-only

refactor: introduce Option::andThen()

How to test: - No functional change in the REST API PUT /artifacts/{id}. You can still add, change or remove reverse links. Notes: Using andThen() function on Option, we can remove one indentation level to go from a NewArtifactLinkChangesetValue (which is optional) to its submitted reverse links (which are also optional). part of request #34374 Be able to explicitly add, change or remove forward and reverse links Change-Id: Ic9226e0f09a79dafde46a1aac5ad12e09c30d7e7

Modified Files

Name
M plugins/tracker/include/Tracker/Artifact/Link/ArtifactReverseLinksUpdater.php +25 −27 Go to diff View file
M src/common/Option/Option.php +16 −4 Go to diff View file
M src/common/Option/README.md +17 −2 Go to diff View file
M tests/unit/common/Option/OptionTest.php +80 −16 Go to diff View file
M tests/unit/common/Option/TypeTest.php +29 −0 Go to diff View file