Skip to content

fix(neo4j): cypher snapshot wipe misses :TSAnonymousCallable orphans #75

Description

@rahlk

The snapshot wipe's containment traversal (cypher.ts wipe: TS_HAS_MODULE then TS_DECLARES|TS_HAS_METHOD|TS_HAS_FIELD|TS_HAS_BODY_NODE*1..) never reaches :TSAnonymousCallable nodes — only TS_RESOLVES_TO/TS_CALLS point at them, and neither is in the traversal. So re-importing a regenerated graph.cypher leaves stale anonymous-callable orphans behind.

Fix by wiping on _module instead of the containment walk, or by adding a containment edge to :TSAnonymousCallable that the wipe traverses.

Found in the 1.0.0 final review.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions