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

Introduce PoST data versioning #210

Open
fasmat opened this issue Aug 3, 2023 · 0 comments · May be fixed by #211
Open

Introduce PoST data versioning #210

fasmat opened this issue Aug 3, 2023 · 0 comments · May be fixed by #211
Assignees

Comments

@fasmat
Copy link
Member

fasmat commented Aug 3, 2023

Description

Some recent updates to PoST required changes to postdata_metadata.json file. Fortunately these changes were full backwards compatible such that implementing them didn't pose a big challenge.

In the future we will probably require updates to PoST that are not fully backwards compatible and may require migration of existing data to be used with newer versions. The goal of this issue is to lay the foundations of making this happen.

Acceptance criteria

  • Add version information to postdata_metadata.json. Assume version 0 (the state of PoST as it is used in v0.8.11) if not present.
  • When accessing a PoST directory parse that version information and return an error if the found version doesn't match the expected version.
  • Add functions that allow migration from a previous version of PoST to the current version.

Implementation hints

  • Consider making changes to postdata_metadata.json atomically when updating the file.
@fasmat fasmat self-assigned this Aug 3, 2023
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Dev team kanban Aug 3, 2023
@fasmat fasmat moved this from 📋 Backlog to 🏗 Doing in Dev team kanban Aug 3, 2023
@fasmat fasmat moved this from 🏗 Doing to On Hold in Dev team kanban Sep 19, 2023
@dshulyak dshulyak moved this from On Hold to 📋 Backlog in Dev team kanban Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
Development

Successfully merging a pull request may close this issue.

1 participant