Skip to content

Conversation

@m-houston
Copy link
Contributor

@m-houston m-houston commented Oct 15, 2025

Description

Refactor the datastore package to separate out helpers which will be used in event schema package, which will be added in #197

Context

Adds an internal/helpers package to support consistent, type-safe domain modelling and validation.

Several composable Zod schemas are factored out:

  • Environment
  • Version

Utility functions for identified objects with nominal typing for IDs

  • DomainBase
  • IdRef

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@m-houston m-houston requested a review from a team as a code owner October 15, 2025 18:06
@m-houston m-houston force-pushed the feature/CCM-12352-refactor-helpers-and-datastore branch from f918d4a to 4bca3e4 Compare October 15, 2025 20:10
masl2
masl2 previously approved these changes Oct 29, 2025
@masl2 masl2 enabled auto-merge (squash) October 29, 2025 11:06
@masl2 masl2 merged commit e08e48d into main Oct 29, 2025
31 checks passed
@masl2 masl2 deleted the feature/CCM-12352-refactor-helpers-and-datastore branch October 29, 2025 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants