CE-2876: Load host status asynchronously in host table
4 unresolved threads
4 unresolved threads
Load host status asynchronously in host table. Using similar approach to the async status loading in the IOCTable.
Changing tests accordingly.
Minor optimization on fetching logs.
Closes CE-2876
Merge request reports
Activity
Filter activity
requested review from @christinajenks, @imretoth, @johannaszepanski, and @skybrewer
assigned to @domonkosgulyas
added 22 commits
-
f2c6e873...e0dcba05 - 20 commits from branch
develop
- 98976438 - CE-2876: Load host status asynchronously in host table
- fde1d32a - CE-2876: Minor optimization on log fetching
-
f2c6e873...e0dcba05 - 20 commits from branch
9 9 } from "@mui/icons-material"; 10 10 import { LabeledIcon } from "@ess-ics/ce-ui-common"; 11 11 12 export function HostStatusIcon({ host }) { 16 16 { field: "scope", headerName: "Network scope" } 17 17 ]; 18 18 19 export function createRow(hostContainer) { 20 const host = hostContainer.netBoxHost; 19 export function createRow(host) { 21 20 return { 22 21 id: host.hostId, 23 bulb: <HostStatusIcon host={hostContainer} />, 34 33 description: <EllipsisText>{host.description}</EllipsisText>, 35 34 network: <EllipsisText>{host.network}</EllipsisText>, 36 35 scope: <EllipsisText>{host.scope}</EllipsisText>, 37 discrepancy: hostContainer.alertSeverity === "WARNING", 38 inconsistentState: hostContainer.alertSeverity === "ERROR", 39 36 shortenLongData: true, changed this line in version 3 of the diff
1 1 import React from "react"; Could you add some statuses in the mock data that is something else than active or inactive, there seems to be more states in HostIcons and it would be nice to see what is "available"
And maybe some with alerts?
Edited by Johanna Szepanski
added 1 commit
mentioned in commit 3dbfeb2d
Please register or sign in to reply