WPRDC / wprdc-ops

Codeless repo for organizing project-wide work and issues.
0 stars 0 forks source link

Update `ckanext_datajson` to work on 2.10 #20

Closed saylorsd closed 1 year ago

saylorsd commented 1 year ago

Our fork: https://github.com/WPRDC/ckanext-datajson

This extension is what we used to provide a data.json endpoint which data.gov reads to list our data to the catalog.

saylorsd commented 1 year ago

The plugin implements IRoutes which is no longer supported and therefore breaks CKAN when activated.

A quick dig into the code leads me to believe that IRoutes is maybe only implemented in name only. I can't find any time where it overrides either of the methods IRoutes provides and the interface itself seems to do nothing if not overridden. This might be an easy fix if that's the case.

saylorsd commented 1 year ago

Deleting https://github.com/WPRDC/ckanext-datajson/blob/1fc7a4832f22b21be47a7b97381e189b0711777e/ckanext/datajson/plugin.py#L11 seems to solve for our purposes. Next step will be to update our fork, test and then make a pull request.