Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a small account-scoped NestJS shipment API using TypeORM and ClickHouse Managed Postgres. Expected revisions and account-wide retained request IDs coordinate lifecycle transitions: state and immutable event commit together, matching retries return the original event after later transitions, and conflicting requests return 409. Shipment creation remains a seed/admin operation.
ClickPipes replicates only accepted events to analytical ClickHouse. The read-only official Node client reports bounded daily transition/delivery aggregates using typed parameters, FINAL/tombstone reconciliation and string-valued 64-bit results. Operational transitions remain available when analytics lags or reporting access fails.
Validation: fresh native Linux npm install, typecheck/build and four unit controls; real Cloud migrations/reversal/repeatable seed; simultaneous revision race and ten matching requests; ownership/input/body/pagination checks; forced event-insert rollback; genuine process restart; restricted roles and verified/negative TLS; snapshot/CDC, pause/resume, analytical outage/recovery, keyed tombstone/restoration and exact per-account report equality. Private evidence and the companion article remain outside this PR. Resources are temporary and cleaned after independent review; no Cloud credentials in CI.