Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't process extra resources on resource_create (v2) #79

Merged
merged 1 commit into from
Dec 1, 2022

Conversation

amercader
Copy link
Member

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

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
@amercader amercader merged commit 370eb09 into master Dec 1, 2022
@amercader amercader deleted the fix-multiple-calls-on-resource_create-v2 branch December 1, 2022 14:55
@ThrawnCA
Copy link
Contributor

ThrawnCA commented Dec 1, 2022

Was this not peer reviewed by anyone?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants