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

JSON Storage Migration #67

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

JSON Storage Migration #67

wants to merge 2 commits into from

Conversation

metaory
Copy link

@metaory metaory commented Jan 2, 2025

Transitions void from protobuf to JSON storage format

KEY CHANGES

  • Replaces protobuf with JSON storage
  • Removes protobuf dependency
  • Adds migration tool for existing databases
  • Maintains data compatibility
  • Reduces codebase complexity

BENEFITS

  • Human Readable: Data inspectable/editable with any text editor
  • Debuggable: Easy examination of corrupted files
  • Portable: Universal format support across tools/languages
  • Versionable: Clean diffs in version control
  • Minimal: Only essential data stored

MIGRATION

Existing users can migrate their databases using the provided script:

scripts/migrate.sh path/to/old/database path/to/new.json

NOTES

  • Auto-generated data excluded from storage:
    • Node coordinates (auto-arranged)
    • Colors (randomly generated)
    • Selection state
    • Ephemeral UI state

RESOLVES

This was referenced Jan 3, 2025
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.

1 participant