Skip to content

Commit 59b4a93

Browse files
Merge pull request #44 from DataKitchen/release/4.12.6
Release/4.12.6
2 parents 6914e4f + 44a23a0 commit 59b4a93

142 files changed

Lines changed: 5016 additions & 2857 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

deploy/charts/testgen-app/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 1.0.0
18+
version: 1.0.1
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

deploy/charts/testgen-app/templates/_environment.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
value: {{ .Values.testgen.trustTargetDatabaseCertificate | ternary "yes" "no" | quote }}
3232
- name: TG_EXPORT_TO_OBSERVABILITY_VERIFY_SSL
3333
value: {{ .Values.testgen.observabilityVerifySsl | ternary "yes" "no" | quote }}
34-
- name: TG_DOCKER_RELEASE_CHECK_ENABLED
35-
value: {{ .Values.testgen.releaseCheck | ternary "yes" "no" | quote }}
3634
{{- end -}}
3735

3836
{{- define "testgen.hookEnvironment" -}}

deploy/charts/testgen-app/values.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ testgen:
1515
uiPassword:
1616
trustTargetDatabaseCertificate: false
1717
observabilityVerifySsl: true
18-
releaseCheck: true
1918
labels:
2019

2120
cliHooks:

deploy/docker-bake.hcl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@ variable "TESTGEN_VERSION" {}
44
variable "TESTGEN_DOCKER_HUB_REPO" {
55
default = "datakitchen/dataops-testgen"
66
}
7+
variable "TESTGEN_SUPPORT_EMAIL" {
8+
default = "[email protected]"
9+
}
710

