Skip to content

Conversation

ThrawnCA
Copy link
Collaborator

Refine the COPY vs Tabulator behaviour:

  • If fields are unchanged, truncate and reuse the datastore table.
  • If field names are unchanged but types have changed, drop and recreate the table but preserve the Data Dictionary.
  • If field names or counts have changed, fall back to Tabulator since we need to re-guess the types.

Also includes a Flake8 cleanup and ensuring temporary files are deleted.

- Fix line breaks, whitespace
- Drop unused imports
- Make toolkit import consistent
- If field counts or names have changed, then fall back to Tabulator and start from scratch,
but if only the types have changed, then try to preserve the Data Dictionary and proceed with COPY.
@duttonw duttonw merged commit a28c3b0 into ckan:master Sep 18, 2025
4 checks passed
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.

3 participants