AJamesPhillips / DataCurator

DataCurator enables you to map and understand complex systems before helping you plan, communicate and navigate successful interventions in them.
https://DataCurator.org
8 stars 1 forks source link

A random knowledge view is displayed in the breadcrumb when viewing a knowledge view not in that base #234

Open AJamesPhillips opened 1 year ago

AJamesPhillips commented 1 year ago

Describe the bug

See reproduction steps below.

To Reproduce

Steps to reproduce the behavior:

  1. Starting in knowledge base 'A'
  2. Go to, or create and go to, knowledge view 'B'
  3. Create component 'C' inside knowldge view 'B'
  4. Go to knowledge base 'D'
  5. In a knowledge view 'E' of that knowledge base 'D' add component 'C'
  6. In component 'C', click on the link to 'knowledge view 'B''
  7. Observe that the name of the knowledge view shown is not 'B' but one of the knowledge views from knowledge base 'D' despite knowledge view 'B' being the knowledge view you are looking at.

Expected behavior

Don't know. Either:

  1. It should show the name of knowledge view 'B', at which point it might have some bearing on the implementation of #230
  2. It should show a generic 'Knowledge view from different base'
  3. It should not allow a knowledge view from a different base to be viewed if it's not in this base, or if #230 is implemented, then if it is not in the knowledge view tree.
  4. It should force the user to swap to knowledge base 'A'.
  5. Some other option.