Skip to content

Update leaves stale graph sources after renames or final-file deletion #1622

Description

@oleksii-tumanov

Problem

graphify update can leave stale graph entries when the last supported file is deleted or a rename reports only its destination. The removed source remains in graph.json.

Expected

Reconcile extractor-backed sources with files still present, while preserving semantic and out-of-scope records.

Reproduction

  1. Build from only.py, delete it, and run graphify update ..
  2. Or rename old.py to renamed.py with only the destination in changed_paths.
  3. The deleted or old source remains in graph.json.

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