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:
parent
530af3d7d6
commit
f000579d5b
@ -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>
|
||||
|
@ -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 ****',
|
||||
},
|
||||
],
|
||||
});
|
||||
});
|
||||
|
@ -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) => ({
|
||||
|
Loading…
Reference in New Issue
Block a user