You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment for download plugins the download button doesn't disappear based on the eval endpoint. E.g. for sbol2excel.synbiohub.org it appears on component def pages even though it should only appear on collection pages. This leads to endless wait for a download as it won't send a run request.
The text was updated successfully, but these errors were encountered:
Hi —
When a page is rendered, the server creates a new stream handle for each
plugin on the page. Evaluate is called at this time. (
https://github.com/SynBioHub/synbiohub/blob/9d7556f7b2316d96d633d3d2783c2cded57209b7/lib/api/stream.js#L94).
If evaluate gives back a ‘no’ or another bad response, we remember that.
(Set the handle state to ‘gone’.) There is a stream API endpoint which
accepts a handle as a parameter. When it’s called it will either tell the
client that the stream is gone/deleted with a 404 (which will cause the
client to remove the button,
https://github.com/SynBioHub/synbiohub/blob/9d7556f7b2316d96d633d3d2783c2cded57209b7/browser/plugin.js#L40)
to try again in 1s, or give the plug-in content back.
Reading the code, it looks though like the download *buttons* don’t do
this. They link to the stream *page*, which is a really basic wrapper
around the JavaScript used for enfer the plug-in panel. To make the
download button work how you want, you’d want to modify browser JS to start
polling for updates on page load.
At the moment for download plugins the download button doesn't disappear based on the eval endpoint. E.g. for sbol2excel.synbiohub.org it appears on component def pages even though it should only appear on collection pages. This leads to endless wait for a download as it won't send a run request.
The text was updated successfully, but these errors were encountered: