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

Node versioning system #2084

Open
adamgerhant opened this issue Oct 30, 2024 · 0 comments
Open

Node versioning system #2084

adamgerhant opened this issue Oct 30, 2024 · 0 comments
Labels
Feature New feature or request Rust Involves Rust programming for the backend

Comments

@adamgerhant
Copy link
Collaborator

Since nodes are constantly changing, we currently have to run automated upgrade scripts to replace node internals with the current version, update inputs, etc. A non destructive node versioning system similar to Crates is necessary for compatibility and ease of use.

Each instance of a node will store its version, and the document node definition will also store the version. The definition version will be incremented every time a node is changed, and every time a new version is created an upgrade script can be included to upgrade from the previous version to that version.

When the editor notices an out of date node, it prompts the user to upgrade it. It will use the mapping of version to upgrade scripts one by one to get the node to the most up to date version. The important part is that a node will never be automatically changed unless a user explicitly requests it. An ignore box should also be available, which dereferences the users node from the node definition.

Note that this is not related to editor structs and fields. That will still require breaking changes or best attempts at upgrading.

@adamgerhant adamgerhant added the Feature New feature or request label Oct 30, 2024
@Keavon Keavon added the Rust Involves Rust programming for the backend label Oct 30, 2024
@GraphiteEditor GraphiteEditor deleted a comment Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request Rust Involves Rust programming for the backend
Projects
Status: Short-Term
Development

No branches or pull requests

2 participants