Skip to content

Commit

Permalink
perf(RHIF-167): get rid of activeApps in redux
Browse files Browse the repository at this point in the history
  • Loading branch information
mkholjuraev committed Feb 9, 2023
1 parent c157527 commit e1e5046
Show file tree
Hide file tree
Showing 28 changed files with 22,185 additions and 19,996 deletions.
1 change: 1 addition & 0 deletions config/dev.webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ plugins.push(
'./InventoryTable': resolve(__dirname, '../src/modules/InventoryTable.js'),
'./AppInfo': resolve(__dirname, '../src/modules/AppInfo.js'),
'./InventoryDetailHead': resolve(__dirname, '../src/modules/InventoryDetailHead.js'),
'./DetailHeader': resolve(__dirname, '../src/modules/DetailHeader.js'),
'./InventoryDetail': resolve(__dirname, '../src/modules/InventoryDetail.js'),
'./TagWithDialog': resolve(__dirname, '../src/modules/TagWithDialog.js'),
'./DetailWrapper': resolve(__dirname, '../src/modules/DetailWrapper.js'),
Expand Down
1 change: 1 addition & 0 deletions config/prod.webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ plugins.push(
'./InventoryTable': resolve(__dirname, '../src/modules/InventoryTable.js'),
'./AppInfo': resolve(__dirname, '../src/modules/AppInfo.js'),
'./InventoryDetailHead': resolve(__dirname, '../src/modules/InventoryDetailHead.js'),
'./DetailHeader': resolve(__dirname, '../src/modules/DetailHeader.js'),
'./InventoryDetail': resolve(__dirname, '../src/modules/InventoryDetail.js'),
'./TagWithDialog': resolve(__dirname, '../src/modules/TagWithDialog.js'),
'./DetailWrapper': resolve(__dirname, '../src/modules/DetailWrapper.js'),
Expand Down
1 change: 0 additions & 1 deletion doc/inventory.md
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,6 @@ These actions are fired from inventory component. If action is marked with `*` i
* `SELECT_ENTITY` - if user clicks on checkbox in entity list
* `CHANGE_SORT` - when user changes sort
* `FILTER_ENTITIES` - when user wants to filter entities
* `APPLICATION_SELECTED` - fired after user clicks on application detail

## Store shape
As mentioned before the async loader will load two functions `mergeWithEntities` and `mergeWithDetail` both have access to your store and they will create specific keys in store. Please do not change the data directly, since that can break the inventory component.
Expand Down
2 changes: 1 addition & 1 deletion src/api/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export async function getEntities(items, {
fields = { system_profile: ['operating_system'] },
...options
}, showTags) {
if (hasItems && items.length > 0) {
if (hasItems && items?.length > 0) {
let data = await hosts.apiHostGetHostById(
items,
undefined,
Expand Down
Loading

0 comments on commit e1e5046

Please sign in to comment.