-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Created the constraint signature component * Rebase * Added shadcn components I forgot to push * chore: refactoring * Rebase * rebase * Unfinished table * fixed for new constraints endpoint * Checkstyle * data table for constraint instances * Fixed styling of page and components * constraint add button * fixed delete, removed add button and sorting from table * Added yet another DTO to hopefully make the request parameters easier to understand * Updated openapi * Fixed NPE when getting instances of a constraint with 0 instances * Fixed exception when creating a new constraint instance through POST request * Fixed add button * Fixed data table updates * Fixed web tests * Set page size for datatable * Removed unused component * Changes from comments and pagination fix for datatable * Fixed imports * Fixed package-lock --------- Co-authored-by: uhkfc <daniel.dietzler@student.kit.edu> Co-authored-by: Lars Steudle <uojhg@student.kit.edu>
- Loading branch information
1 parent
6daae6d
commit 642eb8f
Showing
38 changed files
with
977 additions
and
85 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
22 changes: 22 additions & 0 deletions
22
server/src/main/java/de/uftos/dto/ConstraintArgumentRequestDto.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,22 @@ | ||
package de.uftos.dto; | ||
|
||
import de.uftos.entities.ConstraintArgument; | ||
import jakarta.validation.constraints.NotEmpty; | ||
|
||
/** | ||
* A data transfer object used in the constraint HTTP requests. | ||
* | ||
* @param parameterName the name of the parameter that this argument instances. | ||
* @param argumentId the id ot the entity that this argument references. | ||
*/ | ||
public record ConstraintArgumentRequestDto(@NotEmpty String parameterName, | ||
@NotEmpty String argumentId) { | ||
/** | ||
* Maps the information from the data transfer object to a new constraint argument entity. | ||
* | ||
* @return the new constraint argument entity. | ||
*/ | ||
public ConstraintArgument map() { | ||
return new ConstraintArgument(parameterName, argumentId); | ||
} | ||
} |
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
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.