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: configuration file for graph view? #509

Open
rinnierin opened this issue Apr 18, 2018 · 1 comment
Open

Graph Editor: configuration file for graph view? #509

rinnierin opened this issue Apr 18, 2018 · 1 comment
Assignees

Comments

@rinnierin
Copy link

rinnierin commented Apr 18, 2018

Hi, I'm building a graph using OrientDB on AWS.

I've changed UI components for each vertex and edge in my graph using Graph Editor. It does what I want to achieve and it's really good!

Now, I have some questions.

I have two users, root and admin. I made changes in root, but I notice that the changes doesn't apply to admin. I can make same changes using the Graph Editor for admin right now. But I will have multiple users pretty soon, and it concerns me how to tackle this issue.

  1. How can I make sure that all users in my database view the same graph (with same fill, stroke, size, and etc)? Is there a one single configuration file I can change and apply to the graph view? I saw _studio.pcl file and it seems to contain information about graph config including fill, stroke, icon, and so on.

Any insight would be appreciated.

@wolf4ood
Copy link
Member

wolf4ood commented Apr 19, 2018

Hi @hyec0401

configuration are per users. If you want to copy configuration from user to another you can run
this batch script

let cfg = select from _studio where user.name = 'admin';
let usr = select from OUser where name = 'reader';
update _studio set type = "GraphConfig", config = $cfg[0].config ,user = $usr[0] UPSERT where user.name = 'reader';

if you want to apply a specific config from a user to all users you can use this

let cfg = select from _studio where user.name = 'admin';
update _studio set type = "GraphConfig", config = $cfg[0].config;

I hope it helps

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants