Skip to content

Commit 62201e6

Browse files
author
ci bot
committed
Merge branch 'qa-fixes' into 'enterprise'
QA fixes + docs changes See merge request dkinternal/testgen/dataops-testgen!449
2 parents 7a1333e + 71c974d commit 62201e6

5 files changed

Lines changed: 17 additions & 15 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ dependencies = [
7878
# MCP server
7979
"mcp[cli]==1.26.0",
8080
"uvicorn==0.41.0",
81-
"PyJWT==2.11.0",
81+
"PyJWT==2.12.0",
8282
"bcrypt==5.0.0",
8383

8484
# API & OAuth server

testgen/ui/components/frontend/js/components/tree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @property {number?} iconSize
99
* @property {string?} iconClass
1010
* @property {string?} iconTooltip
11-
* @property {Element?} prefix
11+
* @property {Element|function?} prefix
1212
* @property {TreeNode[]?} children
1313
* @property {number?} level
1414
* @property {boolean?} expanded

testgen/ui/components/frontend/js/pages/data_catalog.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -118,24 +118,26 @@ const DataCatalog = (/** @type Properties */ props) => {
118118
};
119119
TAG_KEYS.forEach(key => tables[table_id][key] = item[`table_${key}`]);
120120
}
121-
const prefixIcons = [];
122-
if (item.critical_data_element ?? item.table_critical_data_element) {
123-
prefixIcons.push(withTooltip(Icon({ size: 15, classes: 'text-purple' }, 'star'), { text: 'Critical data element', position: 'right' }));
124-
}
125-
if (item.excluded_data_element) {
126-
prefixIcons.push(withTooltip(Icon({ size: 15, classes: 'text-brown' }, 'visibility_off'), { text: 'Excluded data element', position: 'right' }));
127-
}
128-
if (item.pii_flag) {
129-
prefixIcons.push(withTooltip(Icon({ size: 15, classes: 'text-orange' }, 'shield_person'), { text: 'PII data', position: 'right' }));
130-
}
131121
const columnNode = {
132122
id: column_id,
133123
label: column_name,
134124
classes: `column ${drop_date ? 'text-disabled' : (add_date && (Date.now() - new Date(add_date * 1000).getTime()) < 7 * 86400000) ? 'text-bold' : ''}`,
135125
...getColumnIcon(item),
136126
iconClass: value_ct === 0 ? 'text-error' : null,
137127
iconTooltip: value_ct === 0 ? 'No non-null values detected' : null,
138-
prefix: span({ class: 'tg-dh--column-prefix' }, ...prefixIcons),
128+
prefix: () => {
129+
const icons = [];
130+
if (item.critical_data_element ?? item.table_critical_data_element) {
131+
icons.push(withTooltip(Icon({ size: 15, classes: 'text-purple' }, 'star'), { text: 'Critical data element', position: 'right' }));
132+
}
133+
if (item.excluded_data_element) {
134+
icons.push(withTooltip(Icon({ size: 15, classes: 'text-brown' }, 'visibility_off'), { text: 'Excluded data element', position: 'right' }));
135+
}
136+
if (item.pii_flag) {
137+
icons.push(withTooltip(Icon({ size: 15, classes: 'text-orange' }, 'shield_person'), { text: 'PII data', position: 'right' }));
138+
}
139+
return span({ class: 'tg-dh--column-prefix' }, ...icons);
140+
},
139141
criticalDataElement: !!(item.critical_data_element ?? item.table_critical_data_element),
140142
excludedDataElement: !!item.excluded_data_element,
141143
piiFlag: !!item.pii_flag,

testgen/ui/components/frontend/js/pages/profiling_runs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import { Link } from '../components/link.js';
4848
import { Button } from '../components/button.js';
4949
import { Streamlit } from '../streamlit.js';
5050
import { emitEvent, getValue, loadStylesheet, resizeFrameHeightToElement, resizeFrameHeightOnDOMChange } from '../utils.js';
51-
import { formatTimestamp, formatDuration, formatNumber } from '../display_utils.js';
51+
import { formatTimestamp, formatDuration, formatNumber, DISABLED_ACTION_TEXT } from '../display_utils.js';
5252
import { Checkbox } from '../components/checkbox.js';
5353
import { Select } from '../components/select.js';
5454
import { Paginator } from '../components/paginator.js';

testgen/ui/components/frontend/js/pages/test_runs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import { Link } from '../components/link.js';
4747
import { Button } from '../components/button.js';
4848
import { Streamlit } from '../streamlit.js';
4949
import { emitEvent, getValue, loadStylesheet, resizeFrameHeightToElement, resizeFrameHeightOnDOMChange } from '../utils.js';
50-
import { formatTimestamp, formatDuration } from '../display_utils.js';
50+
import { formatTimestamp, formatDuration, DISABLED_ACTION_TEXT } from '../display_utils.js';
5151
import { Checkbox } from '../components/checkbox.js';
5252
import { Select } from '../components/select.js';
5353
import { Paginator } from '../components/paginator.js';

0 commit comments

Comments
 (0)