Skip to content

Update modifyRegistration API calls to only update when necessary #5505

@qqmyers

Description

@qqmyers

The /modifyRegistrationPIDMetadataAll and {id}/modifyRegistrationMetadata api call implementations (which actually update the metadata and targetURL) currently do not check to see whether updates are needed before sending change requests to the provider. This makes their use as a way to correct errors in the metadata and/or targetUrl problematic as they would also try to update PIDs that don't need any change. (See, for example, #5144 and #4760).
The DataCite DOI provider is one that provides an API to retrieve the current targetURL and metadata, making it possible to check before updating. It would be helpful if the Abstract classes for providers differentiated between first time registration and updates and for the DataCite DOI provider to perform checks when updating. (PR to follow).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions