diff --git a/src/store/action-types.js b/src/store/action-types.js index 68e1233a7..3ed7c140c 100644 --- a/src/store/action-types.js +++ b/src/store/action-types.js @@ -36,7 +36,6 @@ export const asyncInventory = [ 'OPERATING_SYSTEMS', 'GROUPS', 'GROUP_DETAIL', - 'GROUPS_FOR_ENTITIES', ]; export const systemIssues = [ @@ -70,7 +69,6 @@ export const FILTER_SELECT = 'FILTER_SELECT'; export const ENTITIES_LOADING = 'ENTITIES_LOADING'; export const CLEAR_FILTERS = 'CLEAR_FILTERS'; export const TOGGLE_TAG_MODAL = 'TOGGLE_TAG_MODAL'; -export const CONFIG_CHANGED = 'CONFIG_CHANGED'; export const TOGGLE_DRAWER = 'TOGGLE_INVENTORY_DRAWER'; export const CLEAR_ENTITIES = 'CLEAR_ENTITIES'; export const CLEAR_ERRORS = 'CLEAR_ERRORS'; diff --git a/src/store/entities.js b/src/store/entities.js index e3c811e3b..1ed811d4f 100644 --- a/src/store/entities.js +++ b/src/store/entities.js @@ -5,7 +5,6 @@ import { CLEAR_ENTITIES, CLEAR_ERRORS, CLEAR_FILTERS, - CONFIG_CHANGED, ENTITIES_LOADING, FILTER_SELECT, SELECT_ENTITY, @@ -278,13 +277,6 @@ function changeSort(state, { payload: { key, direction } }) { }; } -function groupsLoaded(state, { payload }) { - return { - ...state, - groups: payload.results, - }; -} - function selectFilter( state, { @@ -430,13 +422,6 @@ export default { loaded: !isLoading, }), [TOGGLE_TAG_MODAL]: toggleTagModalReducer, - [CONFIG_CHANGED]: (state, { payload }) => ({ ...state, invConfig: payload }), [CLEAR_ENTITIES]: clearEntities, - [ACTION_TYPES.GROUPS_FOR_ENTITIES_PENDING]: (state) => ({ - ...state, - groups: [], - }), - [ACTION_TYPES.GROUPS_FOR_ENTITIES_FULFILLED]: (state, action) => - groupsLoaded(state, { payload: { ...action.payload } }), [CLEAR_ERRORS]: (state) => ({ ...state, error: null }), }; diff --git a/src/store/inventory-actions.js b/src/store/inventory-actions.js index cad64dbcc..9002a0c92 100644 --- a/src/store/inventory-actions.js +++ b/src/store/inventory-actions.js @@ -2,7 +2,6 @@ import { ACTION_TYPES, CHANGE_SORT, CLEAR_FILTERS, - CONFIG_CHANGED, ENTITIES_LOADING, FILTER_ENTITIES, FILTER_SELECT, @@ -18,7 +17,6 @@ import { getEntitySystemProfile, getOperatingSystems, getTags, - groupsApi, hosts, } from '../api'; import { @@ -247,20 +245,7 @@ export const deleteEntity = (systems, displayName) => ({ }, }); -export const configChanged = (config) => ({ - type: CONFIG_CHANGED, - payload: config, -}); - export const toggleDrawer = (isOpened) => ({ type: TOGGLE_DRAWER, payload: { isOpened }, }); - -export const fetchGroupsForEntities = (params) => ({ - type: ACTION_TYPES.GROUPS_FOR_ENTITIES, - payload: groupsApi.apiGroupGetGroupList(params), - meta: { - noError: true, // turns of automatic notification - }, -});