Skip to content

bug(kb-ui): the knowledge graph page is blank — the existing KnowledgeGraph.vue renderer is never routed; mount it (M1 slice of #17569) #19727

Closed
0 of 1 issue completed

Description

@mrveiss

Problem

The knowledge graph page is blank. /knowledge/graph (KnowledgeGraphView.vue:54-60) renders only a welcome card and stat counters. /knowledge/graph/entities (KnowledgeGraphExplorer.vue:69-77) renders nothing until a search is typed.

The visual renderer KnowledgeGraph.vue (cytoscape and 3D) exists, but nothing loads it: no route, no importer. Its only references are stories and components/knowledge/index.ts:28, and git log -S shows it was never routed. The data is there: GET /api/knowledge_base/multi-source/graph returns 200 with data.entities / data.relations.

Scope

Maintainer decision (2026-10-26): M1 covers mounting the existing renderer, so the page shows the graph. Consolidating the seven graph components into one canonical component stays in #17569 (M3). This issue mounts the component #17569 names as canonical; it adds no eighth one.

Acceptance criteria

  • /knowledge/graph renders KnowledgeGraph.vue fed by multi-source/graph, and shows nodes and edges when the KB has entities.
  • An empty KB shows an explicit empty state with the reason, never a blank canvas.
  • A component test mounts the route with a fixture of N entities and asserts N nodes are rendered.
  • Host: after the builtin update, the owner's graph page shows the graph. — host evidence: issuecomment-6692850887 (02c53be)

Activity

  1. added
    bugSomething isn't working
    phase:M1.8Knowledge base: upload, web sources and chat retrieval work end to end
    on Oct 26, 2026
  2. github-actions commented on Nov 2, 2026

    @github-actions
    Contributor

    Landed via the merge train (#20707, merge 1416e3d202) via #20681

  3. mrveiss commented on Nov 2, 2026

    @mrveiss
    OwnerAuthor

    Verified against main at the merge train (PR #20707), merge 1416e3d202. Only boxes with code evidence are ticked.

    AC Evidence
    /knowledge/graph renders KnowledgeGraph.vue fed by multi-source/graph, and shows nodes and edges when the KB has entities. delivered. components/knowledge/KnowledgeGraphView.vue:61 mounts <KnowledgeGraph /> in the root-route content (imported at :95); KnowledgeGraph.vue uses useKnowledgeGraphEntities, which fetches /knowledge_base/multi-source/graph (composables/knowledge/useKnowledgeGraphEntities.ts:217); route at router/index.ts:308.
    An empty KB shows an explicit empty state with the reason, never a blank canvas. delivered. KnowledgeGraphView.page.test.ts: says the KB is empty rather than showing a blank canvas (.empty-state, knowledge.graph.noEntitiesFound) and says a store could not be read rather than that it is empty.
    A component test mounts the route with a fixture of N entities and asserts N nodes are rendered. delivered. KnowledgeGraphView.page.test.ts draws a node for each entity (3 entities, 3 nodes added).
    Host: after the builtin update, the owner's graph page shows the graph. NOT delivered. Not ticked: needs the owner's graph page after the builtin update; a merge is not host evidence.
  4. mrveiss commented on Nov 3, 2026

    @mrveiss
    OwnerAuthor

    Host check on 2026-11-03 at 08:08 Riga, read-only, on the local node at 1416e3d202: the frontend files on this node are older than #20681. KnowledgeGraphView.vue matches cfc66a1d65 (2026-10-26) and was written on 2026-10-28, and the built bundle is from 2026-11-01.

    I don't know whether this node is the one serving the frontend. If it is, the frontend role didn't update with the rest. The host criterion stays open: the owner's graph page after an update that reaches the frontend.

  5. mrveiss commented on Nov 3, 2026

    @mrveiss
    OwnerAuthor

    Its host criterion waits on #18100: the frontend on the local node hasn't been updated since 2026-10-28. Details are posted there.

  6. mrveiss commented on Nov 3, 2026

    @mrveiss
    OwnerAuthor

    Owner check after the update, verbatim: "graph pages show the gui but there is no graps". The host criterion stays open.

    What I found, read-only, on the local node on 2026-11-03:

    Likely cause, not yet proven: with no embedding (#18834), search falls back, and a * query matches nothing. The keyword fallback only keeps results that score above 0 (keyword_search.py:232), and * is no term in any fact. So the graph gets no facts to draw, and probably only the category nodes, if any. I haven't read the response body: the route needs a session.

    Where the fix goes: the graph shouldn't depend on a search for *. It should list facts directly, for example the most recent ones, still filtered by filter_search_results_by_permission. That's a backend change to this issue's route. The frontend mount from #20681 isn't at fault.

  7. mrveiss commented on Nov 6, 2026

    @mrveiss
    OwnerAuthor

    Closure check against origin/main 02c53be (T85 #20911, carries #20719, which makes the graph list facts instead of searching: api/knowledge_search_aggregator.py:660 kb.get_all_facts(limit=max_facts) in _get_facts_for_graph).

    AC Evidence Ticked
    /knowledge/graph renders KnowledgeGraph.vue fed by multi-source/graph, shows nodes and edges route router/index.ts:309 -> KnowledgeGraphView.vue; KnowledgeGraphView.vue:61 mounts <KnowledgeGraph /> on the root route (import :95); KnowledgeGraph.vue:446 uses useKnowledgeGraphEntities, which fetches useKnowledgeGraphEntities.ts:217 /knowledge_base/multi-source/graph?max_facts=100&include_categories=true; backend list path now eligible-fact pagination (knowledge/fact_stream.py:61 collect_facts, #20866) yes
    Empty KB shows an explicit empty state with the reason KnowledgeGraph.vue:160-171 .empty-state with graphIsEmpty branch; unreadable-store variant (sourcesUnreadable); test KnowledgeGraphView.page.test.ts:80 and :88 yes
    Component test mounts the route with N entities and asserts N nodes KnowledgeGraphView.page.test.ts:72 draws a node for each entity (3 entities -> ['a','b','c'] nodes added) yes
    Host: after the builtin update, the owner's graph page shows the graph needs host evidence; T85 is not deployed yet (local install is at T83) no

    3/4 ticked (no body change needed; the three were already checked and now have evidence). Left open: the host AC.

  8. mrveiss commented on Nov 6, 2026

    @mrveiss
    OwnerAuthor

    Host check after the T85 deploy (02c53be, read-only): the code half of the host AC is confirmed.

    • The page route is /knowledge/graph, and it calls GET /api/knowledge_base/multi-source/graph.
    • The backend log shows a 200 for that call from a browser session.
    • There have been 0 graph or fact_stream errors since the update.
      The visual half (the page shows N nodes, or its empty state) needs a check in the owner's browser. The host AC stays unticked until then.
  9. mrveiss commented on Nov 6, 2026

    @mrveiss
    OwnerAuthor

    Host evidence, 2026-11-06, live install at 02c53be (T85): the maintainer confirmed in the browser that the knowledge-graph page shows data. A read-only check of the same install found that the page's request (GET /api/knowledge_base/multi-source/graph) returns 200 for a browser session, with 0 graph or fact_stream errors in the backend error log since the update.

  10. mrveiss commented on Nov 6, 2026

    @mrveiss
    OwnerAuthor

    All 4 ACs delivered: code evidence on origin/main (PR #20719, T85 02c53be); host evidence in issuecomment-6692850887.

  11. mrveiss commented on Nov 6, 2026

    @mrveiss
    OwnerAuthor

    Clarification on the closing note: PR #20719 shows CLOSED rather than merged because its reviewed content landed through merge train T85 (#20911, merge commit 02c53be), which is how all train passengers land. Landing proof (ancestry plus an empty content diff on the PR's files) is in issuecomment-6691793281.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfrontendphase:M1.8Knowledge base: upload, web sources and chat retrieval work end to endpriority: high

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions