Add option to skip posting of records to curated area, if a "similar" record already exists #37
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "post-only-changed"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR adds the
--only-if-modifyingoption todtc post-records.If
--curateis provided, the flag instructspost-recordsto check whether a similarrecord already exists in the curated area of the collection, and ---if the record already exists---
not to overwrite it.
"Similar" means identical, or identical if the elements that are defined by
--ignore-specare not compared. This can be used to exclude, for example, elements like
annotationsfromthe comparison. In this case, two records with differing
annotations, but otherwiseidentical content, would be considered to be identical.
I am still figuring out how to run this, but I think eventually it would be very powerful if this could also be exposed to auto-curate, so that I for example could define for the curation of an entire inbox that sole changes in annotations are counting as not modified
--only-if-modifyinginpost-records469da83534--only-if-modifyingtoauto-curate--ignore-specwith--jsonpath-spec91cfad91b51ebc58f38cAdded to auto-curate as well.
@adina, please note that we now use jsonpath_ng for path specifications, and that the path specification option was renamed from
--ignore-specto--jsonpath-spec.