From afe2aaffdd5679e61f27f7b5597b21db6a8db4e0 Mon Sep 17 00:00:00 2001 From: Fiete Ostkamp Date: Tue, 29 Aug 2023 09:34:06 +0200 Subject: Consistently use the preferences and history names in the bff code base - Part 2 - some history related properties still had a portal prefix Issue-ID: PORTALNG-50 Change-Id: Ia044b42c306b8a8837d1cda92f101aebe62283a1 Signed-off-by: Fiete Ostkamp --- .../java/org/onap/portalng/bff/config/clients/HistoryConfig.java | 4 ++-- .../main/java/org/onap/portalng/bff/services/ActionService.java | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/src') diff --git a/lib/src/main/java/org/onap/portalng/bff/config/clients/HistoryConfig.java b/lib/src/main/java/org/onap/portalng/bff/config/clients/HistoryConfig.java index c7f8709..9d64ef1 100644 --- a/lib/src/main/java/org/onap/portalng/bff/config/clients/HistoryConfig.java +++ b/lib/src/main/java/org/onap/portalng/bff/config/clients/HistoryConfig.java @@ -60,7 +60,7 @@ public class HistoryConfig extends AbstractClientConfig { } @Bean - public ActionsApi portalHistoryActionApi(WebClient.Builder webClientBuilder) { + public ActionsApi historyActionApi(WebClient.Builder webClientBuilder) { return constructApiClient(webClientBuilder, ActionsApi::new); } @@ -88,7 +88,7 @@ public class HistoryConfig extends AbstractClientConfig { .title(httpStatusCode.toString()) .detail(errorResponse.getDetail()) .downstreamMessageId(errorResponse.getType()) - .downstreamSystem(ProblemApiDto.DownstreamSystemEnum.PORTAL_HISTORY.toString()) + .downstreamSystem(ProblemApiDto.DownstreamSystemEnum.HISTORY.toString()) .downstreamStatus(httpStatusCode.value()) .build(); } diff --git a/lib/src/main/java/org/onap/portalng/bff/services/ActionService.java b/lib/src/main/java/org/onap/portalng/bff/services/ActionService.java index cb7b6b4..bb272a1 100644 --- a/lib/src/main/java/org/onap/portalng/bff/services/ActionService.java +++ b/lib/src/main/java/org/onap/portalng/bff/services/ActionService.java @@ -64,7 +64,7 @@ public class ActionService { xRequestId, "Create actions failed for userId", userId, - ProblemApiDto.DownstreamSystemEnum.PORTAL_HISTORY.toString()); + ProblemApiDto.DownstreamSystemEnum.HISTORY.toString()); return Mono.error(ex); }); } @@ -82,7 +82,7 @@ public class ActionService { xRequestId, "Get actions failed for userId", userId, - ProblemApiDto.DownstreamSystemEnum.PORTAL_HISTORY.toString()); + ProblemApiDto.DownstreamSystemEnum.HISTORY.toString()); return Mono.error(ex); }); } @@ -101,7 +101,7 @@ public class ActionService { xRequestId, "List actions failed", null, - ProblemApiDto.DownstreamSystemEnum.PORTAL_HISTORY.toString()); + ProblemApiDto.DownstreamSystemEnum.HISTORY.toString()); return Mono.error(ex); }); } @@ -118,7 +118,7 @@ public class ActionService { + deleteAfterHours + " hours", userId, - ProblemApiDto.DownstreamSystemEnum.PORTAL_HISTORY.toString()); + ProblemApiDto.DownstreamSystemEnum.HISTORY.toString()); return Mono.error(ex); }); } -- cgit 1.2.3-korg