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

Versioning documents #380

Open
epatters opened this issue Feb 4, 2025 · 0 comments
Open

Versioning documents #380

epatters opened this issue Feb 4, 2025 · 0 comments
Labels
backend Backend, including web server and database enhancement New feature or request frontend TypeScript frontend and Rust-wasm integrations strategic Design/architecture work and prior discussion required

Comments

@epatters
Copy link
Member

epatters commented Feb 4, 2025

It should be possible to version a document by (1) making a new snapshot of the document and (2) assigning it a version number/string.

Thus, a first step in this issue is to add an optional version column to the snapshots table. The key design questions are what should a version be and how opinionated should we be about what counts as a valid version. For example, a very restrictive scheme would make versions be numbers and require that they are consecutive integers starting at one. That seems too limiting to me. At the other end of the spectrum, a version could be an arbitrary string, with informal conventions/guidelines about how to choose them. That's how tags work in Git. In between might be some notion of "SemVer for models," though what that's supposed to mean isn't too clear.

Once that's decided, the task is to:

  1. add RPC method to tag a new version, available to user's when Maintain or higher permissions on the document
  2. expose this through a dialog in the frontend
@epatters epatters added backend Backend, including web server and database enhancement New feature or request frontend TypeScript frontend and Rust-wasm integrations strategic Design/architecture work and prior discussion required labels Feb 4, 2025
@epatters epatters moved this to Todo in Compositional models Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend, including web server and database enhancement New feature or request frontend TypeScript frontend and Rust-wasm integrations strategic Design/architecture work and prior discussion required
Projects
Status: Todo
Development

No branches or pull requests

1 participant