You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by sr...@apache.org on 2022/12/08 19:27:41 UTC

[superset] branch master updated: fix(snowflake): Allow encrypted_extra field to be imported (#22357)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new d41cb66737 fix(snowflake): Allow encrypted_extra field to be imported (#22357)
d41cb66737 is described below

commit d41cb66737fab210f1cd799a3325dad5ef83af4d
Author: Alan Ning <as...@gmail.com>
AuthorDate: Thu Dec 8 14:27:30 2022 -0500

    fix(snowflake): Allow encrypted_extra field to be imported (#22357)
    
    Co-authored-by: Alan Ning <an...@manifold.ai>
---
 superset/models/core.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/superset/models/core.py b/superset/models/core.py
index 4efcf311c6..1f2fa7f71c 100755
--- a/superset/models/core.py
+++ b/superset/models/core.py
@@ -163,7 +163,12 @@ class Database(
         "allow_file_upload",
         "extra",
     ]
-    extra_import_fields = ["password", "is_managed_externally", "external_url"]
+    extra_import_fields = [
+        "password",
+        "is_managed_externally",
+        "external_url",
+        "encrypted_extra",
+    ]
     export_children = ["tables"]
 
     def __repr__(self) -> str: