KnowledgeCanvas / knowledge

Knowledge is a tool for saving, searching, accessing, exploring and chatting with all of your favorite websites, documents and files.
Apache License 2.0
1.32k stars 92 forks source link

[Bug] Graph sometimes displays empty node #93

Closed ByteSyze closed 1 year ago

ByteSyze commented 1 year ago

Issue: Occasionally, there will be a random gray node with no associated information displayed on the Knowledge graph.

Steps to reproduce:

  1. Click on "Projects" tab
  2. Click on "Graph" tab

This will spawn an empty node on the graph: image

RobRoyce commented 1 year ago

I'm always surprised at the different ways in which people use Knowledge... you'll have to explain to me what the bung project is all about some day...

In the meantime, thanks for the report. There may be an extra element being added to the array of Sources being input into the graph component. I'll check it out (or you can open your first MR 😉 )

RobRoyce commented 1 year ago

This is a very strange issue.

The stray node only appears when going from any other view to the graph view for the first time. If you switch projects while staying in the graph view, it disappears.

Further, the id of the element is non-deterministic (it changes every time you switch from any view to the graph view). Even more strange, the id I get from the node never corresponds to any existing projects or sources. But somehow the id is always a valid UUID...

Further research is needed.

RobRoyce commented 1 year ago

Bug was introduced in ab27e2c47706921515cd5f627499e1cb154e5fd5