-
Notifications
You must be signed in to change notification settings - Fork 76
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
get_datastack_info
from tgz returns an unusable args dictionary
#1308
Comments
I was also looking at this briefly yesterday before getting distracted by something else. Do we remember if the Classic UI handled this correctly and how it did so? I do think that having the Workbench be able to handle this would be nice for the user, but an alternative is to change the instructions on how to use the data archive, which is, have the user extract it and then drop in the JSON file. I guess this is the workaround for now as is. |
I don't know, I don't think I ever tried it.
Agreed. The first, easiest thing we can do is remove the UI's suggestion to use a |
I believe the classic UI did handle this issue. When a datastack archive is loaded, it would prompt the user to provide an extraction directory. After extraction, the args json would be loaded. So there was a 2-step process:
|
As Stacie pointed out,
This amounts to the fact that
datastack.get_datastack_info('some.tgz')
seems to extract only the.json
file to a temp directory, but not the rest of the data from the archive. So it defaults to returning anargs
dict with the paths from the.json
, which are relative paths. They would only be valid paths if the rest of the archive was extracted.As far as I can tell, we don't have a use-case for needing an
args
dict from an archive unless we are also extracting all the data from that archive.It might be a bad idea to have
datastack.get_datastack_info
return something different depending on the type of datastack. So maybe we leave that as-is, but follow it up with a call toextract_datastack_archive
, which also returns theargs
dict. And I believe the only place where we use this is inui_server.py
Implementing this for use by the Workbench will also require asking the user to choose a location to extract to, so might necessitate a new UI component for that.
The text was updated successfully, but these errors were encountered: