neo4j / neo4j-browser

Neo4j Browser is the general purpose user interface for working with Neo4j. Query, visualize, administrate and monitor the database.
https://neo4j.com
GNU General Public License v3.0
678 stars 345 forks source link

Changing relationship caption only zooms view #1853

Closed laura-arditti closed 1 year ago

laura-arditti commented 1 year ago

Description

When visualizing queries' results as a graph, clicking on a relationship opens a menu which allows to customize color, line width and caption for the relationship display. The default caption is the , which displays the relationship's type, and other option include and any of the relationship's attributes. However, clicking any of the caption options does not result in the desired caption being displayed in the visualization, instead it causes a slight zoom in the visualization while the caption still displays the relationship's type. This behavior happens any time you click on a caption option.

Reproduce Steps

  1. As an example, open the neo4j movie database and extract any relationship.
MATCH p=(:Movie)-[:ACTED_IN]-()
RETURN p 
LIMIT 1
  1. In the visualization of the result, click on the relationship arrow "ACTED_IN".
  2. In the sidebar, click on the relationship name "ACTED_IN" to open the relationship display menu
  3. Select the "role" caption
Schermata 2022-11-11 alle 14 49 36

Expected Behavior

After step 4, the visualization should display the roles attribute instead of the relationship type as the relationship's caption.

Current Behavior

The visualization shows the relationship's type as a caption independently of the user selection. Moreover, every time a selection is made the visualization zooms in.

Your Environment

software name version
OS MacOs
Neo4j Browser 5.0.0
Neo4j 4.2.1 (enterprise)
eijawerner commented 1 year ago

Thanks for the report! We have solved the issue and it will be included in Browser in December release of Neo4j.

OskarDamkjaer commented 1 year ago

Here's the fix for reference #1858