-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug/1255 Duplicating a objective does not bring all properties of the…
… KeyResults (#1294) * Refactor duplicating methods to include values of keyResult * Modify duplicateObjectiveDto to only include ids * make new method to duplicate Actionlists * write new e2e test testing if all keyresult attributes get duplicated * remove unnecessary wait * remove action list attribute * Finish logic of duplicating objectives with the action plan --------- Co-authored-by: Nevio Di Gennaro <[email protected]> Co-authored-by: MasterEvarior <[email protected]>
- Loading branch information
1 parent
bc49d42
commit cf41b47
Showing
17 changed files
with
331 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
backend/src/main/java/ch/puzzle/okr/dto/DuplicateObjectiveDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
package ch.puzzle.okr.dto; | ||
|
||
import ch.puzzle.okr.dto.keyresult.KeyResultDto; | ||
import java.util.List; | ||
|
||
public record DuplicateObjectiveDto(ObjectiveDto objective, List<KeyResultDto> keyResults) { | ||
public record DuplicateObjectiveDto(ObjectiveDto objective, List<Long> keyResultIds) { | ||
} |
5 changes: 1 addition & 4 deletions
5
backend/src/main/java/ch/puzzle/okr/models/keyresult/KeyResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.