Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graph Editor - Edge not refreshed after edit + Edit Edge window improvements #464

Closed
StarCmd opened this issue Apr 10, 2017 · 5 comments
Closed
Assignees
Milestone

Comments

@StarCmd
Copy link

StarCmd commented Apr 10, 2017

OrientDB Version: v2.2.16

Java Version: 1.7.0_67

OS: macOS 10.11.6

Expected behavior

Graph Studio should update in real and handle @Version.

Actual behavior

Updating an edge orientation create a second "arrow" (reversed), while the first one stay visible.

Steps to reproduce

From a new database, 2 vertex and 1 edge, go to Graph, edit the edge and swap the In and Out vertex.
If you run the query again, you see 2 edges.
If you select each of them you read on the properties panel :

rid 18:0
class E
out 10:0
in 11:0

And

rid 18:0
class E
out 11:0
in 10:0

One of them is @Version 2 the other @Version 1

As usual clearing the canvas and execute the query erase the wrong edge.
However , as the canvas is graphically dynamic, leaving a "phantom" edge on which you may interact lead to data corruption.

@santo-it
Copy link

Hi,

Thank you for opening this issue. I have tested with 2.2.18 on Windows

What I see with 2.2.18 is that, say we start from Node1-->Node2. After I swap In and Out and press the save button I still see an edge (and not two) but the edge has not been refreshed, because I still see it from Node1 to Node2. However, if I clear the canvas and execute the query again I see the edge from Node2 to Node1, so it seems that the update query was successfully but the edge was not refreshed correctly

Note that when pressing "save changes", if the change is not correctly saved the dialog is closed anyway. I'd suggest we check result from server, if possible, and in case show error message (and leave the dialog open if an error was returned). To repeat try to edit the in or out from e.g. #10:0 to #10:0sssssss

Thanks,

@santo-it santo-it added the bug label Apr 10, 2017
@santo-it santo-it changed the title Graph Editor does not handle @version correctly Graph Editor - Edge not refreshed after edit + Edit Edge window improvements Apr 10, 2017
@santo-it santo-it added the PBL2 label Apr 10, 2017
@StarCmd
Copy link
Author

StarCmd commented Apr 11, 2017

Hi,
I upgraded to 2.2.18.
After reversing the IN and OUT, you are right : only one edge, but in the wrong direction.
If I do not clear canvas, but just run the query again (CTRL-RETURN) 2 arrows appears ...

2arrows

BTW, I got a new wrong behavior. Should I open a new Issue or are they related ?
With a new blank db, using the graph editor, create 2 V then try to create an edge : you can't as it mistake the class. It's a random bug, sometime i got E.

newedge

newedge2

newedge3

@wolf4ood
Copy link
Member

hi @StarCmd

BTW, I got a new wrong behavior. Should I open a new Issue or are they related ?
With a new blank db, using the graph editor, create 2 V then try to create an edge : you can't as it mistake the class. It's a random bug, sometime i got E.

Yes you can open another issue

Thanks

@wolf4ood wolf4ood self-assigned this Apr 11, 2017
@wolf4ood
Copy link
Member

hi @StarCmd

The best way to swap in/out it is with

https://orientdb.com/docs/2.2/SQL-Update-Edge.html

and not the ui. In/out fields should be disabled in update edge UI.

@wolf4ood
Copy link
Member

Hi @StarCmd

The problem was that the the first one stayed visible with old values. That because by swapping in/out, the GraphEditor interpreted that change as a new Edge.

We did remove in/out property from the edit/add edge (orientechnologies/orientdb#7339) so this issue should not happen anymore

Thanks

@wolf4ood wolf4ood added this to the 2.2.19 milestone Apr 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants