Skip to content

Commit 0aa1690

Browse files
author
Martha King
committed
for db use non ssrm
1 parent 2edf87d commit 0aa1690

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/gui/src/project-view/components/visualizations/TableVisualization.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ const allRowCount = computed(() =>
156156
typeof props.data === 'object' && 'all_rows_count' in props.data ? props.data.all_rows_count : 0,
157157
)
158158
const isSSRM = computed(() =>
159-
typeof props.data === 'object' && 'is_ssrm' in props.data ? true : false,
159+
typeof props.data === 'object' && 'is_ssrm' in props.data && props.data.is_ssrm
160160
)
161161
const statusBar = computed(() =>
162162
allRowCount.value ?
@@ -165,7 +165,7 @@ const statusBar = computed(() =>
165165
{
166166
statusPanel: TableVizStatusBar,
167167
statusPanelParams: {
168-
total: allRowCount.value,
168+
total: allRowCount.value
169169
},
170170
},
171171
],

distribution/lib/Standard/Visualization/0.0.0-dev/src/Table/Visualization.enso

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ make_json_for_table dataframe max_rows all_rows_count is_db_table =
200200
value_type = ["value_type", columns.map .value_type]
201201
all_rows = ["all_rows_count", all_rows_count]
202202
has_index_col = ["has_index_col", True]
203-
is_ssrm = ["is_ssrm", all_rows_count > max_rows]
203+
is_ssrm = if is_db_table then False else all_rows_count > max_rows
204204
links = ["get_child_node_action", "get_row"]
205205
child_label = ["child_label", "row"]
206206
data = if all_rows_count > max_rows then Nothing else columns.map get_vector
@@ -211,7 +211,7 @@ make_json_for_table dataframe max_rows all_rows_count is_db_table =
211211
number_non_triv = JS_Object.from_pairs [["name", "Count non trivial whitespace" + sampled_label], ["percentage_value", columns.map .count_non_trivial_whitespace]]
212212
JS_Object.from_pairs
213213
[number_nothing, number_untrimmed, number_non_triv]
214-
pairs = [header, value_type, ["data", data], all_rows, has_index_col, links, is_ssrm, ["data_quality_metrics", data_quality_metrics] ,["type", "Table"], child_label]
214+
pairs = [header, value_type, ["data", data], all_rows, has_index_col, links, ["data_quality_metrics", data_quality_metrics] ,["type", "Table"], child_label, ["is_ssrm", is_ssrm]]
215215
JS_Object.from_pairs pairs
216216

217217
## PRIVATE

0 commit comments

Comments
 (0)