Skip to content

Commit

Permalink
PR builder fail address
Browse files Browse the repository at this point in the history
  • Loading branch information
Achintha Isuru committed Oct 22, 2023
1 parent 31b88ad commit 70273b1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/console/src/features/roles/api/roles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ export const useRolesList = <Data = RoleListInterface, Error = RequestErrorInter
filter,
startIndex
},
url: store.getState().config.endpoints.rolesV2
url: store.getState().config.endpoints.rolesNew
};

const {
Expand Down
2 changes: 1 addition & 1 deletion apps/console/src/features/roles/configs/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const getRolesResourceEndpoints = (
apiResources: `${serverHost}/api/server/v1/api-resources`,
permission: `${serverHostWithOrgPath}/api/server/v1/permission-management/permissions`,
roles: `${serverHostWithOrgPath}/scim2/Roles`,
rolesV2: `${serverHostWithOrgPath}/scim2/v2/Roles`,
rolesNew: `${serverHostWithOrgPath}/scim2/v2/Roles`,
rolesWithoutOrgPath: `${serverHost}/scim2/Roles`
};
};
2 changes: 1 addition & 1 deletion apps/console/src/features/roles/models/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface RolesResourceEndpointsInterface {
// TODO: This need to be removed once this endpoint is moved to the API resources feature.
apiResources?: string;
// TODO: Need to replace this with `roles` once the implementation is done.
rolesV2?: string;
rolesNew?: string;
roles: string;
permission: string;
rolesWithoutOrgPath: string;
Expand Down
4 changes: 2 additions & 2 deletions apps/console/src/features/roles/pages/role-updated.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ const RolesPage: FunctionComponent<RolesPagePropsInterface> = (
*/
useEffect(() => {
if (rolesListError) {
handleAlerts(addAlert<AlertInterface>({
handleAlerts({
description: t("console:manage.features.roles.notifications.fetchRoles.genericError.description"),
level: AlertLevels.ERROR,
message: t("console:manage.features.roles.notifications.fetchRoles.genericError.message")
}));
});
}
}, [ rolesListError ]);

Expand Down

0 comments on commit 70273b1

Please sign in to comment.