Skip to content
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

Update codebase for demo #3

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Merge artyom-new-branch to new-codebase
keydunov committed Jun 13, 2024
commit a73878a5b097a92e0c664e96cb5213e094f6a986
19 changes: 19 additions & 0 deletions cube.py
Original file line number Diff line number Diff line change
@@ -64,3 +64,22 @@
# @config('context_to_api_scopes')
# def context_to_api_scopes(context: dict, default_scopes: list[str]) -> list[str]:
# return ['meta', 'data', 'graphql']

@config('semantic_layer_sync')
def sls(ctx: dict) -> list:
pat_name = os.getenv('TABLEAU_PAT_NAME_CUBEDEV', None)
pat_secret = os.getenv('TABLEAU_PAT_SECRET_CUBEDEV', None)
if pat_name and pat_secret:
return [{
"type": "tableau-cloud",
"name": "Tableau Cloud Sync",
"config": {
"database": "Cube Cloud: artyom_cube_demo",
"region": "us-west-2b",
"site": "cubedev",
"personalAccessToken": pat_name,
"personalAccessTokenSecret": pat_secret
}
}]
else:
return []