ckan / ckanext-validation

CKAN extension for validating Data Packages using Table Schema.
MIT License
28 stars 33 forks source link

Don't process extra resources on resource_create #74

Open amercader opened 1 year ago

amercader commented 1 year ago

In async mode, if a dataset already has one or more resources suitable for validation, when adding a new one all the previous ones are also sent to validate.

@ThrawnCA patch in #67, dealt with the same scenario but when updating an existing resource.

In this case sadly we need to use the context, as there is no way to reliably tell in after_update if it's part of a resource_create call