You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2023/08/24 16:21:27 UTC

[superset] 02/04: fix(cli): import-directory is missing the application context (#21255)

This is an automated email from the ASF dual-hosted git repository.

michaelsmolina pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 2554a89cc9f12499224bcec985216f28c2a353fb
Author: Rémy DUBOIS <rd...@gmail.com>
AuthorDate: Wed Aug 23 21:32:57 2023 +0200

    fix(cli): import-directory is missing the application context (#21255)
    
    (cherry picked from commit 80fcbfab7caa6ceaa5e041f1f90c5ac8dacf120e)
---
 superset/cli/importexport.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/superset/cli/importexport.py b/superset/cli/importexport.py
index 86f6fe9b67..27bb0f7f8c 100755
--- a/superset/cli/importexport.py
+++ b/superset/cli/importexport.py
@@ -34,6 +34,7 @@ logger = logging.getLogger(__name__)
 
 
 @click.command()
+@with_appcontext
 @click.argument("directory")
 @click.option(
     "--overwrite",