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 (v2) #79

Closed amercader closed 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.

PR #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

ThrawnCA commented 1 year ago

Was this not peer reviewed by anyone?