ckan / ckanext-harvest

Remote harvesting extension for CKAN
130 stars 203 forks source link

pick the right harvest_object_id if there are multiple #519

Closed FuhuXia closed 1 year ago

FuhuXia commented 1 year ago

One package can end up with multiple CURRENT HarvestObject in the database for some unknown reason. We see quite a few of them in a large system. To alleviate the issue, a harmless order_by is added to the query to ensure the latest HarvestObject is returned.