Skip to content

Commit

Permalink
added requestChangeReason to RequestApi
Browse files Browse the repository at this point in the history
  • Loading branch information
saz-im-netz committed Nov 28, 2024
1 parent e4e176f commit 0382f57
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
8 changes: 8 additions & 0 deletions dataland-community-manager/communityManagerOpenApi.json
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,14 @@
"schema": {
"type": "string"
}
},
{
"name": "requestStatusChangeReason",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ interface RequestApi {
@RequestParam message: String?,
@RequestParam requestPriority: RequestPriority?,
@RequestParam adminComment: String?,
@RequestParam requestStatusChangeReason: String?,
): ResponseEntity<StoredDataRequest>

/** A method for searching data requests based on filters.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ class RequestController(
message: String?,
requestPriority: RequestPriority?,
adminComment: String?,
requestStatusChangeReason: String?,
): ResponseEntity<StoredDataRequest> =
ResponseEntity.ok(
dataRequestAlterationManager.patchDataRequest(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,10 +431,12 @@ export default defineComponent({
try {
await patchDataRequest(
this.storedDataRequest.dataRequestId,
RequestStatus.Open,
RequestStatus.Open as RequestStatus,
undefined,
undefined,
this.reopenMessage
undefined,
this.reopenMessage,
this.getKeycloakPromise
);
this.reopenMessage = '';
this.reopenModalIsVisible = false;
Expand Down

0 comments on commit 0382f57

Please sign in to comment.