Working with private repos - Gapminder/waffle-server GitHub Wiki
Working with private repos
This workflow describes how to add a private repo to WS and access it from vizabi
- Make a private Github repo
- Add Github account
gapminderdeploy
to the list of collaborators of your private repo - Add your private Github repo in WS CLI
- When importing dataset choose "Private" in WS CLI
- Chose
Generate Access Token
in WS CLI, then chose the repo that was imported in the previous steps - Copy the generated access token to clipboard
Generated Access Token :: 8245ddddd000011110000000000aaaaaa0000bbbbbccccc7
-------------------------------------------------------------------------
Use vizabi-ws-reader 2.1.0 or above
When configuring the reader in vizabi model, add a property dataset_access_token
and paste the value you copied earlier, for example:
VIZABI_MODEL.data = {
"reader": 'waffle',
"path": 'https://waffle-server-dev.gapminderdev.org/api/ddf/ql',
"dataset": 'Gapminder/ddf--my--private--dataset#branch',
"assetsPath": 'https://import-waffle-server-dev.gapminderdev.org/api/ddf/assets/',
"dataset_access_token": "8245ddddd000011110000000000aaaaaa0000bbbbbccccc7"
};
note: when importing the dataset into WS you can also chose to import it as private even though it's a public Github repo. In this case WS and WS-reader will also need to use dataset access token.