mirror of
https://github.com/apache/superset.git
synced 2024-09-17 19:19:38 -04:00
38b8db8051
* Carapal react mockup This is really just a mock up written in React to try different components. It could become scaffolding to build a prototype, or not. * Merging in Alanna's theme tweaks for SQL lab * Tweak the display of the alert message in navbar * Sketching the middleware refresh for Queries * Adjustments * Implement timer sync. * CTAS * Refactor the queries to be stored as a dict. (#994) * Download csv endpoint. (#992) * CSV download engdpoint. * Use lower case booleans. * Replcate loop with the object lookup by key. * First changes for the sync * Address comments * Fix query deletions. Update only the queries from the store. * Sync queries using tmp_id. * simplify * Fix the tests in the carapal. (#1023) * Sync queries using tmp_id. * Fix the unit tests * Bux fixes. Pass 2. * Tweakin' & linting * Adding alpha label to the SQL LAb navbar entry * Fixing the python unit tests
32 lines
1.0 KiB
Python
32 lines
1.0 KiB
Python
from caravel.config import *
|
|
|
|
AUTH_USER_REGISTRATION_ROLE = 'alpha'
|
|
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(DATA_DIR, 'unittests.db')
|
|
DEBUG = True
|
|
CARAVEL_WEBSERVER_PORT = 8081
|
|
|
|
# Allowing SQLALCHEMY_DATABASE_URI to be defined as an env var for
|
|
# continuous integration
|
|
if 'CARAVEL__SQLALCHEMY_DATABASE_URI' in os.environ:
|
|
SQLALCHEMY_DATABASE_URI = os.environ.get('CARAVEL__SQLALCHEMY_DATABASE_URI')
|
|
|
|
SQL_CELERY_DB_FILE_PATH = os.path.join(DATA_DIR, 'celerydb.sqlite')
|
|
SQL_CELERY_RESULTS_DB_FILE_PATH = os.path.join(DATA_DIR, 'celery_results.sqlite')
|
|
SQL_SELECT_AS_CTA = True
|
|
SQL_MAX_ROW = 666
|
|
|
|
TESTING = True
|
|
CSRF_ENABLED = False
|
|
SECRET_KEY = 'thisismyscretkey'
|
|
WTF_CSRF_ENABLED = False
|
|
PUBLIC_ROLE_LIKE_GAMMA = True
|
|
|
|
|
|
class CeleryConfig(object):
|
|
BROKER_URL = 'sqla+sqlite:///' + SQL_CELERY_DB_FILE_PATH
|
|
CELERY_IMPORTS = ('caravel.sql_lab', )
|
|
CELERY_RESULT_BACKEND = 'db+sqlite:///' + SQL_CELERY_RESULTS_DB_FILE_PATH
|
|
CELERY_ANNOTATIONS = {'sql_lab.add': {'rate_limit': '10/s'}}
|
|
CONCURRENCY = 1
|
|
CELERY_CONFIG = CeleryConfig
|