connectome-neuprint / neuPrintExplorer

View connectomic data stored in neuPrint
Other
24 stars 4 forks source link

When opening a link to a custom query view, the query box should be populated #313

Closed stuarteberg closed 3 years ago

stuarteberg commented 3 years ago

I want to change Query Type to "Custom Query", then execute some Cypher, and share the resulting view via a URL. That can all be done, but when the URL is opened, the query box is not pre-populated with the query I typed. If the user wants to see which query produced the results, they have to click on the information icon.

Example link

neomorphic commented 3 years ago

This sounds like it should be easy, but.... What happens when, like in your example, you have multiple custom query tabs? Do you show the cypher from the open tab or the first tab? Once could assume the open tab would be the correct choice there, but then is the cypher supposed to change when one of the other tabs is opened? That logic seems reasonable, apart from the fact that the results tab and the query tab do not share data, so the query tab no longer knows what query string was entered, once the query has been submitted. This would require a major restructuring of the code base to pull off.

stuarteberg commented 3 years ago

I see. I'm fine with closing this, then.

neomorphic commented 3 years ago

It turns out it was easier than I thought to get access to the cypher. I have the code working.