You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by el...@apache.org on 2021/11/17 23:44:33 UTC

[superset] 04/04: fix(sqllab): Bugfix for tracking url transformation (#17263)

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

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

commit 6da69a821f1f06437807e8e65339352c8f6cb6d8
Author: CodeingBoy <Co...@gmail.com>
AuthorDate: Thu Nov 11 17:16:55 2021 +0800

    fix(sqllab): Bugfix for tracking url transformation (#17263)
    
    * Bugfix for tracking url transformation
    
    * Fix linting
    
    (cherry picked from commit 2544a4a8accf29edb7bb45ffd1c9fc97ddc7ad40)
---
 superset/db_engine_specs/hive.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/superset/db_engine_specs/hive.py b/superset/db_engine_specs/hive.py
index 061ab7f..9735289 100644
--- a/superset/db_engine_specs/hive.py
+++ b/superset/db_engine_specs/hive.py
@@ -363,7 +363,8 @@ class HiveEngineSpec(PrestoEngineSpec):
                             str(query_id),
                             tracking_url,
                         )
-                        tracking_url = current_app.config["TRACKING_URL_TRANSFORMER"]
+                        transformer = current_app.config["TRACKING_URL_TRANSFORMER"]
+                        tracking_url = transformer(tracking_url)
                         logger.info(
                             "Query %s: Transformation applied: %s",
                             str(query_id),