alpha
Login
or
Join now
lgtm.shop
/
commerce
Star
5
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Pilot atproto-native commerce backend
Star
5
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
commerce
/
crates
/
spaces
/
at
main
1 folder
1 file
Nate Moore
feat(mf-4): route permissioned order writes through one PermissionedStore::put seam
16d ago
f6704d3a
src
feat(mf-4): route permissioned order writes through one PermissionedStore::put seam Widen PgPermissionedStore.put(Order) to project surface, orderType, shippingAmount, and taxAmount into their denormalized columns; use the rkey (UUID) as the row id so getOrder lookup by order UUID continues to work. Refactor persist_order to build the complete record value (with lineItems array) and write it through ctx.store.put rather than a direct INSERT, so every permissioned order write goes through one interface and the full transaction detail is persisted as canonical DAG-CBOR. Resolve the getOrder TODO: line items are now sourced from the canonical record_cbor body when present; falls back to order_item join for legacy rows. payment_ref is applied via a targeted UPDATE after the store.put (transaction metadata, not in the DAG-CBOR body). Worker receipt write remains a direct INSERT: Deps lacks a store reference and receipt_record.order_id/buyer_did are not expressible through the current PermissionedStore interface without invasive changes to the worker pipeline API. New tests: test_put_order_widened_columns (spaces), test_checkout_per- sists_record_cbor_and_widened_columns and test_get_order_returns_line_ items_from_record_body (server). test result: 15 spaces, 92 server, 10 worker — all green.
2 weeks ago
Cargo.toml
feat(spaces): persist canonical DAG-CBOR bytes + real CIDv1 for permissioned records Replace placeholder_cid with lgtm_core::dag_cbor + record_cid across put/get/list for order/address/receipt/fulfillment. Store full canonical record_cbor (+ real cid) so records replay byte-identically at the eventual PDS cutover (SPEC §9). get() falls back to column projection for legacy rows without record_cbor. Migration 0007 adds record_cbor/cid additively.
2 weeks ago