stable

Clone or download

Read-only

Add GET backlog REST endpoint

part of story #21385 display Program's iterations How to test: No functional change expected in the following use cases: - creation of Iteration mirrors in Teams - GET content of an Iteration - GET content of a Feature - Test this route in the API explorer: GET program_increment/:id/backlog - It should return code 404 when given ID is not a program increment or user cannot see it. Notes: Entrypoint is in ProgramIncrementResource. Here is a schema to help understand what is actually selected ```mermaid flowchart TB pi[Program Increment] --- features[Features] features --- us[User Stories] pi --- iterations[Iterations] iterations --- mirror_iterations[Mirror Iterations] us -- Select all User Stories NOT linked --- mirror_iterations ``` Change-Id: If03a97aed8933a97825bc6fea1576499f8fb87a8

Modified Files

Name
M plugins/program_management/include/Domain/Program/Backlog/AsynchronousCreation/IterationCreationDetector.php +4 −2 Go to diff View file
A plugins/program_management/include/Domain/Program/Backlog/Feature/FeatureIdentifierCollection.php +61 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/Iteration/IterationIdentifier.php +4 −2 Go to diff View file
A plugins/program_management/include/Domain/Program/Backlog/Iteration/IterationIdentifierCollection.php +60 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/Iteration/JustLinkedIterationCollection.php +8 −11 Go to diff View file
A plugins/program_management/include/Domain/Program/Backlog/ProgramIncrement/Backlog/BacklogSearcher.php +145 −0 Go to diff View file
A plugins/program_management/include/Domain/Program/Backlog/UserStory/UserStoryIdentifierCollection.php +98 −0 Go to diff View file
M plugins/program_management/include/Domain/Team/MirroredTimebox/MirroredIterationIdentifierCollection.php +27 −2 Go to diff View file
M plugins/program_management/include/REST/v1/IterationResource.php +4 −2 Go to diff View file
M plugins/program_management/include/REST/v1/ProgramBacklogItemsResource.php +9 −13 Go to diff View file
M plugins/program_management/include/REST/v1/ProgramIncrementResource.php +85 −0 Go to diff View file
M plugins/program_management/include/REST/v1/UserStoryRepresentation.php +4 −6 Go to diff View file
M plugins/program_management/tests/rest/_fixtures/program_program_management/project.xml +11 −0 Go to diff View file
M plugins/program_management/tests/rest/_fixtures/team_program_management/project.xml +2 −0 Go to diff View file
M plugins/program_management/tests/rest/v1/ProjectResourceTest.php +28 −8 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/AsynchronousCreation/ProgramIncrementUpdateDispatcherTest.php +17 −25 Go to diff View file
A plugins/program_management/tests/unit/Builder/FeatureIdentifierCollectionBuilder.php +44 −0 Go to diff View file
A plugins/program_management/tests/unit/Builder/IterationIdentifierCollectionBuilder.php +44 −0 Go to diff View file
A plugins/program_management/tests/unit/Builder/JustLinkedIterationCollectionBuilder.php +46 −0 Go to diff View file
A plugins/program_management/tests/unit/Builder/UserStoryIdentifierCollectionBuilder.php +54 −0 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/AsynchronousCreation/IterationCreationTest.php +49 −59 Go to diff View file
A plugins/program_management/tests/unit/Domain/Program/Backlog/Feature/FeatureIdentifierCollectionTest.php +66 −0 Go to diff View file
A plugins/program_management/tests/unit/Domain/Program/Backlog/Iteration/IterationIdentifierCollectionTest.php +69 −0 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/Iteration/JustLinkedIterationCollectionTest.php +23 −34 Go to diff View file
A plugins/program_management/tests/unit/Domain/Program/Backlog/ProgramIncrement/Backlog/BacklogSearcherTest.php +135 −0 Go to diff View file
A plugins/program_management/tests/unit/Domain/Program/Backlog/UserStory/UserStoryIdentifierCollectionTest.php +178 −0 Go to diff View file
A plugins/program_management/tests/unit/Domain/Team/MirroredTimebox/MirroredIterationIdentifierCollectionTest.php +104 −0 Go to diff View file
M plugins/program_management/tests/unit/REST/v1/FeatureRepresentationTest.php +7 −10 Go to diff View file
A plugins/program_management/tests/unit/REST/v1/UserStoryRepresentationTest.php +83 −0 Go to diff View file
M plugins/program_management/tests/unit/Stub/RetrieveTrackerFromUserStoryStub.php +28 −4 Go to diff View file
M plugins/program_management/tests/unit/Stub/RetrieveUserStoryCrossRefStub.php +22 −3 Go to diff View file
M plugins/program_management/tests/unit/Stub/SearchChildrenOfFeatureStub.php +21 −4 Go to diff View file
M plugins/program_management/tests/unit/Stub/SearchIterationsStub.php +7 −10 Go to diff View file
M plugins/program_management/tests/unit/Stub/SearchMirroredTimeboxesStub.php +22 −8 Go to diff View file
M plugins/program_management/tests/unit/Stub/VerifyIterationHasBeenLinkedBeforeStub.php +8 −8 Go to diff View file