Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARC-1487: Added option to replace documents #7

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

thomasrichner-oviva
Copy link
Contributor

@thomasrichner-oviva thomasrichner-oviva commented Mar 21, 2024

Added the method to replace documents. You need the ID of the previous document to replace it.

Comment on lines +123 to +129
// 4) replace the document
var newDocumentId = UUID.randomUUID();
var newDocument = buildDocumentPayload(newDocumentId, authorInstitution, EXPORT_XML.getBytes());
assertDoesNotThrow(
() -> konnektorService.replaceDocument(recordIdentifier, newDocument, documentId));
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did it actually work in the RU? the first time I tried I got an error, but that was weeks ago now

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that works. Repeatedly tried.

@thomasrichner-oviva thomasrichner-oviva merged commit 9e865c4 into main Mar 22, 2024
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.

None yet

3 participants