Commits
2026-09-22
test: force both orders in delete-vs-write racesAhmet Kaan Gümüş · 1a7d5c3
test: force both orders in delete-vs-write races A barrier start is a coin toss under load. The tests required delete to win a round, so a run where the writer won every overlap panicked even though no orphan was left. Each witness now awaits delete-first and write-first, and a concurrent round that does not sweep is not a failure.
2026-09-14
🗃️ feat: pre-prod schema: person join key, drop school password copyAhmet Kaan Gümüş · 804bd3c
🗃️ feat: pre-prod schema: person join key, drop school password copy app_user no longer stores password_hash (login already verifies control person). School rows carry person uuid + created_at. class_blueprint is uuid-keyed; exam child rows composite-FK to (exam, question); pool/solution images are child tables; graded_at/marked_at/enrollment timestamps added. Left alone: occupancy/refcount counters (cap locks, not lies), ledger source, menu derived id, school.slug PK, fee_plan JSONB.
2026-09-12
🚧 wip: class-pump/meals/homework production fixes + T5 test-port continuationAhmet Kaan Gümüş · 35683acBrowse files
🧪 test: port T4 regress/partial-patch suites to the Postgres harnessAhmet Kaan Gümüş · f553d14
🧪 test: port T4 regress/partial-patch suites to the Postgres harness - fixture SQL → runtime sqlx (kind_ref/slot_ref upserts, settings JSONB, point-row UPDATEs, count/scalar helpers); ULID idioms re-pointed - SurrealDB DEFINE EVENT injections → PG-native: RAISE triggers (roles/ classes/blueprints pending), pg_sleep window trigger (exam delete), lock-queueing probe (attendance), row-snapshot probe (badge awards) - EXTRA: drop DB_KEEPALIVE_INTERVAL_SECS/DB_PING_TIMEOUT_SECS + their /limits EXCLUDED pins; drop stale BOARD_OPEN_GUARD pin (wave-2 leftover) - production fixes pinned by these suites: exam_result grade claim mints an absent kind_ref (absent = in service); field_update run() emitted a double WHERE (every guarded PATCH 500'd); attendance event mark now locks the event row (orphan race); admin floor takes the admin-set row locks (cross-target demotions raced); profile focus sum cast to BIGINT - delete the two appointment store-property tests: their subject was the SurrealDB engine's write-skew; Postgres closes it by constraint - .sqlx refreshed for the changed query macros