Skip to content

lineage build produces empty graph despite storage data being available #208

Description

@jakubsebek-kosik

Describe the bug

kbagent lineage build --output lineage.json produces an empty graph (0 tables, 0 configurations, 0 edges) when only a single project is initialized, even though storage tables are accessible.
The command works correctly when all organization projects are initialized.

Steps to reproduce

  1. Initialize and configure the project:
   kbagent init
   kbagent project add --project <project-name> --url ... --token ...
   kbagent sync pull --project <project-name>
  1. Verify storage is accessible:
   kbagent storage tables --project <project-name>
   # Returns a non-empty list of tables ✓
  1. Run lineage build:
   kbagent lineage build --output lineage.json
  1. Observe output:
   Lineage graph built
     Tables: 0
     Configurations: 0
     Edges: 0
     Saved to: lineage.json

Expected behavior

lineage build should use the locally synced project data and produce a graph reflecting the actual tables and configurations present in the project.

Actual behavior

The output JSON contains an empty graph. No tables, configurations, or edges are included, despite storage tables confirming that data exists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions