Skip to content

Conversation

@Kirdock
Copy link
Contributor

@Kirdock Kirdock commented Dec 9, 2025

Why this PR?

The externID is deprecated, and it should be possible to delete a document with a custom set ID.

What has changed?

  • The generated deletefile is now direct (type and objectID) if a custom ID is set for documents.
  • ExternalID is not filtered/validated anymore during delete

How does it do it?

  • By making use of a different deletePointer structure if a customID is set
  • By removing list/filter operations during delete that validate the externalID. Now, the externalID is treated as a custom ID. This one is now simply forwarded to the DELETE of the API.

How is it tested?

New tests added that validate the generated deletefile

How does it affect users?

Currently, it doesn't affect users. The customID is not released in Moanco yet. There is just a slightly different error message if the deletion via externalID didn't work.

Issue: CA-16614

@Kirdock Kirdock requested a review from a team as a code owner December 9, 2025 13:34
If a custom ID is set, the direct reference (type and objectId) should be used for the delete file
… an ID

The external ID should be treated as an ID. Therefore, the delete doesn't filter the documents based on the externalID anymore and just tries to delete a document via the external ID.
@Kirdock Kirdock force-pushed the feat/document/correctly-handle-custom-id-for-delete branch from a4fbf13 to 1610c78 Compare December 9, 2025 13:39
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 9, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
28.6% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

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