Skip to content

Refactor node migration to be less susceptible to forgetting outdated strings #2853

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

Merged
merged 3 commits into from
Jul 11, 2025

Conversation

Firestar99
Copy link
Collaborator

@Firestar99 Firestar99 commented Jul 10, 2025

  • using my_node::IDENTIFIER forces a change in the migration when a node is renamed or moved
  • this should inform you that you should add the old ProtoNodeIdentifier as an alias to the node list
  • test against duplicate old and new nodes in the list to prevent accidental duplicate entries

By adding this much validation, multiple inconsistencies in node migration have been found and fixed. Hopefully, a lot of failing documents now migrate smoothly.

@Keavon Keavon changed the title Refactor Node migration to be less suseptable to errors Refactor node migration to be less susceptible to forgetting outdated strings Jul 11, 2025
@Keavon Keavon merged commit 4c75ddf into master Jul 11, 2025
4 checks passed
@Keavon Keavon deleted the migration branch July 11, 2025 00:40
urisinger pushed a commit to urisinger/Graphite that referenced this pull request Jul 15, 2025
… strings (GraphiteEditor#2853)

* migration: make document migration use ProtoNodeIdentifier

* migration: NodeReplacement struct for better formatting

* migration: test for duplicates and fix them
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.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy