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

Data consistency protection #14

Open
1 of 4 tasks
Daandelange opened this issue Oct 24, 2021 · 0 comments
Open
1 of 4 tasks

Data consistency protection #14

Daandelange opened this issue Oct 24, 2021 · 0 comments

Comments

@Daandelange
Copy link
Owner

Daandelange commented Oct 24, 2021

Currently, the config's tracking period must match the database's one.
Database files aren't exchangeable with different tracking period configurations.
Corruption cases: when the configuration suddenly changes or when databases are manually interchanged with a period config mismatch.

To protect the database data :

  • Prevent writing to it when the configuration's tracking period doesn't match the one from the db.
    Make it backup the old one and create a new one ? And enforce period name in db filename + db contents ?
    Also discussed in Clarify TimeFrame switching and notify on user mistakes #22
  • Prevent overwriting existing incompatible db files by renaming them ?
  • Add an option to explicitly disable generating stats. ( see: daandelange.simplestats.tracking.method)
  • Protect the database when adding/removing Kirby languages and write an upgrade script so data can be kept.
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

No branches or pull requests

1 participant