Skip to content

Commit

Permalink
Merge pull request apache#10 from graceguo-supercat/gg-CherryPickLogAPI
Browse files Browse the repository at this point in the history
cherry pick Log API permission issue
  • Loading branch information
Grace Guo authored Feb 8, 2018
2 parents 15bde8f + a9b1719 commit db4e8db
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import sqlalchemy as sqla
from sqlalchemy import create_engine
from sqlalchemy.engine.url import make_url
from sqlalchemy.exc import IntegrityError, OperationalError
from sqlalchemy.exc import IntegrityError
from unidecode import unidecode
from werkzeug.routing import BaseConverter
from werkzeug.utils import secure_filename
Expand Down Expand Up @@ -655,11 +655,6 @@ class LogModelView(SupersetModelView):

@app.route('/health')
def health():
try:
db.session.execute('SELECT 1')
except OperationalError:
return Response('BAD', status=500)

return 'OK'


Expand Down Expand Up @@ -1961,7 +1956,6 @@ def dashboard(**kwargs): # noqa
)

@api
@has_access_api
@log_this
@expose('/log/', methods=['POST'])
def log(self):
Expand Down

0 comments on commit db4e8db

Please sign in to comment.