-
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.
Feature/614 duplicate selected keyresults (#1216)
* create new endpoint in Objectivecontroller * crate endpoint for getAllKeyResultsById * modify duplicate e2e to accept new duplicateObjectDto now only selected keyresults get added * create new DuplicateObjectiveDto * implement new duplication to frontend * remove files added accidentally * change duplicateObjective type to record instead of class * fix bug with id of objective already being defined when trying to duplicate * fix bug that you couldnt edit objectives anymore * fix bug that you can't add objectives anymore * Fix small typo * Reset run config * Fix behaviour of duplicating objectives and small typo * Fix logic with creating and duplicating objective * Implement functionality to only show text at desired time and try to fix tests * Fix failing method calls for tests in backend * Cleanup ngOnInit in the objective-form component * Fix backend tests * Fix frontend tests * Reset ngOnInit since it caused a few problems and fix broken TestData * Add method for e2e testing and first two e2e tests. Second one is not finished yet. Plus correct styling for selecting the keyresults * [FM] Automated formating frontend * make all objectiveTests work again except duplication * Finish e2e tests for duplicating * Add e2e test for duplicating a objective with no keyresults * Fix integration test * Add missing service tests for newly created methods * Cleanup ngOnInit a bit * Add comments and two small tests for ts * Add more descriptive naming in describe Co-authored-by: MasterEvarior <puzzle@giannin.ch> * Fix grammar in controller endpoint * Clenup cypress helper and use variable in styles * Remove not needed method * Fix alignment, truncating of text and add tooltip * Set padding to 0 to align correctly * Fix color from failed rebase --------- Co-authored-by: Manuel <moeri@puzzle.ch> Co-authored-by: GitHub Actions <actions@github.com> Co-authored-by: Giannin <puzzle@giannin.ch> Co-authored-by: Manuel <109959820+ManuelMoeri@users.noreply.github.com>
- Loading branch information
1 parent
500a2e3
commit 4f0882a
Showing
18 changed files
with
503 additions
and
135 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
8 changes: 8 additions & 0 deletions
8
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package ch.puzzle.okr.dto; | ||
|
||
import ch.puzzle.okr.dto.keyresult.KeyResultDto; | ||
|
||
import java.util.List; | ||
|
||
public record DuplicateObjectiveDto(ObjectiveDto objective, List<KeyResultDto> keyResults) { | ||
} |
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.