Skip to content

Conversation

@danloveg
Copy link
Contributor

@danloveg danloveg commented Dec 5, 2025

Closes #2208

Adds a new clear-and-update import mode for information objects. Here is a table outlining how this mode compares to the other modes:

Feature match-and-update delete-and-replace clear-and-update
Update all fields ⚠️ (only some)
* Can use regular import CSV
Optionally keep original digital object
Keep original legacy ID

* The match-and-update CSV needs to be specially crafted to include only the fields that need to be updated. Using delete-and-replace or clear-and-update, "what you see is what you get" with the import CSV. One important distinction is that an empty field in a match and update CSV is ignored, but an empty field in a "regular" import CSV means that field will not have content in the final updated description.

For now, this is a proof of concept that shows that this is possible. More discussion is likely needed to determine whether this is a valuable feature to add to AtoM.

Adds a clear-and-update mode for subclasses of csvImportBaseTask to
enable and implement. For now, this mode is only added to csv:import,
and it does nothing.
@sarah-mason sarah-mason added the Community Pull requests that have been contributed from community members outside Artefactual label Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community Pull requests that have been contributed from community members outside Artefactual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhancement: Add import mode to allow all fields to be updated in-place for information objects

2 participants