Skip to content

Conversation

wardi
Copy link
Contributor

@wardi wardi commented Aug 16, 2018

We have users that would like to test loading data into a datastore table for any errors without actually inserting/updating any data. This lets them make sure they've fixed all errors in the data they're loading before the publishing their new records.

This PR adds a dry_run parameter to datastore_upsert, default False. When set to True the transaction will be rolled back instead of committed to the datastore DB. Tests included.

wardi added a commit to open-data/ckan that referenced this pull request Aug 16, 2018
@TkTech TkTech merged commit 680406e into master Aug 21, 2018
@smotornyuk smotornyuk deleted the 4407-datastore-upsert-dry-run branch December 19, 2018 15:26
@wardi wardi mentioned this pull request Oct 31, 2023
5 tasks
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