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

bulk: store "deleted" and "error" results in export subfolders #343

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

mikix
Copy link
Contributor

@mikix mikix commented Aug 29, 2024

If the bulk export server provides an array of error messages or an array of deleted resources, make sure we persist those on disk.

Previously, we only printed the error messages to the console. We still do that, but also write them to an error/ subfolder.

Previously, we ignored any deleted resources.
Now we write them to a deleted/ subfolder.

This matches the behavior of bulk-data-client.

This is part 1 of #167.
Next step is actually processing a deleted/ folder in any input ndjson.

Checklist

  • Consider if documentation (like in docs/) needs to be updated
  • Consider if tests should be added

Copy link

github-actions bot commented Aug 29, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
3369 3291 98% 97% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
cumulus_etl/loaders/fhir/bulk_export.py 100% 🟢
TOTAL 100% 🟢

updated for commit: eb488f0 by action🐍

If the bulk export server provides an array of error messages or
an array of deleted resources, make sure we persist those on disk.

Previously, we only printed the error messages to the console.
We still do that, but also write them to an error/ subfolder.

Previously, we ignored any deleted resources.
Now we write them to a deleted/ subfolder.

This matches the behavior of bulk-data-client.
@mikix mikix merged commit 7396061 into main Aug 29, 2024
3 checks passed
@mikix mikix deleted the mikix/bulk-deleted branch August 29, 2024 18:47
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.

2 participants