sevenbridges-python icon indicating copy to clipboard operation
sevenbridges-python copied to clipboard

Possible to bulk import a volume directory into a SBG sub directory

Open zymergen-mbarton opened this issue 7 years ago • 3 comments

I would like to import a list of files from a volume using api.imports.bulk_submit(imports=...). It currently seems only possible to import these files into the root of the project. Could this function be updated to accept and additional parameter either in the given dictionary, or as an argument specifing a parent folder?

zymergen-mbarton avatar Dec 18 '18 10:12 zymergen-mbarton

Hi Michael, thanks for your feedback. Here our Python API client lags behind our REST API a bit, but we have it already scheduled.

If you urgently need this feature, you could turn directly to the REST API to achieve this, where we already have a 'parent' argument to specify the target folder:

https://docs.sevenbridges.com/v1.0/reference#start-an-import-job-v2

christiansbg avatar Dec 19 '18 13:12 christiansbg

Thank you @christiansbg. That would be very useful in the API. I think this also would relate to the issue I saw in #112 since I wouldn't need to move a large number of files over if they could be imported into a folder directly.

zymergen-mbarton avatar Jan 02 '19 14:01 zymergen-mbarton

In version 0.17.6 it's possible now for single file imports to specify the parent folder: https://github.com/sbg/sevenbridges-python/releases/tag/0.17.6

For bulk imports it is not fixed yet.

christiansbg avatar Jan 08 '19 18:01 christiansbg