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

What IDs should be used for exported nodes? #16

Open
brollb opened this issue Feb 9, 2022 · 0 comments
Open

What IDs should be used for exported nodes? #16

brollb opened this issue Feb 9, 2022 · 0 comments

Comments

@brollb
Copy link
Collaborator

brollb commented Feb 9, 2022

IDs are used to resolve state JSONs to existing nodes (such as @meta:SomeMetaNode). This is fine for user/programmatically created JSON (the initial purpose) but is a little more problematic when exporting to JSON as the identity is ambiguous. As of #10, exported JSON uses GUIDs. This avoids issues (such as exporting, moving a node, and re-syncing) but comes at a performance cost.

That said, there are other defaults that might be intelligent to have such as:

  • using @name:<name> for inherited children (structural inheritance)
  • using @meta:<name> for nodes that are not in the export but part of the meta
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