feat(core): Rebuild project roles to load from the database (#17909)

This commit is contained in:
Guillaume Jacquart
2025-08-28 11:00:31 +02:00
committed by GitHub
parent ab7998b441
commit f757790394
63 changed files with 546 additions and 305 deletions

View File

@@ -61,7 +61,7 @@ describe('ProjectService', () => {
expect(relations[0]).toMatchObject({
projectId: project.id,
userId: user.id,
role: 'project:admin',
role: { slug: 'project:admin' },
});
});
@@ -82,7 +82,7 @@ describe('ProjectService', () => {
expect(relations[0]).toMatchObject({
projectId: project.id,
userId: user.id,
role: 'project:editor',
role: { slug: 'project:editor' },
});
});
});
@@ -103,7 +103,7 @@ describe('ProjectService', () => {
expect(relations[0]).toMatchObject({
projectId: project.id,
userId: user.id,
role: 'project:admin',
role: { slug: 'project:admin' },
});
});
});