stable

Clone or download

Read-only

Build representations from Feature object

part of story #21385 display Program's iterations No functional change expected in the following use cases: - GET the Program backlog (unplanned Features) - GET the content of a Program Increment (Features planned in a PI) Notes: The Feature object is completely built in the Domain. The "handler" classes (FeatureContentRetriever and FeatureElementsRetriever) can also be moved in the Domain. It allows us to delete the FeatureRepresentationBuilder. FeatureRepresentations can build themselves from Feature. The Domain is no longer anemic. Change-Id: I7338e2fff2aa4509fbc89c5f3951893a33f5503e

Modified Files

Name
M plugins/program_management/include/Adapter/Program/Backlog/Timebox/CrossReferenceRetriever.php +8 −1 Go to diff View file
M plugins/program_management/include/Adapter/Program/Backlog/Timebox/URIRetriever.php +8 −1 Go to diff View file
D plugins/program_management/include/Adapter/Program/Feature/FeatureRepresentationBuilder.php +0 −63 Go to diff View file
M plugins/program_management/include/Adapter/Workspace/Tracker/TrackerOfArtifactRetriever.php +11 −4 Go to diff View file
A plugins/program_management/include/Domain/Program/Backlog/Feature/Feature.php +69 −0 Go to diff View file
A plugins/program_management/include/Domain/Program/Backlog/Feature/FeatureTrackerIdentifier.php +49 −0 Go to diff View file
A plugins/program_management/include/Domain/Program/Backlog/Feature/RetrieveFeatureCrossReference.php +28 −0 Go to diff View file
A plugins/program_management/include/Domain/Program/Backlog/Feature/RetrieveFeatureURI.php +28 −0 Go to diff View file
A plugins/program_management/include/Domain/Program/Backlog/Feature/RetrieveTrackerOfFeature.php +30 −0 Go to diff View file
R plugins/program_management/include/Adapter/Program/Feature/FeatureElementsRetriever.php Go to diff View file
R plugins/program_management/include/Adapter/Program/Feature/Content/FeatureContentRetriever.php Go to diff View file
M plugins/program_management/include/REST/v1/FeatureRepresentation.php +19 −1 Go to diff View file
M plugins/program_management/include/REST/v1/ProgramIncrementResource.php +34 −30 Go to diff View file
M plugins/program_management/include/REST/v1/ProjectResource.php +42 −30 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/Timebox/CrossReferenceRetrieverTest.php +24 −9 Go to diff View file
R plugins/program_management/tests/unit/Adapter/Program/Backlog/Timebox/UriRetrieverTest.php Go to diff View file
D plugins/program_management/tests/unit/Adapter/Program/Feature/Content/FeatureContentRetrieverTest.php +0 −136 Go to diff View file
D plugins/program_management/tests/unit/Adapter/Program/Feature/FeatureElementsRetrieverTest.php +0 −128 Go to diff View file
D plugins/program_management/tests/unit/Adapter/Program/Feature/FeatureRepresentationBuilderTest.php +0 −97 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Workspace/Tracker/TrackerOfArtifactRetrieverTest.php +7 −0 Go to diff View file
A plugins/program_management/tests/unit/Domain/Program/Backlog/Feature/FeatureTest.php +86 −0 Go to diff View file
A plugins/program_management/tests/unit/Domain/Program/Backlog/Feature/FeatureTrackerIdentifierTest.php +47 −0 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/Feature/Links/UserStoryRetrieverTest.php +8 −6 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/Iteration/Content/IterationContentSearcherTest.php +10 −3 Go to diff View file
A plugins/program_management/tests/unit/Domain/Program/Backlog/ProgramBacklogSearcherTest.php +111 −0 Go to diff View file
A plugins/program_management/tests/unit/Domain/Program/Backlog/ProgramIncrement/Content/ProgramIncrementContentSearcherTest.php +116 −0 Go to diff View file
A plugins/program_management/tests/unit/REST/v1/FeatureRepresentationTest.php +89 −0 Go to diff View file
M plugins/program_management/tests/unit/Stub/RetrieveBackgroundColorStub.php +12 −6 Go to diff View file
A plugins/program_management/tests/unit/Stub/RetrieveFeatureCrossReferenceStub.php +55 −0 Go to diff View file
A plugins/program_management/tests/unit/Stub/RetrieveFeatureURIStub.php +34 −0 Go to diff View file
A plugins/program_management/tests/unit/Stub/RetrieveTrackerOfFeatureStub.php +55 −0 Go to diff View file