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 data on FHIR #104

Closed
wants to merge 1 commit into from
Closed

Delete data on FHIR #104

wants to merge 1 commit into from

Conversation

lincmba
Copy link
Contributor

@lincmba lincmba commented Jan 10, 2024

fixes [ https://github.com//issues/101 ]

IMPORTANT: Where possible all PRs must be linked to a Github issue

Fixes #[issue number] or Closes #[issue number]

Engineer Checklist

  • I have run ./gradlew spotlessApply to check my code follows the project's style guide
  • I have built and run the efsity jar to verify my change fixes the issue and/or does not break the application

@CommandLine.Option(
names = {"-id", "--identifiers"},
description = "Resource Identifiers if deleting a single resource",
required = true)
Copy link
Member

Choose a reason for hiding this comment

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

this is required, but the description makes it sound like it is optional


@Override
public void run() {
String url = baseUrl + "/" + resourceType + "?_id=" + identifiers + "&_cascade=delete";
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we make the cascades delete optional? maybe make it default not, considering the risk involved in data loss, so the person running the command has to actually opt in

@ndegwamartin
Copy link
Contributor

Based on our conversation, closing this in favour of the cleaner scripts which are more robust and straight forward to run

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.

4 participants