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

Delay for commands_api and cyrest_api #101

Open
bdemchak opened this issue Apr 11, 2023 · 0 comments
Open

Delay for commands_api and cyrest_api #101

bdemchak opened this issue Apr 11, 2023 · 0 comments

Comments

@bdemchak
Copy link
Collaborator

Both commands_api() and cyrest_api() open a browser window, which then populate via calls back into Cytoscape. If other CyREST calls are made before the browser window is complete, Cytoscape gets confused on subsequent CyREST calls. This happens because the browser window open call ends before the page is fully displayed.

Solution is to add a delay after opening the browser window so that the window can finish before additional CyREST calls are made. I'm thinking about 10 seconds may work.

Note that this is a show stopper in 3.10.0-RC1, but not in previous Cytoscapes. I don't know why now and not before, but it's not worth finding out. Adding the delay is the right call.

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

No branches or pull requests

1 participant