qgis / QGIS-Django

Django project for QGIS related activities such as plugin repository
http://qgis.org
GNU General Public License v2.0
86 stars 59 forks source link

Search results include "None" entries #372

Closed ioalexei closed 1 month ago

ioalexei commented 3 months ago

Searching for Kartoza in the plugin search returns several plugin results but also two entries for "None" which just link back to the search query.

https://plugins.qgis.org/search/?q=kartoza

image

Xpirix commented 3 months ago

Dear @ioalexei ,

I've fixed it for now. I think that the search index doesn't rebuild automatically when a plugin is deleted. A similar issue has been also reported in the past (https://github.com/qgis/QGIS-Django/issues/24). I will spend more time to understand how it works and try to prevent it.

Regards.

Xpirix commented 3 months ago

After investigating the issue, I noticed that it is related to the old version of django-haystack currently used (2.8.1).

I did the test locally with the current version 3.2.1 and the search index was rebuilt automatically after deleting/adding a plugin. This version is implemented with the proposed PR #374.