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

Delete corresponding HFJ_RES_SEARCH_URL records when performing a delete expunge on resources #5942

Closed
lukedegruchy opened this issue May 16, 2024 · 0 comments · Fixed by #5940

Comments

@lukedegruchy
Copy link
Collaborator

Describe the bug
Currently, a targeted (non-everything) delete expunge on resources will not delete the corresponding ResourceSearchUrlEntity(ies)

To Reproduce
Steps to reproduce the behavior:

  1. Create one or more resources with ifNoneExists URLs
  2. Delete expunge those resources
  3. Attempt to re-create those resources exactly as before
  4. See error: HAPI-0550: could not execute batch [Unique index or primary key violation: \"PUBLIC.PRIMARY_KEY_3 ON PUBLIC.HFJ_RES_SEARCH_URL(RES_SEARCH_URL)

Expected behavior
The re-create should succeed and create brand-new HFJ_RES_SEARCH_URL records. to replace those deleted by the delete expunge

Environment (please complete the following information):

  • HAPI FHIR Version: Master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant