Skip to content

Commit

Permalink
Add hops=1 to initial lineage graph selection
Browse files Browse the repository at this point in the history
  • Loading branch information
jochemvandooren committed Jun 19, 2024
1 parent 5fb3737 commit 21250ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 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 @@ -497,6 +497,7 @@ angular

if (node_name) {
selected_spec.include = "+" + node_name + "+";
selected_spec.hops = 1;
selected_spec.exclude = "";
} else {
selected_spec.include = "";
Expand Down
14 changes: 7 additions & 7 deletions src/app/services/node_selection_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,19 @@ 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 && node.resource_type == 'saved_query') {
include_selection = '+saved_query:' + node.name;
include_selection = '1+saved_query:' + node.name;
} else if (node && _.includes(['analysis', 'test', 'unit_test'], node.resource_type)) {
include_selection = '+' + node.name;
include_selection = '1+' + node.name;
} else {
include_selection = "";
}
Expand Down

0 comments on commit 21250ae

Please sign in to comment.