Skip to content

Commit

Permalink
feat: adjust search query for personal project (#8296)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew authored Sep 27, 2024
1 parent 530af3d commit f000579
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export const PersonalDashboard = () => {
{projects.map((project) => {
return (
<ListItem
key={project.name}
key={project.id}
disablePadding={true}
sx={{ mb: 1 }}
>
Expand All @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,6 @@ test('should return personal dashboard project details', async () => {
'**[email protected]** created **[log_feature_a]',
),
},
{
createdBy: 'unleash_system_user',
summary: '**unleash_system_user** created user ****',
},
],
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -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) => ({
Expand Down

0 comments on commit f000579

Please sign in to comment.