diff --git a/rust/agama-storage-client/src/service.rs b/rust/agama-storage-client/src/service.rs index b2656d942a..0f009430f4 100644 --- a/rust/agama-storage-client/src/service.rs +++ b/rust/agama-storage-client/src/service.rs @@ -396,7 +396,7 @@ impl MessageHandler for Service { return Ok(vec![]); }; - let raw_json = proxy.system().await?; + let raw_json = proxy.issues().await?; Ok(try_from_string(&raw_json)?) } } diff --git a/rust/package/agama.changes b/rust/package/agama.changes index 740c464005..5a920f6e71 100644 --- a/rust/package/agama.changes +++ b/rust/package/agama.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Mar 16 12:39:37 UTC 2026 - José Iván López González + +- Fix method for getting zFCP issues (gh#agama-project/agama#3287). + ------------------------------------------------------------------- Mon Mar 16 06:50:07 UTC 2026 - Imobach Gonzalez Sosa diff --git a/web/package/agama-web-ui.changes b/web/package/agama-web-ui.changes index 17086b0b92..b02ebf0077 100644 --- a/web/package/agama-web-ui.changes +++ b/web/package/agama-web-ui.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Mar 16 12:40:42 UTC 2026 - José Iván López González + +- Prevent error when there is no zFCP config + (gh#agama-project/agama#3287). + ------------------------------------------------------------------- Mon Mar 16 10:53:53 UTC 2026 - Ancor Gonzalez Sosa @@ -9,7 +15,7 @@ Mon Mar 16 10:53:53 UTC 2026 - Ancor Gonzalez Sosa Fri Mar 13 15:54:03 UTC 2026 - Ancor Gonzalez Sosa - Sync system schema with the backend (related to the fix for - bsc#1258486). + bsc#1258486). ------------------------------------------------------------------- Mon Mar 9 19:44:43 UTC 2026 - David Diaz diff --git a/web/src/components/storage/zfcp/ZFCPDevicesTable.tsx b/web/src/components/storage/zfcp/ZFCPDevicesTable.tsx index d6c85d73cb..2a31988dbe 100644 --- a/web/src/components/storage/zfcp/ZFCPDevicesTable.tsx +++ b/web/src/components/storage/zfcp/ZFCPDevicesTable.tsx @@ -44,7 +44,7 @@ import { _, N_ } from "~/i18n"; import { useCheckLunScan } from "~/hooks/model/system/zfcp"; import { useAddDevices, useRemoveDevices, useConfig } from "~/hooks/model/config/zfcp"; import type { ZFCP as System } from "~/model/system"; -import type { Config } from "~/model/config/zfcp"; +import type { ZFCP as Config } from "~/model/config"; import type { CheckLunScanFn } from "~/hooks/model/system/zfcp"; import type { AddDevicesFn, RemoveDevicesFn } from "~/hooks/model/config/zfcp"; @@ -211,19 +211,14 @@ const FiltersToolbar = ({ */ const buildActions = ( device: System.Device, - config: Config, + config: Config.Device | null, addDevices: AddDevicesFn, removeDevices: RemoveDevicesFn, checkLunScan: CheckLunScanFn, ) => { - const deviceConfig = config.devices?.find( - (c) => c.channel === device.channel && c.wwpn === device.wwpn && device.lun === c.lun, - ); - - const failedActivate = - deviceConfig && (deviceConfig.active === undefined || deviceConfig.active) && !device.active; + const failedActivate = config && (config.active === undefined || config.active) && !device.active; - const failedDeactivate = deviceConfig && deviceConfig.active === false && device.active; + const failedDeactivate = config && config.active === false && device.active; const actions = [ { @@ -389,6 +384,12 @@ export default function ZFCPDevicesTable({ devices }: ZFCPDevicesTableProps): Re const sortingKey = columns[state.sortedBy.index].sortingKey; const sortedDevices = sortCollection(filteredDevices, state.sortedBy.direction, sortingKey); + const deviceConfig = (device: System.Device): Config.Device | null => { + return config?.devices?.find( + (c) => c.channel === device.channel && c.wwpn === device.wwpn && device.lun === c.lun, + ); + }; + return ( - buildActions(device, config, addDevices, removeDevices, checkLunScan) + buildActions(device, deviceConfig(device), addDevices, removeDevices, checkLunScan) } itemActionsLabel={(d: System.Device) => `Actions for ${d.lun}`} emptyState={