From a5b8bedd06edeeced11a6f48564703d6424afaa8 Mon Sep 17 00:00:00 2001 From: Maximilian Wesener Date: Tue, 28 Nov 2023 14:18:46 +0100 Subject: [PATCH 1/4] chore: TRACEFOSS-604 added received / sent investigation / alert count --- CHANGELOG.md | 1 + .../mapper/DashboardResponseMapper.java | 6 +++++- .../domain/dashboard/model/Dashboard.java | 4 ++++ .../service/DashboardServiceImpl.java | 11 +++++++++++ .../QualityNotificationRepository.java | 1 + .../rest/DashboardControllerTest.java | 9 +++++++++ .../assets/DashboardControllerIT.java | 18 +++++++++++++++--- .../assets/response/DashboardResponse.java | 15 ++++++++++++++- 8 files changed, 60 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0847a88ed7..41451c740a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ### Added - Added new dashboard layout and additional widgets - Refactored dashboard response +- Added new fields to dashboard response ## [9.0.0-rc3 - 27.11.2023] ### Added diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/application/dashboard/mapper/DashboardResponseMapper.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/application/dashboard/mapper/DashboardResponseMapper.java index 3846a69ee5..4f2620e4b8 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/application/dashboard/mapper/DashboardResponseMapper.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/application/dashboard/mapper/DashboardResponseMapper.java @@ -36,7 +36,11 @@ public static DashboardResponse from(final Dashboard dashboard) { dashboard.getSupplierPartsWithOpenAlerts(), dashboard.getCustomerPartsWithOpenAlerts(), dashboard.getSupplierPartsWithOpenInvestigations(), - dashboard.getCustomerPartsWithOpenInvestigations() + dashboard.getCustomerPartsWithOpenInvestigations(), + dashboard.getReceivedActiveAlerts(), + dashboard.getReceivedActiveInvestigations(), + dashboard.getSentActiveAlerts(), + dashboard.getSentActiveInvestigations() ); } } diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/dashboard/model/Dashboard.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/dashboard/model/Dashboard.java index f8e22a4157..e768cdcf06 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/dashboard/model/Dashboard.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/dashboard/model/Dashboard.java @@ -39,4 +39,8 @@ public class Dashboard { long customerPartsWithOpenAlerts; long supplierPartsWithOpenInvestigations; long customerPartsWithOpenInvestigations; + long receivedActiveAlerts; + long receivedActiveInvestigations; + long sentActiveAlerts; + long sentActiveInvestigations; } diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/dashboard/service/DashboardServiceImpl.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/dashboard/service/DashboardServiceImpl.java index 5bb9e85235..42f74e566e 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/dashboard/service/DashboardServiceImpl.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/dashboard/service/DashboardServiceImpl.java @@ -29,6 +29,7 @@ import org.eclipse.tractusx.traceability.assets.domain.dashboard.model.Dashboard; import org.eclipse.tractusx.traceability.qualitynotification.domain.base.AlertRepository; import org.eclipse.tractusx.traceability.qualitynotification.domain.base.InvestigationRepository; +import org.eclipse.tractusx.traceability.qualitynotification.domain.base.model.QualityNotificationSide; import org.springframework.stereotype.Component; import java.util.List; @@ -62,6 +63,12 @@ public Dashboard getDashboard() { long customerPartsWithOpenReceivedAlerts = alertRepository.countOpenNotificationsByOwnership(List.of(Owner.CUSTOMER)); long customerPartsWithOpenSentInvestigations = investigationsRepository.countOpenNotificationsByOwnership(List.of(Owner.CUSTOMER)); + long receivedActiveInvestigations = investigationsRepository.countQualityNotificationEntitiesBySide(QualityNotificationSide.RECEIVER); + long sentActiveInvestigations = investigationsRepository.countQualityNotificationEntitiesBySide(QualityNotificationSide.SENDER); + + long receivedActiveAlerts = alertRepository.countQualityNotificationEntitiesBySide(QualityNotificationSide.RECEIVER); + long sentActiveAlerts = alertRepository.countQualityNotificationEntitiesBySide(QualityNotificationSide.SENDER); + return Dashboard.builder() .asBuiltCustomerParts(asBuiltCustomerParts) .asPlannedCustomerParts(asPlannedCustomerParts) @@ -75,6 +82,10 @@ public Dashboard getDashboard() { .customerPartsWithOpenAlerts(customerPartsWithOpenReceivedAlerts) .supplierPartsWithOpenInvestigations(supplierPartsWithOpenSentInvestigations) .customerPartsWithOpenInvestigations(customerPartsWithOpenSentInvestigations) + .receivedActiveAlerts(receivedActiveAlerts) + .receivedActiveInvestigations(receivedActiveInvestigations) + .sentActiveAlerts(sentActiveAlerts) + .sentActiveInvestigations(sentActiveInvestigations) .build(); } diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/qualitynotification/domain/repository/QualityNotificationRepository.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/qualitynotification/domain/repository/QualityNotificationRepository.java index 58615c2d0b..1f916cd33a 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/qualitynotification/domain/repository/QualityNotificationRepository.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/qualitynotification/domain/repository/QualityNotificationRepository.java @@ -55,4 +55,5 @@ public interface QualityNotificationRepository { PageResult getNotifications(Pageable pageable, SearchCriteria searchCriteria); long countOpenNotificationsByOwnership(List owners); + } diff --git a/tx-backend/src/test/java/org/eclipse/tractusx/traceability/assets/application/rest/DashboardControllerTest.java b/tx-backend/src/test/java/org/eclipse/tractusx/traceability/assets/application/rest/DashboardControllerTest.java index 5a15ab01a8..3aee10f460 100644 --- a/tx-backend/src/test/java/org/eclipse/tractusx/traceability/assets/application/rest/DashboardControllerTest.java +++ b/tx-backend/src/test/java/org/eclipse/tractusx/traceability/assets/application/rest/DashboardControllerTest.java @@ -52,6 +52,10 @@ void dashboard() { .customerPartsWithOpenAlerts(1111L) .supplierPartsWithOpenInvestigations(1111L) .customerPartsWithOpenInvestigations(1111L) + .sentActiveInvestigations(5000L) + .sentActiveAlerts(2000L) + .receivedActiveInvestigations(2500L) + .receivedActiveAlerts(3000L) .build(); Mockito.when(dashboardService.getDashboard()).thenReturn(dashboard); Dashboard testDashboard = dashboardService.getDashboard(); @@ -67,6 +71,11 @@ void dashboard() { assertEquals(1111, testDashboard.getCustomerPartsWithOpenAlerts()); assertEquals(1111, testDashboard.getSupplierPartsWithOpenInvestigations()); assertEquals(1111, testDashboard.getCustomerPartsWithOpenInvestigations()); + assertEquals(5000, testDashboard.getSentActiveInvestigations()); + assertEquals(2000, testDashboard.getSentActiveAlerts()); + assertEquals(2500, testDashboard.getReceivedActiveAlerts()); + assertEquals(3000, testDashboard.getReceivedActiveInvestigations()); + } } diff --git a/tx-backend/src/test/java/org/eclipse/tractusx/traceability/integration/assets/DashboardControllerIT.java b/tx-backend/src/test/java/org/eclipse/tractusx/traceability/integration/assets/DashboardControllerIT.java index 7a0edf977a..eb19b8c5fb 100644 --- a/tx-backend/src/test/java/org/eclipse/tractusx/traceability/integration/assets/DashboardControllerIT.java +++ b/tx-backend/src/test/java/org/eclipse/tractusx/traceability/integration/assets/DashboardControllerIT.java @@ -98,7 +98,11 @@ void givenRoles_whenGetDashboard_thenReturnResponse(final List roles) t .body("supplierPartsWithOpenAlerts", equalTo(0)) .body("customerPartsWithOpenAlerts", equalTo(0)) .body("supplierPartsWithOpenInvestigations", equalTo(0)) - .body("customerPartsWithOpenInvestigations", equalTo(0)); + .body("customerPartsWithOpenInvestigations", equalTo(0)) + .body("receivedActiveAlerts", equalTo(0)) + .body("receivedActiveInvestigations", equalTo(0)) + .body("sentActiveAlerts", equalTo(0)) + .body("sentActiveInvestigations", equalTo(0)); } @Test @@ -134,7 +138,11 @@ void givenAlertsWithAssets_whenGetDashboard_thenReturnResponse() throws JoseExce .body("supplierPartsWithOpenAlerts", equalTo(12)) .body("customerPartsWithOpenAlerts", equalTo(0)) .body("supplierPartsWithOpenInvestigations", equalTo(0)) - .body("customerPartsWithOpenInvestigations", equalTo(0)); + .body("customerPartsWithOpenInvestigations", equalTo(0)) + .body("receivedActiveAlerts", equalTo(0)) + .body("receivedActiveInvestigations", equalTo(0)) + .body("sentActiveAlerts", equalTo(0)) + .body("sentActiveInvestigations", equalTo(0)); } @Test @@ -192,7 +200,11 @@ void givenPendingInvestigation_whenGetDashboard_thenReturnPendingInvestigation() .body("supplierPartsWithOpenAlerts", equalTo(0)) .body("customerPartsWithOpenAlerts", equalTo(0)) .body("supplierPartsWithOpenInvestigations", equalTo(1)) - .body("customerPartsWithOpenInvestigations", equalTo(0)); + .body("customerPartsWithOpenInvestigations", equalTo(0)) + .body("receivedActiveAlerts", equalTo(0)) + .body("receivedActiveInvestigations", equalTo(0)) + .body("sentActiveAlerts", equalTo(0)) + .body("sentActiveInvestigations", equalTo(0)); } private static Stream roles() { diff --git a/tx-models/src/main/java/assets/response/DashboardResponse.java b/tx-models/src/main/java/assets/response/DashboardResponse.java index 0992419891..23dbaedd64 100644 --- a/tx-models/src/main/java/assets/response/DashboardResponse.java +++ b/tx-models/src/main/java/assets/response/DashboardResponse.java @@ -45,6 +45,19 @@ public record DashboardResponse( @ApiModelProperty(example = "2") Long supplierPartsWithOpenInvestigations, @ApiModelProperty(example = "2") - Long customerPartsWithOpenInvestigations) { + Long customerPartsWithOpenInvestigations, + + @ApiModelProperty(example = "2") + Long receivedActiveAlerts, + + @ApiModelProperty(example = "2") + Long receivedActiveInvestigations, + + @ApiModelProperty(example = "2") + Long sentActiveAlerts, + + @ApiModelProperty(example = "2") + Long sentActiveInvestigations) { + } From d428409cf4a249c4b0c49f31daaee949d26f1962 Mon Sep 17 00:00:00 2001 From: Maximilian Wesener Date: Tue, 28 Nov 2023 14:23:04 +0100 Subject: [PATCH 2/4] chore: TRACEFOSS-604 added received / sent investigation / alert count --- .../assets/application/rest/DashboardControllerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tx-backend/src/test/java/org/eclipse/tractusx/traceability/assets/application/rest/DashboardControllerTest.java b/tx-backend/src/test/java/org/eclipse/tractusx/traceability/assets/application/rest/DashboardControllerTest.java index 3aee10f460..40592b7a04 100644 --- a/tx-backend/src/test/java/org/eclipse/tractusx/traceability/assets/application/rest/DashboardControllerTest.java +++ b/tx-backend/src/test/java/org/eclipse/tractusx/traceability/assets/application/rest/DashboardControllerTest.java @@ -73,8 +73,8 @@ void dashboard() { assertEquals(1111, testDashboard.getCustomerPartsWithOpenInvestigations()); assertEquals(5000, testDashboard.getSentActiveInvestigations()); assertEquals(2000, testDashboard.getSentActiveAlerts()); - assertEquals(2500, testDashboard.getReceivedActiveAlerts()); - assertEquals(3000, testDashboard.getReceivedActiveInvestigations()); + assertEquals(3000, testDashboard.getReceivedActiveAlerts()); + assertEquals(2500, testDashboard.getReceivedActiveInvestigations()); } From c7af5e3d716b5df025d321e346437203cf919053 Mon Sep 17 00:00:00 2001 From: Maximilian Wesener Date: Tue, 28 Nov 2023 14:34:07 +0100 Subject: [PATCH 3/4] chore: TRACEFOSS-604 added received / sent investigation / alert count --- .../dashboard-mock/dashboard.model.ts | 6 +- .../core/dashboard.assembler.spec.ts | 78 ++++++++++--------- .../dashboard/core/dashboard.assembler.ts | 4 + .../page/dashboard/model/dashboard.model.ts | 13 +++- .../presentation/dashboard.component.ts | 8 +- .../assets/DashboardControllerIT.java | 4 +- 6 files changed, 69 insertions(+), 44 deletions(-) diff --git a/frontend/src/app/mocks/services/dashboard-mock/dashboard.model.ts b/frontend/src/app/mocks/services/dashboard-mock/dashboard.model.ts index e1fa20dd51..75fd7cd2d7 100644 --- a/frontend/src/app/mocks/services/dashboard-mock/dashboard.model.ts +++ b/frontend/src/app/mocks/services/dashboard-mock/dashboard.model.ts @@ -36,5 +36,9 @@ export const mockDashboardStats: DashboardStatsResponse = { asBuiltSupplierParts: 163000, asPlannedSupplierParts: 2563, asBuiltOwnParts: 5300000, - asPlannedOwnParts: 11203 + asPlannedOwnParts: 11203, + receivedActiveAlerts: 5000, + receivedActiveInvestigations: 2000, + sentActiveAlerts: 7000, + sentActiveInvestigations: 5 }; diff --git a/frontend/src/app/modules/page/dashboard/core/dashboard.assembler.spec.ts b/frontend/src/app/modules/page/dashboard/core/dashboard.assembler.spec.ts index de43371dfb..ac57c41257 100644 --- a/frontend/src/app/modules/page/dashboard/core/dashboard.assembler.spec.ts +++ b/frontend/src/app/modules/page/dashboard/core/dashboard.assembler.spec.ts @@ -19,46 +19,54 @@ * SPDX-License-Identifier: Apache-2.0 ********************************************************************************/ -import { DashboardAssembler } from './dashboard.assembler'; +import {DashboardAssembler} from './dashboard.assembler'; describe('DashboardAssembler', () => { - describe('assembleDashboard', () => { - it('should map response', () => { - expect( - DashboardAssembler.assembleDashboard({ - asBuiltOwnParts: 200, - asBuiltCustomerParts: 0, - asBuiltSupplierParts: 10, - asPlannedCustomerParts: 0, - asPlannedOwnParts: 0, - asPlannedSupplierParts: 0, - customerPartsWithOpenAlerts: 0, - customerPartsWithOpenInvestigations: 0, - myPartsWithOpenAlerts: 0, - myPartsWithOpenInvestigations: 0, - supplierPartsWithOpenAlerts: 0, - supplierPartsWithOpenInvestigations: 0, + describe('assembleDashboard', () => { + it('should map response', () => { + expect( + DashboardAssembler.assembleDashboard({ + asBuiltOwnParts: 200, + asBuiltCustomerParts: 0, + asBuiltSupplierParts: 10, + asPlannedCustomerParts: 0, + asPlannedOwnParts: 0, + asPlannedSupplierParts: 0, + customerPartsWithOpenAlerts: 0, + customerPartsWithOpenInvestigations: 0, + myPartsWithOpenAlerts: 0, + myPartsWithOpenInvestigations: 0, + supplierPartsWithOpenAlerts: 0, + supplierPartsWithOpenInvestigations: 0, + receivedActiveAlerts: 0, + receivedActiveInvestigations: 0, + sentActiveInvestigations: 0, + sentActiveAlerts: 0 - }), - ).toEqual({ - asBuiltCustomerParts: 0, - asBuiltSupplierParts: 10, - asPlannedCustomerParts: 0, - asPlannedOwnParts: 0, - asPlannedSupplierParts: 0, - asBuiltOwnParts: 200, + }), + ).toEqual({ + asBuiltCustomerParts: 0, + asBuiltSupplierParts: 10, + asPlannedCustomerParts: 0, + asPlannedOwnParts: 0, + asPlannedSupplierParts: 0, + asBuiltOwnParts: 200, - totalOwnParts: 200, - totalOtherParts: 10, + totalOwnParts: 200, + totalOtherParts: 10, - ownOpenInvestigationsReceived: 0, - ownOpenInvestigationsCreated: 0, - ownOpenAlertsReceived: 0, - ownOpenAlertsCreated: 0, + ownOpenInvestigationsReceived: 0, + ownOpenInvestigationsCreated: 0, + ownOpenAlertsReceived: 0, + ownOpenAlertsCreated: 0, - myPartsWithOpenAlerts: 0, - myPartsWithOpenInvestigations: 0 - }); + myPartsWithOpenAlerts: 0, + myPartsWithOpenInvestigations: 0, + receivedActiveAlerts: 0, + receivedActiveInvestigations: 0, + sentActiveAlerts: 0, + sentActiveInvestigations: 0 + }); + }); }); - }); }); diff --git a/frontend/src/app/modules/page/dashboard/core/dashboard.assembler.ts b/frontend/src/app/modules/page/dashboard/core/dashboard.assembler.ts index 92224bd407..b5918aefed 100644 --- a/frontend/src/app/modules/page/dashboard/core/dashboard.assembler.ts +++ b/frontend/src/app/modules/page/dashboard/core/dashboard.assembler.ts @@ -43,6 +43,10 @@ export class DashboardAssembler { ownOpenInvestigationsCreated: dashboard.supplierPartsWithOpenInvestigations + dashboard.customerPartsWithOpenInvestigations, ownOpenAlertsReceived: dashboard.supplierPartsWithOpenAlerts + dashboard.customerPartsWithOpenAlerts, ownOpenAlertsCreated: dashboard.myPartsWithOpenAlerts, + receivedActiveAlerts: dashboard.receivedActiveAlerts, + sentActiveAlerts: dashboard.sentActiveAlerts, + receivedActiveInvestigations: dashboard.receivedActiveInvestigations, + sentActiveInvestigations: dashboard.sentActiveInvestigations }; } diff --git a/frontend/src/app/modules/page/dashboard/model/dashboard.model.ts b/frontend/src/app/modules/page/dashboard/model/dashboard.model.ts index a95a635f47..a4e319536c 100644 --- a/frontend/src/app/modules/page/dashboard/model/dashboard.model.ts +++ b/frontend/src/app/modules/page/dashboard/model/dashboard.model.ts @@ -38,7 +38,11 @@ export interface DashboardStats { ownOpenInvestigationsReceived: number, ownOpenInvestigationsCreated: number, ownOpenAlertsReceived: number, - ownOpenAlertsCreated: number + ownOpenAlertsCreated: number, + receivedActiveAlerts: number, + receivedActiveInvestigations: number, + sentActiveAlerts: number, + sentActiveInvestigations: number } @@ -57,5 +61,10 @@ export interface DashboardStatsResponse { asBuiltSupplierParts: number, asPlannedSupplierParts: number, asBuiltOwnParts: number, - asPlannedOwnParts: number + asPlannedOwnParts: number, + + receivedActiveAlerts: number, + receivedActiveInvestigations: number, + sentActiveAlerts: number, + sentActiveInvestigations: number } diff --git a/frontend/src/app/modules/page/dashboard/presentation/dashboard.component.ts b/frontend/src/app/modules/page/dashboard/presentation/dashboard.component.ts index a80709ab28..6ea9ed4e3a 100644 --- a/frontend/src/app/modules/page/dashboard/presentation/dashboard.component.ts +++ b/frontend/src/app/modules/page/dashboard/presentation/dashboard.component.ts @@ -95,12 +95,12 @@ export class DashboardComponent implements OnInit, OnDestroy { this.investigationsMetricData = [ { metricName: 'amountReceived', - value: this.dashboardStats$.pipe(map(dashboardStats => dashboardStats.data.ownOpenInvestigationsReceived)), + value: this.dashboardStats$.pipe(map(dashboardStats => dashboardStats.data.receivedActiveInvestigations)), metricUnit: 'investigations' }, { metricName: 'amountCreated', - value: this.dashboardStats$.pipe(map(dashboardStats => dashboardStats.data.ownOpenInvestigationsCreated)), + value: this.dashboardStats$.pipe(map(dashboardStats => dashboardStats.data.sentActiveInvestigations)), metricUnit: 'investigations' } ]; @@ -109,12 +109,12 @@ export class DashboardComponent implements OnInit, OnDestroy { this.alertsMetricData = [ { metricName: 'amountReceived', - value: this.dashboardStats$.pipe(map(dashboardStats => dashboardStats.data.ownOpenAlertsReceived)), + value: this.dashboardStats$.pipe(map(dashboardStats => dashboardStats.data.receivedActiveAlerts)), metricUnit: 'alerts' }, { metricName: 'amountCreated', - value: this.dashboardStats$.pipe(map(dashboardStats => dashboardStats.data.ownOpenAlertsCreated)), + value: this.dashboardStats$.pipe(map(dashboardStats => dashboardStats.data.sentActiveAlerts)), metricUnit: 'alerts' } ]; diff --git a/tx-backend/src/test/java/org/eclipse/tractusx/traceability/integration/assets/DashboardControllerIT.java b/tx-backend/src/test/java/org/eclipse/tractusx/traceability/integration/assets/DashboardControllerIT.java index eb19b8c5fb..07d65b3185 100644 --- a/tx-backend/src/test/java/org/eclipse/tractusx/traceability/integration/assets/DashboardControllerIT.java +++ b/tx-backend/src/test/java/org/eclipse/tractusx/traceability/integration/assets/DashboardControllerIT.java @@ -139,7 +139,7 @@ void givenAlertsWithAssets_whenGetDashboard_thenReturnResponse() throws JoseExce .body("customerPartsWithOpenAlerts", equalTo(0)) .body("supplierPartsWithOpenInvestigations", equalTo(0)) .body("customerPartsWithOpenInvestigations", equalTo(0)) - .body("receivedActiveAlerts", equalTo(0)) + .body("receivedActiveAlerts", equalTo(2)) .body("receivedActiveInvestigations", equalTo(0)) .body("sentActiveAlerts", equalTo(0)) .body("sentActiveInvestigations", equalTo(0)); @@ -204,7 +204,7 @@ void givenPendingInvestigation_whenGetDashboard_thenReturnPendingInvestigation() .body("receivedActiveAlerts", equalTo(0)) .body("receivedActiveInvestigations", equalTo(0)) .body("sentActiveAlerts", equalTo(0)) - .body("sentActiveInvestigations", equalTo(0)); + .body("sentActiveInvestigations", equalTo(1)); } private static Stream roles() { From 4d14730a16cd315113107f2f55e74a342d6ade7a Mon Sep 17 00:00:00 2001 From: Maximilian Wesener Date: Tue, 28 Nov 2023 14:42:29 +0100 Subject: [PATCH 4/4] chore: TRACEFOSS-604 added received / sent investigation / alert count --- .../traceability/integration/assets/DashboardControllerIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tx-backend/src/test/java/org/eclipse/tractusx/traceability/integration/assets/DashboardControllerIT.java b/tx-backend/src/test/java/org/eclipse/tractusx/traceability/integration/assets/DashboardControllerIT.java index 07d65b3185..3f8c489cec 100644 --- a/tx-backend/src/test/java/org/eclipse/tractusx/traceability/integration/assets/DashboardControllerIT.java +++ b/tx-backend/src/test/java/org/eclipse/tractusx/traceability/integration/assets/DashboardControllerIT.java @@ -202,7 +202,7 @@ void givenPendingInvestigation_whenGetDashboard_thenReturnPendingInvestigation() .body("supplierPartsWithOpenInvestigations", equalTo(1)) .body("customerPartsWithOpenInvestigations", equalTo(0)) .body("receivedActiveAlerts", equalTo(0)) - .body("receivedActiveInvestigations", equalTo(0)) + .body("receivedActiveInvestigations", equalTo(1)) .body("sentActiveAlerts", equalTo(0)) .body("sentActiveInvestigations", equalTo(1)); }