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

Record Versioning #749

Open
lbaertlein1 opened this issue Nov 26, 2024 · 1 comment
Open

Record Versioning #749

lbaertlein1 opened this issue Nov 26, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request pending discussion
Milestone

Comments

@lbaertlein1
Copy link
Collaborator

lbaertlein1 commented Nov 26, 2024

Problem: When a submission is edited, we retain a record of when it was last edited and by who. However, there is no record of what the original submission was. This prevents the data from being fully auditable.

Proposed Solution: Create a versioning system for submissions, such that a record is retained of the submission at each point the submission is saved. If a submission is edited, a record of the original submission should be retained and a new record of the edited submission should be created. This could be done in the campaignformdata table, by adding a submission version uuid, and one row per submission per version rather than just one row per submission. Logic would have to be put in place to automatically archive versions when they are edited/replaced such that for one submission only one record is ever ‘active’, and all other records are ‘archived’. A diagram of the current structure and suggested revision are below.

Current Structure:
image

Suggested Revised Structure:
image

@Eutit5
Copy link
Collaborator

Eutit5 commented Nov 27, 2024

@bnygren it's not availble on the APMIS project

@RaziaMahmodi RaziaMahmodi added this to the 2025 1 (Jan) milestone Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pending discussion
Projects
None yet
Development

No branches or pull requests

5 participants