ckan / ckanext-showcase

A ckan extension to showcase datasets in use
GNU Affero General Public License v3.0
43 stars 77 forks source link

Re-indexing showcases fails on CKAN 2.9 #122

Closed stefina closed 2 years ago

stefina commented 3 years ago

Hey there, we have started to upgrade one of our instances from 2.8.4 to CKAN 2.9.2.

Now we are running into issues when rebuilding the index. Datasets get re-indexed just fine but it fails for showcases with this error-message:

2021-09-16 12:49:12,465 INFO  [ckan.lib.search] Rebuilding search index...
No object (name: tmpl_context or C) has been registered for this thread
2021-09-16 12:49:12,517 INFO  [ckan.lib.search] Commited pending changes on the search index

We found so far, that those kind of errors have to do with Pylons and Flask interfering but I wasn't able to pin down why this happens only for showcases as we are using the most recent version 1.4.4 which is described as compatible with CKAN 2.9

Additional Notes:

stefina commented 2 years ago

We found the issue in two of our plugins which was the culprit that we didn't find it quickly (commenting out custom code made this occur in the other portion of the custom code). We were modifying the before_search-result by checking g.user but that threw that exception above. We are now excepting the TypeError that is thrown there.