From 0511afdb1500811160b69423d01feb620e2f7db8 Mon Sep 17 00:00:00 2001 From: Raissa North Date: Tue, 30 Jan 2018 16:36:25 +1300 Subject: [PATCH] FIX Separate Solr environment check if search is not installed --- mysite/_config/environmentcheck.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/mysite/_config/environmentcheck.yml b/mysite/_config/environmentcheck.yml index 5e66ae6..b34c393 100644 --- a/mysite/_config/environmentcheck.yml +++ b/mysite/_config/environmentcheck.yml @@ -6,10 +6,20 @@ SilverStripe\EnvironmentCheck\EnvironmentCheckSuite: db: definition: 'SilverStripe\EnvironmentCheck\Checks\DatabaseCheck()' title: 'Is the database accessible?' + registered_suites: + health: + - db + +--- +Name: cwpcoresolrenvironmentcheck +Only: + moduleexists: 'cwp/cwp-search' +--- +SilverStripe\EnvironmentCheck\EnvironmentCheckSuite: + registered_checks: solr: definition: 'SilverStripe\EnvironmentCheck\Checks\SolrIndexCheck()' title: 'Are all Solr indexes available?' registered_suites: health: - - db - solr