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

Entity tombstone design #1381

Open
ktuite opened this issue Jan 24, 2025 · 0 comments
Open

Entity tombstone design #1381

ktuite opened this issue Jan 24, 2025 · 0 comments
Labels
entities Multiple Encounter workflows

Comments

@ktuite
Copy link
Member

ktuite commented Jan 24, 2025

How do we want to track the UUIDs of entities that have been purged?

PR #1349 logs them in array of the details of a purge event. This issue could be closed by deciding this idea is fine.

     action     |      acteeId       |                          details
----------------+--------------------+------------------------------------------------------------------
 entities.purge | (dataset actee id) | {"entityUuids": ["uuid1", "uuid2", "uuid3"], "entitiesDeleted": 3}

Alternatively, maybe we want to pull that data out and put in a more structured table. Then we're not relying on the audit log for functional information or slowing it down.

It could be a table with the following:

  • dataset actee id
  • entity uuid
  • audit event id

Other purged objects

  • Forms (the tombstone is the actee row for that form)
  • Submissions (no record is kept, submission.purge event just logs count of purged submissions)

The list of purged UUIDs is used to

  • prevent reuse of entity uuid
  • communicate to Collect via integrity URL which entities have been purged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
entities Multiple Encounter workflows
Projects
Status: 🕒 backlog
Development

No branches or pull requests

1 participant