Files
semprini-domain-cdp-digital…/canonical-party/graphql/smoke.graphql
T
paulandClaude Opus 5 dd096ee4dc 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>
2026-09-18 00:14:36 +12:00

115 lines
2.2 KiB
GraphQL

# Run by `data-domain test` against POST /rpc/canonical_party_graphql.
# It must return a `data` object and no `errors`; it does not need to return rows. The
# relationship traversals exercise the field names documented in schema.graphql.
query CanonicalPartySmoke {
partyCollection(first: 5) {
edges {
node {
partyId
partyType
legalName
partyStatus
createdAt
updatedAt
person { preferredName }
company { legalStructure }
}
}
}
addressCollection(first: 5) {
edges {
node {
addressId
addressType
city
country
createdAt
updatedAt
}
}
}
personCollection(first: 5) {
edges {
node {
personId
preferredName
createdAt
updatedAt
party { legalName }
}
}
}
companyCollection(first: 5) {
edges {
node {
companyId
companyRegistrationNumber
createdAt
updatedAt
party { legalName }
}
}
}
partyRoleCollection(first: 5) {
edges {
node {
partyRoleId
partyRoleType
roleStatus
createdAt
updatedAt
party { legalName }
customer { customerNumber }
}
}
}
customerCollection(first: 5) {
edges {
node {
customerId
customerNumber
createdAt
updatedAt
partyRole { roleStatus }
}
}
}
contactAddressCollection(first: 5) {
edges {
node {
contactAddressId
addressPurpose
isPrimary
createdAt
updatedAt
party { legalName }
address { city }
}
}
}
partyRoleContactAddressCollection(first: 5) {
edges {
node {
partyRoleContactAddressId
createdAt
updatedAt
partyRole { partyRoleType }
contactAddress { addressPurpose }
}
}
}
partyAssociationCollection(first: 5) {
edges {
node {
partyAssociationId
associationType
verified
createdAt
updatedAt
sourceParty { legalName }
targetParty { legalName }
}
}
}
}