Skip to content

fix(check): remove dangling links when fixing dead nodes#4

Merged
enixCode merged 1 commit intomainfrom
fix/check-fix-dangling-links
Apr 15, 2026
Merged

fix(check): remove dangling links when fixing dead nodes#4
enixCode merged 1 commit intomainfrom
fix/check-fix-dangling-links

Conversation

@enixCode
Copy link
Copy Markdown
Owner

Summary

  • light check --fix only filtered meta.nodes, leaving links pointing at removed nodes
  • On reload Workflow.fromJSON threw LinkValidationError, so check stayed red after --fix
  • Now also filters meta.links against the set of still-valid node ids, and reports the count

Test plan

  • npm run build
  • npm test (113 passing)
  • Manual: break a workflow by deleting a node folder, run light check <dir> --fix, verify check is green and links referencing the removed node are gone from workflow.json

--fix only filtered meta.nodes, leaving links that pointed at removed
nodes. On reload Workflow.fromJSON threw LinkValidationError, so check
stayed red after fix. Now also filter meta.links by valid node ids.

build with cc
@enixCode enixCode merged commit b550bcc into main Apr 15, 2026
2 checks passed
@enixCode enixCode deleted the fix/check-fix-dangling-links branch April 15, 2026 12:06
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