ATLAS-2976: UI - Show entity specific icon for the lineage node (folder changes)
Signed-off-by: Madhan Neethiraj <madhan@apache.org>
diff --git a/dashboardv2/public/img/entity-icon/avro/avro.png b/dashboardv2/public/img/entity-icon/avro.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/avro/avro.png
rename to dashboardv2/public/img/entity-icon/avro.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/default/db.png b/dashboardv2/public/img/entity-icon/db.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/default/db.png
rename to dashboardv2/public/img/entity-icon/db.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/avro/disabled/avro.png b/dashboardv2/public/img/entity-icon/disabled/avro.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/avro/disabled/avro.png
rename to dashboardv2/public/img/entity-icon/disabled/avro.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/default/disabled/db.png b/dashboardv2/public/img/entity-icon/disabled/db.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/default/disabled/db.png
rename to dashboardv2/public/img/entity-icon/disabled/db.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/falcon/disabled/falcon.png b/dashboardv2/public/img/entity-icon/disabled/falcon.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/falcon/disabled/falcon.png
rename to dashboardv2/public/img/entity-icon/disabled/falcon.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/file_system/disabled/file_system.png b/dashboardv2/public/img/entity-icon/disabled/file_system.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/file_system/disabled/file_system.png
rename to dashboardv2/public/img/entity-icon/disabled/file_system.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hadoop/disabled/hadoop.png b/dashboardv2/public/img/entity-icon/disabled/hadoop.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/hadoop/disabled/hadoop.png
rename to dashboardv2/public/img/entity-icon/disabled/hadoop.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hbase/disabled/hbase.png b/dashboardv2/public/img/entity-icon/disabled/hbase.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/hbase/disabled/hbase.png
rename to dashboardv2/public/img/entity-icon/disabled/hbase.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hbase/disabled/hbase_column.png b/dashboardv2/public/img/entity-icon/disabled/hbase_column.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/hbase/disabled/hbase_column.png
rename to dashboardv2/public/img/entity-icon/disabled/hbase_column.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hbase/disabled/hbase_column_family.png b/dashboardv2/public/img/entity-icon/disabled/hbase_column_family.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/hbase/disabled/hbase_column_family.png
rename to dashboardv2/public/img/entity-icon/disabled/hbase_column_family.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hbase/disabled/hbase.png b/dashboardv2/public/img/entity-icon/disabled/hbase_namespace.png
similarity index 100%
copy from dashboardv2/public/img/entity-icon/hbase/disabled/hbase.png
copy to dashboardv2/public/img/entity-icon/disabled/hbase_namespace.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hbase/disabled/hbase_table.png b/dashboardv2/public/img/entity-icon/disabled/hbase_table.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/hbase/disabled/hbase_table.png
rename to dashboardv2/public/img/entity-icon/disabled/hbase_table.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/file_system/disabled/file_system.png b/dashboardv2/public/img/entity-icon/disabled/hdfs_path.png
similarity index 100%
copy from dashboardv2/public/img/entity-icon/file_system/disabled/file_system.png
copy to dashboardv2/public/img/entity-icon/disabled/hdfs_path.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hive/disabled/hive.png b/dashboardv2/public/img/entity-icon/disabled/hive.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/hive/disabled/hive.png
rename to dashboardv2/public/img/entity-icon/disabled/hive.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hive/disabled/hive_column.png b/dashboardv2/public/img/entity-icon/disabled/hive_column.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/hive/disabled/hive_column.png
rename to dashboardv2/public/img/entity-icon/disabled/hive_column.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hive/disabled/hive_column_lineage.png b/dashboardv2/public/img/entity-icon/disabled/hive_column_lineage.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/hive/disabled/hive_column_lineage.png
rename to dashboardv2/public/img/entity-icon/disabled/hive_column_lineage.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hive/disabled/hive_db.png b/dashboardv2/public/img/entity-icon/disabled/hive_db.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/hive/disabled/hive_db.png
rename to dashboardv2/public/img/entity-icon/disabled/hive_db.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hive/disabled/hive_process.png b/dashboardv2/public/img/entity-icon/disabled/hive_process.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/hive/disabled/hive_process.png
rename to dashboardv2/public/img/entity-icon/disabled/hive_process.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hive/disabled/hive_storagedesc.png b/dashboardv2/public/img/entity-icon/disabled/hive_storagedesc.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/hive/disabled/hive_storagedesc.png
rename to dashboardv2/public/img/entity-icon/disabled/hive_storagedesc.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hive/disabled/hive_table.png b/dashboardv2/public/img/entity-icon/disabled/hive_table.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/hive/disabled/hive_table.png
rename to dashboardv2/public/img/entity-icon/disabled/hive_table.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/kafka/disabled/jms_topic.png b/dashboardv2/public/img/entity-icon/disabled/jms_topic.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/kafka/disabled/jms_topic.png
rename to dashboardv2/public/img/entity-icon/disabled/jms_topic.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/kafka/disabled/kafka.png b/dashboardv2/public/img/entity-icon/disabled/kafka.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/kafka/disabled/kafka.png
rename to dashboardv2/public/img/entity-icon/disabled/kafka.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/kafka/disabled/kafka.png b/dashboardv2/public/img/entity-icon/disabled/kafka_topic.png
similarity index 100%
copy from dashboardv2/public/img/entity-icon/kafka/disabled/kafka.png
copy to dashboardv2/public/img/entity-icon/disabled/kafka_topic.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/default/disabled/process.png b/dashboardv2/public/img/entity-icon/disabled/process.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/default/disabled/process.png
rename to dashboardv2/public/img/entity-icon/disabled/process.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/rdbms/disabled/rdbms.png b/dashboardv2/public/img/entity-icon/disabled/rdbms.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/rdbms/disabled/rdbms.png
rename to dashboardv2/public/img/entity-icon/disabled/rdbms.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/rdbms/disabled/rdbms_column.png b/dashboardv2/public/img/entity-icon/disabled/rdbms_column.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/rdbms/disabled/rdbms_column.png
rename to dashboardv2/public/img/entity-icon/disabled/rdbms_column.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/rdbms/disabled/rdbms_db.png b/dashboardv2/public/img/entity-icon/disabled/rdbms_db.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/rdbms/disabled/rdbms_db.png
rename to dashboardv2/public/img/entity-icon/disabled/rdbms_db.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/rdbms/disabled/rdbms_table.png b/dashboardv2/public/img/entity-icon/disabled/rdbms_table.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/rdbms/disabled/rdbms_table.png
rename to dashboardv2/public/img/entity-icon/disabled/rdbms_table.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/sqoop/disabled/sqoop.png b/dashboardv2/public/img/entity-icon/disabled/sqoop.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/sqoop/disabled/sqoop.png
rename to dashboardv2/public/img/entity-icon/disabled/sqoop.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/sqoop/disabled/sqoop_db.png b/dashboardv2/public/img/entity-icon/disabled/sqoop_db.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/sqoop/disabled/sqoop_db.png
rename to dashboardv2/public/img/entity-icon/disabled/sqoop_db.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/sqoop/disabled/sqoop_process.png b/dashboardv2/public/img/entity-icon/disabled/sqoop_process.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/sqoop/disabled/sqoop_process.png
rename to dashboardv2/public/img/entity-icon/disabled/sqoop_process.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/storm/disabled/storm.png b/dashboardv2/public/img/entity-icon/disabled/storm.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/storm/disabled/storm.png
rename to dashboardv2/public/img/entity-icon/disabled/storm.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/storm/disabled/storm_bolt.png b/dashboardv2/public/img/entity-icon/disabled/storm_bolt.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/storm/disabled/storm_bolt.png
rename to dashboardv2/public/img/entity-icon/disabled/storm_bolt.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/storm/disabled/storm_spout.png b/dashboardv2/public/img/entity-icon/disabled/storm_spout.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/storm/disabled/storm_spout.png
rename to dashboardv2/public/img/entity-icon/disabled/storm_spout.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/storm/disabled/storm_topology.png b/dashboardv2/public/img/entity-icon/disabled/storm_topology.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/storm/disabled/storm_topology.png
rename to dashboardv2/public/img/entity-icon/disabled/storm_topology.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/default/disabled/table.png b/dashboardv2/public/img/entity-icon/disabled/table.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/default/disabled/table.png
rename to dashboardv2/public/img/entity-icon/disabled/table.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/falcon/falcon.png b/dashboardv2/public/img/entity-icon/falcon.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/falcon/falcon.png
rename to dashboardv2/public/img/entity-icon/falcon.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/file_system/file_system.png b/dashboardv2/public/img/entity-icon/file_system.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/file_system/file_system.png
rename to dashboardv2/public/img/entity-icon/file_system.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hadoop/hadoop.png b/dashboardv2/public/img/entity-icon/hadoop.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/hadoop/hadoop.png
rename to dashboardv2/public/img/entity-icon/hadoop.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hbase/hbase.png b/dashboardv2/public/img/entity-icon/hbase.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/hbase/hbase.png
rename to dashboardv2/public/img/entity-icon/hbase.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hbase/hbase_column.png b/dashboardv2/public/img/entity-icon/hbase_column.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/hbase/hbase_column.png
rename to dashboardv2/public/img/entity-icon/hbase_column.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hbase/hbase_column_family.png b/dashboardv2/public/img/entity-icon/hbase_column_family.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/hbase/hbase_column_family.png
rename to dashboardv2/public/img/entity-icon/hbase_column_family.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hbase/hbase.png b/dashboardv2/public/img/entity-icon/hbase_namespace.png
similarity index 100%
copy from dashboardv2/public/img/entity-icon/hbase/hbase.png
copy to dashboardv2/public/img/entity-icon/hbase_namespace.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hbase/hbase_table.png b/dashboardv2/public/img/entity-icon/hbase_table.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/hbase/hbase_table.png
rename to dashboardv2/public/img/entity-icon/hbase_table.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/file_system/file_system.png b/dashboardv2/public/img/entity-icon/hdfs_path.png
similarity index 100%
copy from dashboardv2/public/img/entity-icon/file_system/file_system.png
copy to dashboardv2/public/img/entity-icon/hdfs_path.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hive/hive.png b/dashboardv2/public/img/entity-icon/hive.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/hive/hive.png
rename to dashboardv2/public/img/entity-icon/hive.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hive/hive_column.png b/dashboardv2/public/img/entity-icon/hive_column.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/hive/hive_column.png
rename to dashboardv2/public/img/entity-icon/hive_column.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hive/hive_column_lineage.png b/dashboardv2/public/img/entity-icon/hive_column_lineage.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/hive/hive_column_lineage.png
rename to dashboardv2/public/img/entity-icon/hive_column_lineage.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hive/hive_db.png b/dashboardv2/public/img/entity-icon/hive_db.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/hive/hive_db.png
rename to dashboardv2/public/img/entity-icon/hive_db.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hive/hive_process.png b/dashboardv2/public/img/entity-icon/hive_process.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/hive/hive_process.png
rename to dashboardv2/public/img/entity-icon/hive_process.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hive/hive_storagedesc.png b/dashboardv2/public/img/entity-icon/hive_storagedesc.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/hive/hive_storagedesc.png
rename to dashboardv2/public/img/entity-icon/hive_storagedesc.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/hive/hive_table.png b/dashboardv2/public/img/entity-icon/hive_table.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/hive/hive_table.png
rename to dashboardv2/public/img/entity-icon/hive_table.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/kafka/jms_topic.png b/dashboardv2/public/img/entity-icon/jms_topic.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/kafka/jms_topic.png
rename to dashboardv2/public/img/entity-icon/jms_topic.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/kafka/kafka.png b/dashboardv2/public/img/entity-icon/kafka.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/kafka/kafka.png
rename to dashboardv2/public/img/entity-icon/kafka.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/kafka/kafka.png b/dashboardv2/public/img/entity-icon/kafka_topic.png
similarity index 100%
copy from dashboardv2/public/img/entity-icon/kafka/kafka.png
copy to dashboardv2/public/img/entity-icon/kafka_topic.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/default/process.png b/dashboardv2/public/img/entity-icon/process.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/default/process.png
rename to dashboardv2/public/img/entity-icon/process.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/rdbms/rdbms.png b/dashboardv2/public/img/entity-icon/rdbms.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/rdbms/rdbms.png
rename to dashboardv2/public/img/entity-icon/rdbms.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/rdbms/rdbms_column.png b/dashboardv2/public/img/entity-icon/rdbms_column.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/rdbms/rdbms_column.png
rename to dashboardv2/public/img/entity-icon/rdbms_column.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/rdbms/rdbms_db.png b/dashboardv2/public/img/entity-icon/rdbms_db.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/rdbms/rdbms_db.png
rename to dashboardv2/public/img/entity-icon/rdbms_db.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/rdbms/rdbms_table.png b/dashboardv2/public/img/entity-icon/rdbms_table.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/rdbms/rdbms_table.png
rename to dashboardv2/public/img/entity-icon/rdbms_table.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/spark/spark.png b/dashboardv2/public/img/entity-icon/spark/spark.png
deleted file mode 100644
index daaa56c..0000000
--- a/dashboardv2/public/img/entity-icon/spark/spark.png
+++ /dev/null
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/sqoop/sqoop.png b/dashboardv2/public/img/entity-icon/sqoop.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/sqoop/sqoop.png
rename to dashboardv2/public/img/entity-icon/sqoop.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/sqoop/sqoop_db.png b/dashboardv2/public/img/entity-icon/sqoop_db.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/sqoop/sqoop_db.png
rename to dashboardv2/public/img/entity-icon/sqoop_db.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/sqoop/sqoop_process.png b/dashboardv2/public/img/entity-icon/sqoop_process.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/sqoop/sqoop_process.png
rename to dashboardv2/public/img/entity-icon/sqoop_process.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/storm/storm.png b/dashboardv2/public/img/entity-icon/storm.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/storm/storm.png
rename to dashboardv2/public/img/entity-icon/storm.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/storm/storm_bolt.png b/dashboardv2/public/img/entity-icon/storm_bolt.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/storm/storm_bolt.png
rename to dashboardv2/public/img/entity-icon/storm_bolt.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/storm/storm_spout.png b/dashboardv2/public/img/entity-icon/storm_spout.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/storm/storm_spout.png
rename to dashboardv2/public/img/entity-icon/storm_spout.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/storm/storm_topology.png b/dashboardv2/public/img/entity-icon/storm_topology.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/storm/storm_topology.png
rename to dashboardv2/public/img/entity-icon/storm_topology.png
Binary files differ
diff --git a/dashboardv2/public/img/entity-icon/default/table.png b/dashboardv2/public/img/entity-icon/table.png
similarity index 100%
rename from dashboardv2/public/img/entity-icon/default/table.png
rename to dashboardv2/public/img/entity-icon/table.png
Binary files differ
diff --git a/dashboardv2/public/js/utils/Utils.js b/dashboardv2/public/js/utils/Utils.js
index 6ebfe94..24c1dc6 100644
--- a/dashboardv2/public/js/utils/Utils.js
+++ b/dashboardv2/public/js/utils/Utils.js
@@ -77,46 +77,53 @@
return url.replace(/\/[\w-]+.(jsp|html)|\/+$/ig, '');
};
Utils.getEntityIconPath = function(options) {
- var entityData = null,
- serviceType = null,
- status = null,
+ var entityData = options && options.entityData,
+ serviceType,
+ status,
+ typeName,
iconBasePath = Utils.getBaseUrl(window.location.pathname) + Globals.entityImgPath;
- if (options) {
- entityData = options.entityData;
+ if (entityData) {
+ typeName = entityData.typeName;
serviceType = entityData && entityData.serviceType;
status = entityData && entityData.status;
}
- if (entityData) {
- if (options.errorUrl) {
- var isErrorInDefaultServiceType = (serviceType && options.errorUrl && options.errorUrl.match("/" + serviceType + "/" + serviceType + ".png|/" + serviceType + "/disabled/" + serviceType + ".png") ? true : false);
- if (serviceType && !isErrorInDefaultServiceType) {
- var imageName = serviceType + ".png";
- return iconBasePath + serviceType + (Enums.entityStateReadOnly[status] ? "/disabled/" + imageName : "/" + imageName);
+ function getImgPath(imageName) {
+ return iconBasePath + (Enums.entityStateReadOnly[status] ? "disabled/" + imageName : imageName);
+ }
+
+ function getDefaultImgPath() {
+ if (entityData.isProcess) {
+ if (Enums.entityStateReadOnly[status]) {
+ return iconBasePath + 'disabled/process.png';
} else {
- if (entityData.isProcess) {
- if (Enums.entityStateReadOnly[status]) {
- return iconBasePath + 'default/disabled/process.png';
- } else {
- return iconBasePath + 'default/process.png';
- }
- } else {
- if (Enums.entityStateReadOnly[status]) {
- return iconBasePath + 'default/disabled/table.png';
- } else {
- return iconBasePath + 'default/table.png';
- }
- }
+ return iconBasePath + 'process.png';
}
} else {
- var imageName = entityData.typeName + ".png";
- if (serviceType) {
- return iconBasePath + serviceType + (Enums.entityStateReadOnly[status] ? "/disabled/" + imageName : "/" + imageName);
+ if (Enums.entityStateReadOnly[status]) {
+ return iconBasePath + 'disabled/table.png';
} else {
- return iconBasePath + (Enums.entityStateReadOnly[status] ? "default/disabled/" + imageName : "default/" + imageName);
+ return iconBasePath + 'table.png';
}
}
}
+
+ if (entityData) {
+ if (options.errorUrl) {
+ var isErrorInTypeName = (options.errorUrl && options.errorUrl.match("entity-icon/" + typeName + ".png|disabled/" + typeName + ".png") ? true : false);
+ if (serviceType && isErrorInTypeName) {
+ var imageName = serviceType + ".png";
+ return getImgPath(imageName);
+ } else {
+ return getDefaultImgPath();
+ }
+ } else if (entityData.typeName) {
+ var imageName = entityData.typeName + ".png";
+ return getImgPath(imageName);
+ } else {
+ return getDefaultImgPath();
+ }
+ }
}
pnotify.prototype.options.styling = "fontawesome";
diff --git a/dashboardv2/public/js/views/detail_page/DetailPageLayoutView.js b/dashboardv2/public/js/views/detail_page/DetailPageLayoutView.js
index 46d427b..96679fe 100644
--- a/dashboardv2/public/js/views/detail_page/DetailPageLayoutView.js
+++ b/dashboardv2/public/js/views/detail_page/DetailPageLayoutView.js
@@ -135,6 +135,18 @@
// MergerRefEntity.
Utils.findAndMergeRefEntity(collectionJSON.attributes, this.entityObject.referredEntities);
+ // check if entity is process
+ var isProcess = false,
+ superTypes = Utils.getNestedSuperTypes({ data: this.activeEntityDef.toJSON(), collection: this.entityDefCollection }),
+ isLineageRender = _.find(superTypes, function(type) {
+ if (type === "DataSet" || type === "Process") {
+ if (type === "Process") {
+ isProcess = true;
+ }
+ return true;
+ }
+ });
+
if (collectionJSON && collectionJSON.guid) {
var tagGuid = collectionJSON.guid;
this.readOnly = Enums.entityStateReadOnly[collectionJSON.status];
@@ -163,7 +175,7 @@
titleName += '<button title="Deleted" class="btn btn-action btn-md deleteBtn"><i class="fa fa-trash"></i> Deleted</button>';
}
this.ui.title.html(titleName);
- var entityData = _.extend({ serviceType: this.activeEntityDef && this.activeEntityDef.get('serviceType') }, collectionJSON);
+ var entityData = _.extend({ "serviceType": this.activeEntityDef && this.activeEntityDef.get('serviceType'), "isProcess": isProcess }, collectionJSON);
if (this.readOnly) {
this.ui.entityIcon.addClass('disabled');
} else {
@@ -261,22 +273,10 @@
});
}
-
- var processCheck = false,
- containsList = Utils.getNestedSuperTypes({ data: this.activeEntityDef.toJSON(), collection: this.entityDefCollection }),
- superType = _.find(containsList, function(type) {
- if (type === "DataSet" || type === "Process") {
- if (type === "Process") {
- processCheck = true;
- }
- return true;
- }
- });
-
- if (superType) {
+ if (isLineageRender) {
this.$('.lineageGraph').show();
this.renderLineageLayoutView({
- processCheck: processCheck,
+ processCheck: isProcess,
guid: this.id,
entityDefCollection: this.entityDefCollection,
fetchCollection: this.fetchCollection.bind(this),