1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

feat: adjust search query for personal project (#8296)

This commit is contained in:
Mateusz Kwasniewski 2024-09-27 15:23:00 +02:00 committed by GitHub
parent 530af3d7d6
commit f000579d5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 9 deletions

View File

@ -244,7 +244,7 @@ export const PersonalDashboard = () => {
{projects.map((project) => {
return (
<ListItem
key={project.name}
key={project.id}
disablePadding={true}
sx={{ mb: 1 }}
>
@ -264,12 +264,12 @@ export const PersonalDashboard = () => {
</StyledCardTitle>
<IconButton
component={Link}
href={`projects/${project.name}`}
href={`projects/${project.id}`}
size='small'
sx={{ ml: 'auto' }}
>
<LinkIcon
titleAccess={`projects/${project.name}`}
titleAccess={`projects/${project.id}`}
/>
</IconButton>
</ProjectBox>

View File

@ -210,10 +210,6 @@ test('should return personal dashboard project details', async () => {
'**new_user@test.com** created **[log_feature_a]',
),
},
{
createdBy: 'unleash_system_user',
summary: '**unleash_system_user** created user ****',
},
],
});
});

View File

@ -66,8 +66,8 @@ export class PersonalDashboardService {
projectId: string,
): Promise<PersonalProjectDetails> {
const recentEvents = await this.eventStore.searchEvents(
{ project: projectId, limit: 4, offset: 0 },
[],
{ limit: 4, offset: 0 },
[{ field: 'project', operator: 'IS', values: [projectId] }],
);
const formattedEvents = recentEvents.map((event) => ({