static_src/actions/user_actions.js
File user_actions.js
has 430 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Actions for user entities. Any actions such as fetching, creating, updating,
* etc should go here.
*/
userActions
has 38 functions (exceeds 20 allowed). Consider refactoring. Open
Open
const userActions = {
fetchOrgUsers(orgGuid) {
AppDispatcher.handleViewAction({
type: userActionTypes.ORG_USERS_FETCH,
orgGuid
Function createUserAndAssociate
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createUserAndAssociate(userGuid) {
const entityType = UserStore.currentlyViewedType;
const orgGuid = OrgStore.currentOrgGuid;
let cfApiRequest;
let entityGuid;
Function deleteUserRoles
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
deleteUserRoles(roles, apiKey, userGuid, entityGuid, entityType) {
Function addUserRoles
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
addUserRoles(role, resource, userGuid, entityGuid, entityType) {