Skip to content

Commit

Permalink
Only show first order dependencies in lineage graph
Browse files Browse the repository at this point in the history
  • Loading branch information
jochemvandooren committed Oct 14, 2024
1 parent c2e5ab6 commit f557a0c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/app/services/graph.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ angular

if (node_name) {
selected_spec.include = "+" + node_name + "+";
selected_spec.hops = 1;
selected_spec.exclude = "";
} else {
selected_spec.include = "";
Expand Down
12 changes: 6 additions & 6 deletions src/app/services/node_selection_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,17 @@ angular
service.resetSelection = function(node) {
var include_selection;
if (node && _.includes(['model', 'seed', 'snapshot'], node.resource_type)) {
include_selection = '+' + node.name + '+';
include_selection = '1+' + node.name + '+1';
} else if (node && node.resource_type == 'source') {
include_selection = '+source:' + node.source_name + "." + node.name + '+';
include_selection = '1+source:' + node.source_name + "." + node.name + '+1';
} else if (node && node.resource_type == 'exposure') {
include_selection = '+exposure:' + node.name;
include_selection = '1+exposure:' + node.name;
} else if (node && node.resource_type == 'metric') {
include_selection = '+metric:' + node.name;
include_selection = '1+metric:' + node.name;
} else if (node && node.resource_type == 'semantic_model') {
include_selection = '+semantic_model:' + node.name;
include_selection = '1+semantic_model:' + node.name;
} else if (node && _.includes(['analysis', 'test'], node.resource_type)) {
include_selection = '+' + node.name;
include_selection = '1+' + node.name;
} else {
include_selection = "";
}
Expand Down

0 comments on commit f557a0c

Please sign in to comment.