hubzero / hubzero-cms

Platform for Scientific Collaboration
https://hubzero.org
GNU General Public License v2.0
46 stars 57 forks source link

Fix Solr full indexing option in administrator cron component #1586

Closed jsperhac closed 1 year ago

jsperhac commented 1 year ago

Summary

This PR makes two small fixes to the Hub's administrator site cron component for Solr indexing.

The component is only available for use once it is enabled in the Components:Cron admin interface, and when unused, these issues escaped detection.

Motivation

Once the component was enabled, attempting to reindex the Hub for the Solr search engine threw two errors:

  1. Unable to find Class 'Components\Search\Models\Solr\SearchComponent'
  2. Missing argument 1 for Components\Search\Models\Solr\SearchComponent::indexSearchResults()

This fix corrects both of those issues.

Testing

This fix was verified on a Hubzero VM and on Nanohub.

nkissebe commented 1 year ago

I manually applied this in your name. I wasn't sure how the merge commit would appear