From 2b309966ff08c651d0c00a19f92118287fe4a84d Mon Sep 17 00:00:00 2001 From: kwasniew Date: Mon, 21 Oct 2024 11:15:21 +0200 Subject: [PATCH] feat: increase latest events in personal dashboard --- .../personal-dashboard-controller.e2e.test.ts | 7 +++++++ .../personal-dashboard/personal-dashboard-service.ts | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/lib/features/personal-dashboard/personal-dashboard-controller.e2e.test.ts b/src/lib/features/personal-dashboard/personal-dashboard-controller.e2e.test.ts index b797fad0f858..4583f1bae463 100644 --- a/src/lib/features/personal-dashboard/personal-dashboard-controller.e2e.test.ts +++ b/src/lib/features/personal-dashboard/personal-dashboard-controller.e2e.test.ts @@ -297,6 +297,13 @@ test('should return personal dashboard project details', async () => { 'triggered **project-access-added**', ), }, + { + createdAt: expect.stringMatching(timestampPattern), + createdBy: 'audit user', + summary: expect.stringContaining( + '**audit user** created project', + ), + }, ], }); diff --git a/src/lib/features/personal-dashboard/personal-dashboard-service.ts b/src/lib/features/personal-dashboard/personal-dashboard-service.ts index 6a360bea6f0d..758215e85179 100644 --- a/src/lib/features/personal-dashboard/personal-dashboard-service.ts +++ b/src/lib/features/personal-dashboard/personal-dashboard-service.ts @@ -150,7 +150,7 @@ export class PersonalDashboardService { const [latestEvents, owners, roles, healthScores] = await Promise.all([ this.eventStore - .searchEvents({ limit: 4, offset: 0 }, [ + .searchEvents({ limit: 10, offset: 0 }, [ { field: 'project', operator: 'IS',