You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/05/02 18:56:29 UTC

[GitHub] [incubator-superset] craig-rueda commented on a change in pull request #7417: Fix migration metadata lock on ab_view_menu

craig-rueda commented on a change in pull request #7417: Fix migration metadata lock on ab_view_menu
URL: https://github.com/apache/incubator-superset/pull/7417#discussion_r280553271
 
 

 ##########
 File path: superset/__init__.py
 ##########
 @@ -196,40 +196,41 @@ def index(self):
          not FAB's security manager.
          See [4565] in UPDATING.md""")
 
-appbuilder = AppBuilder(
-    app,
-    db.session,
-    base_template='superset/base.html',
-    indexview=MyIndexView,
-    security_manager_class=custom_sm,
-    update_perms=get_update_perms_flag(),
-)
+with app.app_context():
 
 Review comment:
   Tested this - all you need is for the AppBuilder ctor to live inside the app context. The rest can be left outside.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org