pkiraly / qa-catalogue-web

QA Catalogue / A data quality dashboard for MARC catalogues
GNU General Public License v3.0
10 stars 6 forks source link

Detect when Solr is not accessible #115

Open nichtich opened 1 year ago

nichtich commented 1 year ago

There should be a visible warning when Solr is not accessible. By now warnings are only logged but the user interface shows same result as empty Solr collection.

pkiraly commented 1 year ago

I agree, and was thinking about the same. Maybe a sample cron script would be also attached to the installation package and the README.

nichtich commented 1 year ago

There is method isCoreAvailable in classes/BaseTab.php, this seems to do a check but the result is not always shown in the UI.

pkiraly commented 1 year ago

estimation: 4 hours

pkiraly commented 1 year ago

@nichtich Is this feature completed?

nichtich commented 1 year ago

An error message is shown when Solr is not available, so this feature is complete for data search tab. The other tabs (completeness, issues, classifications, authorities) tab work without Solr index so no need to show error for these. I've just modified terms tab to also shown an error message but collocation tab does not indicate when Solr is down.

I've neither tested with MARC data where ControlFields.php is used - this will also break silently if Solr is not accessible.

Anyway, the current implementation is enogh to downgrade the priority.