monitoring: Reduce amount of default quick search columns
Entering an arbitrary pattern in the quick search field will now only search for a host's and service's display name or a group's / contact's alias. fixes #9751
This commit is contained in:
parent
27885bee72
commit
5a3401cc28
|
@ -62,7 +62,7 @@ class Comment extends DataView
|
|||
*/
|
||||
public function getSearchColumns()
|
||||
{
|
||||
return array('host', 'host_display_name', 'service', 'service_display_name', 'comment_author');
|
||||
return array('host_display_name', 'service_display_name');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -79,14 +79,6 @@ class Contact extends DataView
|
|||
*/
|
||||
public function getSearchColumns()
|
||||
{
|
||||
return array(
|
||||
'contact',
|
||||
'contact_alias',
|
||||
'contact_email',
|
||||
'host',
|
||||
'host_display_name',
|
||||
'service',
|
||||
'service_display_name'
|
||||
);
|
||||
return array('contact_alias');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -84,6 +84,6 @@ class Contactgroup extends DataView
|
|||
*/
|
||||
public function getSearchColumns()
|
||||
{
|
||||
return array('contactgroup', 'contactgroup_alias', 'contact', 'contact_alias', 'contact_email');
|
||||
return array('contactgroup_alias');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -69,7 +69,7 @@ class Downtime extends DataView
|
|||
*/
|
||||
public function getSearchColumns()
|
||||
{
|
||||
return array('downtime_author', 'host', 'host_display_name', 'service', 'service_display_name');
|
||||
return array('host_display_name', 'service_display_name');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -72,6 +72,6 @@ class EventHistory extends DataView
|
|||
*/
|
||||
public function getSearchColumns()
|
||||
{
|
||||
return array('host', 'host_display_name', 'service', 'service_display_name', 'type');
|
||||
return array('host_display_name', 'service_display_name');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -60,7 +60,7 @@ class Hostgroupsummary extends DataView
|
|||
*/
|
||||
public function getSearchColumns()
|
||||
{
|
||||
return array('host', 'host_display_name', 'hostgroup', 'hostgroup_alias');
|
||||
return array('hostgroup_alias');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -84,7 +84,7 @@ class HostStatus extends DataView
|
|||
*/
|
||||
public function getSearchColumns()
|
||||
{
|
||||
return array('host', 'host_display_name');
|
||||
return array('host_display_name');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -90,6 +90,6 @@ class Notification extends DataView
|
|||
*/
|
||||
public function getSearchColumns()
|
||||
{
|
||||
return array('contact', 'host', 'host_display_name', 'service', 'service_display_name');
|
||||
return array('host_display_name', 'service_display_name');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ class Servicegroupsummary extends DataView
|
|||
*/
|
||||
public function getSearchColumns()
|
||||
{
|
||||
return array('service', 'service_display_name', 'servicegroup', 'servicegroup_alias');
|
||||
return array('servicegroup_alias');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -191,6 +191,6 @@ class ServiceStatus extends DataView
|
|||
*/
|
||||
public function getSearchColumns()
|
||||
{
|
||||
return array('host', 'host_display_name', 'service', 'service_display_name');
|
||||
return array('host_display_name', 'service_display_name');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue