datapusher submit ... -> all resources, also unsuitable formats #155
-
Hi everyone, thanks for developing datapusher-plus! Great job! I have set up a docker container as a drop in replacement for my "old" datapusher container using dp+ version 0.16.4. After a little debugging everything everything works fine! For testing I want to re-submit all my resource, to identify possible issues, before using dp+ in production. When resubmitting single package I experienced some unexpected behavior. Instead of only submitting files in formats specified in: CKAN__DATAPUSHER__FORMATS="csv xls xlsx xlsm xlsb tsv ods application/csv application/vnd.ms-excel application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" All resources are passed to datapusher, causing a lot of unnecessary computation and errors. The package contains mainly incompatible files: I checked the formats and they're set correctly in CKAN. How come all files are submitted? Is this by design or is it a bug? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
I believe I have found the answer. The submitting process is still controlled by the the standard datapusher implementation included in ckan, where simply all resources are submitted. I am using ckan 2.9.11 (ckan/ckanext/datapusher/cli.py). |
Beta Was this translation helpful? Give feedback.
-
hey @ChristianF88 , yeah, the DP+ 0.x and 1.0.x versions are still dependent of the |
Beta Was this translation helpful? Give feedback.
-
Hi @tino097, |
Beta Was this translation helpful? Give feedback.
-
I found a way, it's a bit hacky... So if there's a proper API / Endpoint for this, I'd love to get a hint on where I can find the documentation. :) Cheers! |
Beta Was this translation helpful? Give feedback.
-
Those endpoints are part of old unmaintained extension https://github.com/ckan/ckan-service-provider/tree/master We are removing this from DP and all job related actions should be done via the |
Beta Was this translation helpful? Give feedback.
I believe I have found the answer. The submitting process is still controlled by the the standard datapusher implementation included in ckan, where simply all resources are submitted. I am using ckan 2.9.11 (ckan/ckanext/datapusher/cli.py).