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:
Johannes Meyer 2015-07-31 15:15:13 +02:00
parent 27885bee72
commit 5a3401cc28
10 changed files with 10 additions and 18 deletions

View File

@ -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');
}
/**

View File

@ -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');
}
}

View File

@ -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');
}
}

View File

@ -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');
}
/**

View File

@ -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');
}
}

View File

@ -60,7 +60,7 @@ class Hostgroupsummary extends DataView
*/
public function getSearchColumns()
{
return array('host', 'host_display_name', 'hostgroup', 'hostgroup_alias');
return array('hostgroup_alias');
}
/**

View File

@ -84,7 +84,7 @@ class HostStatus extends DataView
*/
public function getSearchColumns()
{
return array('host', 'host_display_name');
return array('host_display_name');
}
/**

View File

@ -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');
}
}

View File

@ -55,7 +55,7 @@ class Servicegroupsummary extends DataView
*/
public function getSearchColumns()
{
return array('service', 'service_display_name', 'servicegroup', 'servicegroup_alias');
return array('servicegroup_alias');
}
/**

View File

@ -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');
}
}