You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ni...@apache.org on 2021/03/09 04:58:39 UTC

[atlas] branch master updated: ATLAS-4186 :- Fix black icons on Apache Atlas lineage UI in case of space in the type name of the entity (#124)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 8f820e6  ATLAS-4186 :- Fix black icons on Apache Atlas lineage UI in case of space in the type name of the entity (#124)
8f820e6 is described below

commit 8f820e68e6e52b2e8e24befd6601ab27a79ff92c
Author: Roman Hres <ph...@hotmail.com>
AuthorDate: Tue Mar 9 06:58:29 2021 +0200

    ATLAS-4186 :- Fix black icons on Apache Atlas lineage UI in case of space in the type name of the entity (#124)
    
    Co-authored-by: Roman Gres <ro...@ocado.com>
---
 .../public/js/external_lib/atlas-lineage/src/Utils/LineageUtils.js      | 2 +-
 .../public/js/external_lib/atlas-lineage/src/Utils/LineageUtils.js      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dashboardv2/public/js/external_lib/atlas-lineage/src/Utils/LineageUtils.js b/dashboardv2/public/js/external_lib/atlas-lineage/src/Utils/LineageUtils.js
index 55f363e..448a95a 100644
--- a/dashboardv2/public/js/external_lib/atlas-lineage/src/Utils/LineageUtils.js
+++ b/dashboardv2/public/js/external_lib/atlas-lineage/src/Utils/LineageUtils.js
@@ -390,7 +390,7 @@ const LineageUtils = {
         }
         var shapeSvg = parent
             .append("circle")
-            .attr("fill", "url(#img_" + imgName + ")")
+            .attr("fill", "url(#img_" + encodeURI(imgName) + ")")
             .attr("r", isRankdirToBottom ? "30px" : "24px")
             .attr("data-stroke", node.id)
             .attr("stroke-width", "2px")
diff --git a/dashboardv3/public/js/external_lib/atlas-lineage/src/Utils/LineageUtils.js b/dashboardv3/public/js/external_lib/atlas-lineage/src/Utils/LineageUtils.js
index 55f363e..448a95a 100644
--- a/dashboardv3/public/js/external_lib/atlas-lineage/src/Utils/LineageUtils.js
+++ b/dashboardv3/public/js/external_lib/atlas-lineage/src/Utils/LineageUtils.js
@@ -390,7 +390,7 @@ const LineageUtils = {
         }
         var shapeSvg = parent
             .append("circle")
-            .attr("fill", "url(#img_" + imgName + ")")
+            .attr("fill", "url(#img_" + encodeURI(imgName) + ")")
             .attr("r", isRankdirToBottom ? "30px" : "24px")
             .attr("data-stroke", node.id)
             .attr("stroke-width", "2px")