Related to https://github.com/GSA/datagov-deploy/issues/2854.
Tests are still being written.
Essentially this overwrites the ckanext-harvest logic to make sure the harvest information is inserted properly. Key component is context.get('validate') is always None, even when this is the first extension run. Therefore we set the default to be False, and let everything be inserted properly. The rest of the PR is just setup to run this function.
I can't find any information on this validate piece in context anywhere in ckan core or in our/other extensions; I wonder if this is deprecated?
Would like to raise to CKAN community for validation, and an upstream PR (ckanext-harvest) to fix there; at which point we can remove this code.
Related to https://github.com/GSA/datagov-deploy/issues/2854. Tests are still being written. Essentially this overwrites the ckanext-harvest logic to make sure the harvest information is inserted properly. Key component is
context.get('validate')
is alwaysNone
, even when this is the first extension run. Therefore we set the default to beFalse
, and let everything be inserted properly. The rest of the PR is just setup to run this function. I can't find any information on thisvalidate
piece in context anywhere in ckan core or in our/other extensions; I wonder if this is deprecated? Would like to raise to CKAN community for validation, and an upstream PR (ckanext-harvest) to fix there; at which point we can remove this code.