stable

Clone or download

Read-only

request #27539 - Unplan US only when feature is unplanned from program

How to test: - In a program project, have one planned feature, one not planned (e.g not in a PI) - In a team project, have one US child of the planned feature, and one US child of the not planned feature - In the program service, edit the PI (like its title) - Go to the team project --> The US child of the not planned feature is still here - Plan the feature that was unplanned --> Nothing happens in the Team project - Unplan it --> The US has been unplanned - In the program, remove the planned feature from the PI --> In the team, the US child of the feature that has been unplanned too - Plan it again in the PI --> In the team, the US child of the feature that has been planned has been planned too TLDR: In the team project, an US is unplanned only if its parent Feature has been unplanned from the program project. Change-Id: I8186a2c086332d113842d81cb12dc74863bb0fa7

Modified Files

Name
M plugins/program_management/include/Adapter/Events/ArtifactCreatedProxy.php +7 −1 Go to diff View file
M plugins/program_management/include/Adapter/Events/ArtifactUpdatedProxy.php +8 −1 Go to diff View file
M plugins/program_management/include/Adapter/Events/ProgramIncrementUpdateEventProxy.php +18 −8 Go to diff View file
M plugins/program_management/include/Adapter/JSON/PendingProgramIncrementUpdateRepresentation.php +2 −0 Go to diff View file
M plugins/program_management/include/Adapter/Program/Feature/Links/ArtifactsLinkedToParentDao.php +20 −1 Go to diff View file
M plugins/program_management/include/Adapter/Program/Feature/UserStoriesInMirroredProgramIncrementsPlanner.php +10 −6 Go to diff View file
M plugins/program_management/include/Domain/Events/ArtifactCreatedEvent.php +1 −0 Go to diff View file
M plugins/program_management/include/Domain/Events/ArtifactUpdatedEvent.php +1 −0 Go to diff View file
M plugins/program_management/include/Domain/Events/ProgramIncrementUpdateEvent.php +1 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/Feature/Content/FeaturePlanChange.php +19 −6 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/Feature/FieldData.php +9 −8 Go to diff View file
A plugins/program_management/include/Domain/Program/Backlog/Feature/Links/SearchFeaturesInChangeset.php +28 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/Feature/ProgramIncrementChanged.php +9 −2 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/ProgramIncrement/ProgramIncrementCreation.php +8 −2 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/ProgramIncrement/ProgramIncrementUpdate.php +20 −2 Go to diff View file
A plugins/program_management/include/Domain/Program/Feature/Links/LinkedFeaturesDiff.php +52 −0 Go to diff View file
M plugins/program_management/tests/rest/v1/ProjectResourceTest.php +36 −16 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Events/ArtifactUpdatedProxyTest.php +11 −5 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Events/ProgramIncrementUpdateEventProxyTest.php +15 −11 Go to diff View file
M plugins/program_management/tests/unit/Adapter/JSON/PendingProgramIncrementUpdateRepresentationTest.php +10 −8 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/AsynchronousCreation/ProgramIncrementUpdateDispatcherTest.php +2 −1 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Feature/UserStoriesInMirroredProgramIncrementsPlannerTest.php +51 −22 Go to diff View file
M plugins/program_management/tests/unit/Builder/IterationCreationBuilder.php +1 −0 Go to diff View file
M plugins/program_management/tests/unit/Builder/IterationUpdateBuilder.php +1 −1 Go to diff View file
M plugins/program_management/tests/unit/Builder/ProgramIncrementUpdateBuilder.php +3 −2 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/ArtifactUpdatedHandlerTest.php +1 −1 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/AsynchronousCreation/IterationCreationTest.php +12 −9 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/AsynchronousCreation/ProgramIncrementUpdateEventHandlerTest.php +7 −4 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/AsynchronousCreation/ProgramIncrementUpdateProcessorTest.php +2 −1 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/Feature/Content/FeaturePlanChangeTest.php +11 −6 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/Feature/FieldDataTest.php +18 −2 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/Feature/ProgramIncrementChangedTest.php +2 −1 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/Iteration/IterationIdentifierTest.php +2 −2 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/Iteration/IterationUpdateTest.php +3 −1 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/ProgramIncrement/ProgramIncrementIdentifierTest.php +3 −1 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/ProgramIncrement/ProgramIncrementUpdateTest.php +7 −2 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/ProgramIncrement/Source/Changeset/Values/SourceTimeboxChangesetValuesTest.php +1 −1 Go to diff View file
A plugins/program_management/tests/unit/Domain/Program/Feature/Links/LinkedFeaturesDiffTest.php +43 −0 Go to diff View file
M plugins/program_management/tests/unit/Stub/ArtifactCreatedEventStub.php +5 −0 Go to diff View file
M plugins/program_management/tests/unit/Stub/ArtifactUpdatedEventStub.php +18 −6 Go to diff View file
M plugins/program_management/tests/unit/Stub/ProgramIncrementUpdateEventStub.php +12 −3 Go to diff View file
M plugins/program_management/tests/unit/Stub/SearchArtifactsLinksStub.php +5 −12 Go to diff View file
A plugins/program_management/tests/unit/Stub/SearchFeaturesInChangesetStub.php +56 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Changeset/NewChangesetCreator.php +6 −2 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Event/ArtifactUpdated.php +22 −5 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/Event/ArtifactUpdatedTest.php +6 −4 Go to diff View file