Open gordonwoodhull opened 9 years ago
Given his transferring notebooks around from training classes, @prateek05 might have a script that could be adapted for this.
I didnt catch up "outside normal permissions". The migration I do is with different github backends so its more like 1) If notebook exists by name for the current logged in user then rcloud.update.notbook with the title matched id and $content$files of the source notebook dump 2) else create new notebook with $content and register with create notebook API and then have to self star it and mark it as visible. The three operations dont happen together or I might have missed the API which performs all three operations in sequence
Thanks @prateek05, that is actually a lot more than we need to do here, because in this case the notebooks definitely exist and we don't need to port any content. We just need to add them under a user in a situation where we can't log that user in.
It can be done with a looping redis script.
We want new deployments to get a starter pack of notebooks from the rclouddocs user on public github. If the deployment also uses public github, then it's easy to access them and they don't even need to be imported.
However, there are two problems:
Do we need a script to add a bunch of notebooks to RCS directly, outside the UI and outside normal permissions?