811
target "testgen-release" {
912
args = {
1013
TESTGEN_VERSION = "${TESTGEN_VERSION}"
1114
TESTGEN_BASE_LABEL = "${TESTGEN_BASE_LABEL}"
1215
TESTGEN_DOCKER_HUB_REPO = "${TESTGEN_DOCKER_HUB_REPO}"
16+
TESTGEN_SUPPORT_EMAIL = "${TESTGEN_SUPPORT_EMAIL}"
1317
}
1418
context = "."
1519
dockerfile = "deploy/testgen.dockerfile"
@@ -31,6 +35,7 @@ target "testgen-qa" {
3135
TESTGEN_VERSION = "${TESTGEN_VERSION}"
3236
TESTGEN_BASE_LABEL = "${TESTGEN_BASE_LABEL}"
3337
TESTGEN_DOCKER_HUB_REPO = "${TESTGEN_DOCKER_HUB_REPO}"
38+
TESTGEN_SUPPORT_EMAIL = "${TESTGEN_SUPPORT_EMAIL}"
3439
}
3540
context = "."
3641
dockerfile = "deploy/testgen.dockerfile"

deploy/testgen.dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
ARG TESTGEN_BASE_LABEL=v6
1+
ARG TESTGEN_BASE_LABEL=v7
22

33
FROM datakitchen/dataops-testgen-base:${TESTGEN_BASE_LABEL} AS release-image
44

55
# Args have to be set in current build stage: https://github.com/moby/moby/issues/37345
66
ARG TESTGEN_VERSION
77
ARG TESTGEN_DOCKER_HUB_REPO
8+
ARG TESTGEN_SUPPORT_EMAIL
89

910
ENV PYTHONPATH=/dk/lib/python3.12/site-packages
1011
ENV PATH=$PATH:/dk/bin
@@ -24,6 +25,7 @@ RUN chown -R testgen:testgen /var/lib/testgen /dk/lib/python3.12/site-packages/s
2425

2526
ENV TESTGEN_VERSION=${TESTGEN_VERSION}
2627
ENV TESTGEN_DOCKER_HUB_REPO=${TESTGEN_DOCKER_HUB_REPO}
28+
ENV TESTGEN_SUPPORT_EMAIL=${TESTGEN_SUPPORT_EMAIL}
2729
ENV TG_RELEASE_CHECK=docker
2830

2931
USER testgen

docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ x-common-variables: &common-variables
99
TG_METADATA_DB_HOST: postgres
1010
TG_TARGET_DB_TRUST_SERVER_CERTIFICATE: yes
1111
TG_EXPORT_TO_OBSERVABILITY_VERIFY_SSL: no
12-
TG_DOCKER_RELEASE_CHECK_ENABLED: yes
1312

1413

1514
services:

docs/configuration.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,3 @@ default: `dataset`
282282

283283
When exporting to your instance of Observabilty, the key sent to the events API to identify the components.
284284
default: `default`
285-
286-
#### `TG_DOCKER_RELEASE_CHECK_ENABLED`
287-
288-
Enables calling Docker Hub API to fetch the latest released image tag. The fetched tag is displayed in the UI menu.
289-
290-
default: `yes`

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"
88

99
[project]
1010
name = "dataops-testgen"
11-
version = "4.1.3"
11+
version = "4.12.6"
1212
description = "DataKitchen's Data Quality DataOps TestGen"
1313
authors = [
1414
{ "name" = "DataKitchen, Inc.", "email" = "[email protected]" },
@@ -40,7 +40,7 @@ dependencies = [
4040
"requests_extensions==1.1.3",
4141
"numpy==1.26.4",
4242
"pandas==2.1.4",
43-
"streamlit==1.44.1",
43+
"streamlit==1.46.1",
4444
"streamlit-extras==0.3.0",
4545
"streamlit-aggrid==0.3.4.post3",
4646
"plotly_express==0.4.1",
@@ -61,7 +61,6 @@ dependencies = [
6161

6262
# Pinned to match the manually compiled libs or for security
6363
"pyarrow==18.1.0",
64-
"snowflake-connector-python==3.13.1",
6564
"matplotlib==3.9.2",
6665
"scipy==1.14.1",
6766
"jinja2==3.1.6",

testgen/__main__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
LOG = logging.getLogger("testgen")
4949

5050
APP_MODULES = ["ui", "scheduler"]
51+
VERSION_DATA = version_service.get_version()
5152

5253

5354
@dataclass
@@ -69,7 +70,13 @@ def invoke(self, ctx: Context):
6970

7071
@click.group(
7172
cls=CliGroup,
72-
help=f"This version: {settings.VERSION} \n\nLatest version: {version_service.get_latest_version()} \n\nSchema revision: {get_schema_revision()}"
73+
help=f"""
74+
{VERSION_DATA.edition} {VERSION_DATA.current or ""}
75+
76+
{f"New version available! {VERSION_DATA.latest}" if VERSION_DATA.latest != VERSION_DATA.current else ""}
77+
78+
Schema revision: {get_schema_revision()}
79+
"""
7380
)
7481
@click.option(
7582
"-v",

testgen/commands/queries/execute_tests_query.py

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,30 @@ def __init__(self, strProjectCode, strFlavor, strTestSuiteId, strTestSuite, minu
2929

3030
def _AssembleDisplayParameters(self):
3131

32-
lst_parms = ["column_name", "skip_errors", "baseline_ct", "baseline_unique_ct", "baseline_value",
33-
"baseline_value_ct", "baseline_sum", "baseline_avg", "baseline_sd", "subset_condition",
34-
"groupby_names", "having_condition", "window_date_column", "window_days",
35-
"match_column_names", "match_subset_condition", "match_schema_name", "match_table_name",
36-
"match_groupby_names", "match_having_condition",
37-
]
32+
lst_parms = [
33+
"column_name",
34+
"skip_errors",
35+
"baseline_ct",
36+
"baseline_unique_ct",
37+
"baseline_value",
38+
"baseline_value_ct",
39+
"baseline_sum",
40+
"baseline_avg",
41+
"baseline_sd",
42+
"lower_tolerance",
43+
"upper_tolerance",
44+
"subset_condition",
45+
"groupby_names",
46+
"having_condition",
47+
"window_date_column",
48+
"window_days",
49+
"match_column_names",
50+
"match_subset_condition",
51+
"match_schema_name",
52+
"match_table_name",
53+
"match_groupby_names",
54+
"match_having_condition",
55+
]
3856
str_parms = "; ".join(f"{key}={self.dctTestParms[key]}"
3957
for key in lst_parms
4058
if key.lower() in self.dctTestParms and self.dctTestParms[key] not in [None, ""])
@@ -107,11 +125,6 @@ def GetTestsNonCAT(self, booClean):
107125

108126
return strQ
109127

110-
def AddTestRecordtoTestRunTable(self):
111-
strQ = self._ReplaceParms(read_template_sql_file("ex_write_test_record_to_testrun_table.sql", "execution"))
112-
113-
return strQ
114-
115128
def PushTestRunStatusUpdateSQL(self):
116129
# Runs on DK DB
117130
strQ = self._ReplaceParms(read_template_sql_file("ex_update_test_record_in_testrun_table.sql", "execution"))

0 commit comments

Comments
 (0)