Adapt Canonical Party to the domain platform; add unit tests
Makes the blog-generated product run on the digital-core domain built from
semprini-data-domain, with the same changes the canonical template received:
- flink/job.sql connects to ods:5432/ods as postgres with ${ODS_PASSWORD},
substituted by data-domain at submission, instead of the blog's credentials
- lakehouse/010_replication.sql uses the platform's `ods` sync group and grants
the lake tables to ducklake_reader and ducklake_writer
- product.yaml sync group, odps.yaml access URLs (domain ports 20000-20003,
management zone Apicurio on 8081), CLI names in comments
Adds tests/: the canonical template's generic unit tests and this product's
expectations.yaml (seed rows, 24 constraint rejections, 5 relationship
traversals, one inbound-to-tombstone round trip).
Verified on digital-core on 2026-09-18: 65 of 65 smoke checks, 100 unit tests
passing, and registered in OpenMetadata under the digital-core domain.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
cfb32d2d1b
commit
dd096ee4dc
18 files changed
+590
-93
No files matched your search
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# This file documents the contract consumers can rely on. It is not loaded anywhere; the live
|
||||
# schema is reflected from the tables and available by introspection:
|
||||
# curl http://localhost:3000/rpc/canonical_party_graphql -H 'Content-Type: application/json' \
|
||||
# curl http://localhost:20000/rpc/canonical_party_graphql -H 'Content-Type: application/json' \
|
||||
# --data '{"query":"{ __type(name: \"Party\") { fields { name } } }"}'
|
||||
#
|
||||
# Naming (inflect_names: true): table party_role -> type PartyRole; column role_status -> roleStatus.
|
||||
@@ -20,7 +20,7 @@ type Party implements Node {
|
||||
partyId: UUID!
|
||||
partyType: String! # discriminator: 'Person' | 'Company'
|
||||
legalName: String!
|
||||
alsoKnownAs: String # semicolon-separated; see template/README.md type mapping
|
||||
alsoKnownAs: String # semicolon-separated; see canonical_data_product/README.md type mapping
|
||||
partyStatus: String # enum:Party Status, enforced by CHECK in the ODS
|
||||
createdAt: Datetime!
|
||||
updatedAt: Datetime!
|
||||
|
||||
Reference in new issue
Block a user