cloudfoundry/stratos

View on GitHub
src/frontend/packages/cloud-foundry/src/user-permissions/cf-user-roles-fetch.ts

Summary

Maintainability
A
0 mins
Test Coverage

Function dispatchRoleRequests has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

function dispatchRoleRequests(
  endpoints: EntityUserRolesEndpoint[],
  store: Store<AppState>,
  httpClient: HttpClient
): CfsRequestState {

    Function fetchCfUserRole has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Wontfix

    export function fetchCfUserRole(store: Store<AppState>, action: GetCurrentCfUserRelations, httpClient: HttpClient): Observable<boolean> {
      const url = `pp/v1/proxy/v2/users/${action.guid}/${action.relationType}`;
      const params = {
        headers: {
          'x-cap-cnsi-list': action.endpointGuid,

      There are no issues that match your filters.

      Category
      Status