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 - Under certain conditions colors are not persistent #453

Closed
santo-it opened this issue Feb 17, 2017 · 3 comments
Closed

Graph Editor - Under certain conditions colors are not persistent #453

santo-it opened this issue Feb 17, 2017 · 3 comments
Assignees

Comments

@santo-it
Copy link

  • connect
  • graph editor --> query that return many different vertex classes. Take screenshot so that you can see colors
  • go to schema panel
  • back again to graph editor --> the graph is loaded (as it should) but colors are changed

Colors should be persistent (until the user disconnects)

@wolf4ood
Copy link
Member

hi @santo-it
i'm not able to reproduce it. Do you have a db that reproduce this issue?

Thanks

@santo-it
Copy link
Author

Hi,

Try this:

  1. create new db
  2. from browse, set batch
  3. copy / paste / execute

CREATE CLASS A EXTENDS V;
CREATE PROPERTY A.id LONG;
CREATE INDEX A.id ON A(id) UNIQUE;

CREATE CLASS B EXTENDS V;
CREATE PROPERTY B.id LONG;
CREATE INDEX B.id ON B(id) UNIQUE;

CREATE CLASS C EXTENDS V;
CREATE PROPERTY C.id LONG;
CREATE INDEX C.id ON B(id) UNIQUE;

CREATE CLASS D EXTENDS V;
CREATE PROPERTY D.id LONG;
CREATE INDEX D.id ON D(id) UNIQUE;

  1. click on schema tab and take screenshot

  2. back to browse tab, copy / paste / execute:

CREATE VERTEX A SET id = '1';
CREATE VERTEX B SET id = '1';
CREATE VERTEX C SET id = '1';
CREATE VERTEX D SET id = '1';

CREATE CLASS AB_Edge EXTENDS E;
CREATE CLASS BC_Edge EXTENDS E;
CREATE CLASS CD_Edge EXTENDS E;

CREATE EDGE AB_Edge FROM (SELECT FROM A WHERE id = 1) TO (SELECT FROM B WHERE id = 1);
CREATE EDGE BC_Edge FROM (SELECT FROM B WHERE id = 1) TO (SELECT FROM C WHERE id = 1);
CREATE EDGE CD_Edge FROM (SELECT FROM C WHERE id = 1) TO (SELECT FROM D WHERE id = 1);

  1. back to schema tab and take screenshot: see that studio is using different colors than before

  2. go to graph editor and execute

MATCH {class: A, as: a}-AB_Edge->{class: B, as: b}-BC_Edge->{class: C, as: c}-CD_Edge->{class: D, as: d} RETURN $elements;

You ll see different colors - so 3 different sets. Here are some screenshots

Set 1
image1

Set 2
image2

Set 3
image3

wolf4ood added a commit that referenced this issue Feb 21, 2017
wolf4ood added a commit that referenced this issue Feb 21, 2017
@wolf4ood
Copy link
Member

Implemented

@luigidellaquila luigidellaquila removed this from the 2.2.x (next hotfix) milestone Aug 16, 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