Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show first order parents/children in lineage graph #517

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changes/unreleased/Docs-20240619-121151.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Docs
body: ' Show first order parents/children in lineage graph'
time: 2024-06-19T12:11:51.633757646+02:00
custom:
Author: jvandooren
Issue: "516"
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