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

Add DashboardLeafNodeImpl and NodeAndEdgeProviderImpl #586

Open
wants to merge 7 commits into
base: tp
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
expected
  • Loading branch information
kaidaguerre committed Nov 29, 2024
commit e4b33d15fa074f6fa9fb09082ddd72e111f902a9
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[
{
"auto_generated": false,
"categories": {},
"edge_names": [
"introspection_table_mod.edge.sample_edge_1"
],
"edges": [
{
"auto_generated": false,
"end_line_number": 82,
"is_anonymous": false,
"mod_name": "introspection_table_mod",
"qualified_name": "introspection_table_mod.edge.sample_edge_1",
"resource_name": "sample_edge_1",
"source_definition": " edge \"sample_edge_1\" {\n sql = <<-EOQ\n select 1 as edge\n EOQ\n }",
"sql": "select 1 as edge\n",
"start_line_number": 78
}
],
"end_line_number": 83,
"is_anonymous": false,
"mod_name": "introspection_table_mod",
"node_names": [
"introspection_table_mod.node.sample_node_1"
],
"nodes": [
{
"auto_generated": false,
"end_line_number": 77,
"is_anonymous": false,
"mod_name": "introspection_table_mod",
"qualified_name": "introspection_table_mod.node.sample_node_1",
"resource_name": "sample_node_1",
"source_definition": " node \"sample_node_1\" {\n sql = <<-EOQ\n select 1 as node\n EOQ\n }",
"sql": "select 1 as node\n",
"start_line_number": 73
}
],
"qualified_name": "introspection_table_mod.flow.sample_flow_1",
"resource_name": "sample_flow_1",
"source_definition": " flow \"sample_flow_1\" {\n title = \"Sample flow 1\"\n width = 3\n\n node \"sample_node_1\" {\n sql = <<-EOQ\n select 1 as node\n EOQ\n }\n edge \"sample_edge_1\" {\n sql = <<-EOQ\n select 1 as edge\n EOQ\n }\n }",
"start_line_number": 69,
"title": "Sample flow 1",
"width": 3
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[
{
"edge_names": [
"introspection_table_mod.edge.sample_edge_2"
],
"node_names": [
"introspection_table_mod.node.sample_node_2"
],
"auto_generated": false,
"edges": [
{
"auto_generated": false,
"end_line_number": 98,
"is_anonymous": false,
"mod_name": "introspection_table_mod",
"qualified_name": "introspection_table_mod.edge.sample_edge_2",
"resource_name": "sample_edge_2",
"source_definition": " edge \"sample_edge_2\" {\n sql = <<-EOQ\n select 1 as edge\n EOQ\n }",
"sql": "select 1 as edge\n",
"start_line_number": 94
}
],
"end_line_number": 99,
"is_anonymous": false,
"mod_name": "introspection_table_mod",
"nodes": [
{
"auto_generated": false,
"end_line_number": 93,
"is_anonymous": false,
"mod_name": "introspection_table_mod",
"qualified_name": "introspection_table_mod.node.sample_node_2",
"resource_name": "sample_node_2",
"source_definition": " node \"sample_node_2\" {\n sql = <<-EOQ\n select 1 as node\n EOQ\n }",
"sql": "select 1 as node\n",
"start_line_number": 89
}
],
"qualified_name": "introspection_table_mod.graph.sample_graph_1",
"resource_name": "sample_graph_1",
"source_definition": " graph \"sample_graph_1\" {\n title = \"Sample graph 1\"\n width = 5\n\n node \"sample_node_2\" {\n sql = <<-EOQ\n select 1 as node\n EOQ\n }\n edge \"sample_edge_2\" {\n sql = <<-EOQ\n select 1 as edge\n EOQ\n }\n }",
"start_line_number": 85,
"title": "Sample graph 1",
"width": 5
}
]
2 changes: 1 addition & 1 deletion tests/acceptance/test_files/resource_show_outputs.bats
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ load "$LIB_BATS_SUPPORT/load.bash"
# removing the 14th, 25th and 32nd lines, since they contains information which would differ in github runners
if [[ "$OSTYPE" == "darwin"* ]]; then
# For macOS, adding a backup extension (.bak) and then removing it to mimic in-place editing without a backup
run sed -i ".bak" -e "14d;25d;32d" output.json && rm output.json.bak
run sed -i ".bak" -e "12d;23d;33d" output.json && rm output.json.bak
else
# For Linux, using in-place editing without a backup file directly
run sed -i -e "14d;25d;32d" output.json
Expand Down
Loading