mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
update db for expose in sqllab param (#15609)
This commit is contained in:
parent
b5fc03f964
commit
f67e40236d
@ -246,6 +246,7 @@ class DatabaseRestApi(BaseSupersetModelRestApi):
|
|||||||
new_model = CreateDatabaseCommand(g.user, item).run()
|
new_model = CreateDatabaseCommand(g.user, item).run()
|
||||||
# Return censored version for sqlalchemy URI
|
# Return censored version for sqlalchemy URI
|
||||||
item["sqlalchemy_uri"] = new_model.sqlalchemy_uri
|
item["sqlalchemy_uri"] = new_model.sqlalchemy_uri
|
||||||
|
item["expose_in_sqllab"] = new_model.expose_in_sqllab
|
||||||
|
|
||||||
# If parameters are available return them in the payload
|
# If parameters are available return them in the payload
|
||||||
if new_model.parameters:
|
if new_model.parameters:
|
||||||
|
Loading…
Reference in New Issue
Block a user