Skip to content

Migrate 'Sample Polylines' from a subgraph to a proto node#4063

Merged
Keavon merged 1 commit intomasterfrom
simplify-sample-polylines
Apr 28, 2026
Merged

Migrate 'Sample Polylines' from a subgraph to a proto node#4063
Keavon merged 1 commit intomasterfrom
simplify-sample-polylines

Conversation

@Keavon
Copy link
Copy Markdown
Member

@Keavon Keavon commented Apr 28, 2026

Needs to have its memoization restored using the node macro to help with that.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the "Sample Polyline" node by inlining the segment length calculation logic directly into the sample_polyline proto node. This change removes the need for the legacy "Sample Polyline" wrapper network and the standalone subpath_segment_lengths node. Migration logic has been implemented to automatically upgrade existing documents using the old network to the new proto node while preserving input values. Additionally, several unused type mappings were removed from the node graph context. I have no feedback to provide.

@Keavon Keavon merged commit fbef888 into master Apr 28, 2026
10 of 11 checks passed
@Keavon Keavon deleted the simplify-sample-polylines branch April 28, 2026 11:20
oluseyi pushed a commit to oluseyi/Graphite that referenced this pull request Apr 29, 2026
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