learning_ai_common_plat/services/platform-service
saravanakumardb1 dd113b96c9 fix(flags): critical partition key bug + audit snapshot integrity + anonymous rollout
- repository.ts: update() and remove() now require productId as partition key
  (was passing 'id' as both params — works with memory provider but fails on Cosmos DB)
- repository.ts: updateSegment() and removeSegment() also fixed
- routes.ts: all repo.update/remove calls updated to pass productId
- routes.ts: audit 'before' snapshots now use JSON deep copy instead of shallow spread
  (prevents nested object mutation from corrupting audit trail)
- routes.ts: kill switch audit now uses repo.update() return value for 'after' snapshot
- evaluator.ts: anonymous users (no userId) with partial percentage (0 < pct < 100)
  now correctly return 'off' instead of falling through to default variation
  (can't deterministically hash without a userId)
2026-03-21 11:50:08 -07:00
..
scripts feat(platform-service): overhaul module generator with auto-patching 2026-03-19 19:52:06 -07:00
src fix(flags): critical partition key bug + audit snapshot integrity + anonymous rollout 2026-03-21 11:50:08 -07:00
.gitignore feat(services): add platform-service (auth, audit, flags, notifications, blob) 2026-02-12 11:39:00 -08:00
Dockerfile Add Cosmos emulator prototype support 2026-03-14 05:24:01 +00:00
package.json feat(platform-service): declarative YAML module loader (4.4) — 34 tests 2026-03-19 21:16:58 -07:00
POSTAL_SMTP_SETUP.md feat(platform-service): add smtp email delivery and postal setup 2026-03-14 05:52:28 +00:00
tsconfig.json feat(services): add platform-service (auth, audit, flags, notifications, blob) 2026-02-12 11:39:00 -08:00
vitest.config.ts fix(platform-service): pin vitest pool to threads 2026-03-06 13:52:44 -08:00