From 1761f7f38140a247afdaf6e4e1eae51d4ca80ff5 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Mon, 7 Aug 2023 15:24:16 -0500 Subject: [PATCH] add semantic models --- src/app/components/graph/graph-launcher.js | 4 ++ src/app/components/model_tree/model_tree.html | 11 +++ src/app/components/references/index.js | 10 +-- src/app/components/search/search.js | 2 + src/app/docs/index.js | 1 + src/app/docs/metric.js | 6 +- src/app/docs/semantic_model.html | 71 +++++++++++++++++++ src/app/docs/semantic_model.js | 46 ++++++++++++ src/app/graph/index.js | 2 + src/app/index.routes.js | 9 +++ src/app/main/index.js | 1 + src/app/services/code_service.js | 2 +- src/app/services/graph.service.js | 13 +++- src/app/services/node_selection_service.js | 9 ++- src/app/services/project_service.js | 56 ++++++++++++++- src/app/services/selector_matcher.js | 26 ++++++- src/app/services/selector_methods.test.js | 15 ++++ 17 files changed, 266 insertions(+), 18 deletions(-) create mode 100644 src/app/docs/semantic_model.html create mode 100644 src/app/docs/semantic_model.js diff --git a/src/app/components/graph/graph-launcher.js b/src/app/components/graph/graph-launcher.js index 5ef43c6f0..8545f7dd3 100644 --- a/src/app/components/graph/graph-launcher.js +++ b/src/app/components/graph/graph-launcher.js @@ -155,6 +155,8 @@ angular var nodes = graph.showFullGraph('exposure:' + node.name); } else if (node && node.resource_type == 'metric') { var nodes = graph.showFullGraph('metric:' + node.name); + } else if (node && node.resource_type == 'semantic_model') { + var nodes = graph.showFullGraph('semantic_model:' + node.name); } else { var nodes = graph.showFullGraph(node_name); } @@ -170,6 +172,8 @@ angular var nodes = graph.showVerticalGraph('exposure:' + node.name, true); } else if (node && node.resource_type == 'metric') { var nodes = graph.showVerticalGraph('metric:' + node.name, true); + } else if (node && node.resource_type == 'semantic_model') { + var nodes = graph.showVerticalGraph('semantic_model:' + node.name, true); } else { var nodes = graph.showVerticalGraph(node.name, true); } diff --git a/src/app/components/model_tree/model_tree.html b/src/app/components/model_tree/model_tree.html index 76ab733d1..db7f31e16 100644 --- a/src/app/components/model_tree/model_tree.html +++ b/src/app/components/model_tree/model_tree.html @@ -78,6 +78,17 @@
+ +
+ Semantic Models + +
+
Projects