Skip to content

Commit

Permalink
Merge pull request #6 from apache/master
Browse files Browse the repository at this point in the history
merge
  • Loading branch information
lxzhangchao authored Jul 17, 2017
2 parents fcbfa3c + 7b015fa commit d06df15
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
8 changes: 8 additions & 0 deletions superset/assets/javascripts/explore/stores/visTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,14 @@ const visTypes = {
],
},
],
controlOverrides: {
all_columns_x: {
validators: [v.nonEmpty],
},
all_columns_y: {
validators: [v.nonEmpty],
},
},
},

horizon: {
Expand Down
2 changes: 1 addition & 1 deletion superset/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def worker(workers):
celery_app.conf.update(CELERYD_CONCURRENCY=workers)
elif config.get("SUPERSET_CELERY_WORKERS"):
celery_app.conf.update(
worker_concurrency=config.get("SUPERSET_CELERY_WORKERS"))
CELERYD_CONCURRENCY=config.get("SUPERSET_CELERY_WORKERS"))

worker = celery_worker.worker(app=celery_app)
worker.run()
Expand Down
2 changes: 1 addition & 1 deletion superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1375,7 +1375,7 @@ def testconn(self):
.get('connect_args', {}))
engine = create_engine(uri, connect_args=connect_args)
engine.connect()
return json.dumps(engine.table_names(), indent=4)
return json_success(json.dumps(engine.table_names(), indent=4))
except Exception as e:
logging.exception(e)
return json_error_response((
Expand Down
2 changes: 2 additions & 0 deletions tests/core_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ def test_testconn(self):
})
response = self.client.post('/superset/testconn', data=data, content_type='application/json')
assert response.status_code == 200
assert response.headers['Content-Type'] == 'application/json'

# validate that the endpoint works with the decrypted sqlalchemy uri
data = json.dumps({
Expand All @@ -292,6 +293,7 @@ def test_testconn(self):
})
response = self.client.post('/superset/testconn', data=data, content_type='application/json')
assert response.status_code == 200
assert response.headers['Content-Type'] == 'application/json'

def test_databaseview_edit(self, username='admin'):
# validate that sending a password-masked uri does not over-write the decrypted uri
Expand Down

0 comments on commit d06df15

Please sign in to comment.