1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-07 01:16:28 +02:00

refactor: remove deprecated post project role access endpoint (#9948)

https://linear.app/unleash/issue/2-3363/remove-post-apiadminprojectsprojectidroleroleidaccess-deprecated-in

Removes POST `/api/admin/projects/{projectId}/role/{roleId}/access`
which was deprecated in v5.5.
Also cleans up related code.

Needs follow up PRs.
This commit is contained in:
Nuno Góis 2025-05-13 12:28:44 +01:00 committed by GitHub
parent 57d11ae6b3
commit c0c7005859
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -105,10 +105,10 @@ export const addUserToProject_API = (
const project = projectName || 'default';
return cy.request(
'POST',
`${baseUrl}/api/admin/projects/${project}/role/${role}/access`,
`${baseUrl}/api/admin/projects/${project}/access`,
{
groups: [],
users: [{ id }],
roles: [role],
users: [id],
},
);
};

View File

@ -843,6 +843,9 @@ export default class ProjectService {
);
}
/**
* @deprecated use `addAccess` instead
*/
async addRoleAccess(
projectId: string,
roleId: number,