mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
IcingaObjectTables: remove filters, fix object_type
This commit is contained in:
parent
7fe6eb2528
commit
f6490f8926
@ -13,10 +13,11 @@ class IcingaEndpointTable extends IcingaObjectTable
|
||||
public function getColumns()
|
||||
{
|
||||
return array(
|
||||
'id' => 'e.id',
|
||||
'endpoint' => 'e.object_name',
|
||||
'host' => "(CASE WHEN e.host IS NULL THEN NULL ELSE CONCAT(e.host || ':' || COALESCE(e.port, 5665)) END)",
|
||||
'zone' => 'z.object_name',
|
||||
'id' => 'e.id',
|
||||
'endpoint' => 'e.object_name',
|
||||
'object_type' => 'e.object_type',
|
||||
'host' => "(CASE WHEN e.host IS NULL THEN NULL ELSE CONCAT(e.host || ':' || COALESCE(e.port, 5665)) END)",
|
||||
'zone' => 'z.object_name',
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -76,6 +76,6 @@ class IcingaHostTable extends IcingaObjectTable
|
||||
|
||||
public function getBaseQuery()
|
||||
{
|
||||
return $this->getUnfilteredQuery()->where('h.object_type = ?', 'object');
|
||||
return $this->getUnfilteredQuery();
|
||||
}
|
||||
}
|
||||
|
@ -57,6 +57,6 @@ class IcingaServiceTable extends IcingaObjectTable
|
||||
|
||||
public function getBaseQuery()
|
||||
{
|
||||
return $this->getUnfilteredQuery()->where('s.object_type = ?', 'object');
|
||||
return $this->getUnfilteredQuery();
|
||||
}
|
||||
}
|
||||
|
@ -56,6 +56,6 @@ class IcingaUserTable extends IcingaObjectTable
|
||||
|
||||
public function getBaseQuery()
|
||||
{
|
||||
return $this->getUnfilteredQuery()->where('u.object_type = ?', 'object');
|
||||
return $this->getUnfilteredQuery();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user