fix(platform-service): register 13 missing MindLyst Cosmos containers
Add containers used by MindLyst web API routes to platform-service cosmos-init so the shared database has a single authoritative registry: share_cards, notification_log, analytics_events, brain_packs, chat_sessions, ab_experiments, waitlist_entries, email_captures, engagement_campaigns, context_triggers, monitoring_reports, nudge_state, triage_retries Note: 'referrals' is intentionally skipped — the growth module already registers it with /id partition key, but MindLyst uses /userId. This partition key mismatch requires a separate data migration to reconcile. All 1141 platform-service tests pass.
This commit is contained in:
parent
ac106ed917
commit
1b2a5d5483
@ -29,11 +29,29 @@ const CONTAINER_DEFS: Record<string, ContainerConfig> = {
|
||||
themes: { partitionKeyPath: '/id' },
|
||||
// Waitlist (pre-launch signups)
|
||||
waitlist: { partitionKeyPath: '/email' },
|
||||
// Mobile capture primitives (MindLyst-style).
|
||||
// MindLyst modules
|
||||
brains: { partitionKeyPath: '/userId' },
|
||||
streaks: { partitionKeyPath: '/userId' },
|
||||
memory_items: { partitionKeyPath: '/userId' },
|
||||
daily_briefs: { partitionKeyPath: '/userId' },
|
||||
reflections: { partitionKeyPath: '/userId' },
|
||||
brain_insights: { partitionKeyPath: '/userId' },
|
||||
share_cards: { partitionKeyPath: '/userId' },
|
||||
notification_log: { partitionKeyPath: '/userId' },
|
||||
analytics_events: { partitionKeyPath: '/userId' },
|
||||
brain_packs: { partitionKeyPath: '/userId' },
|
||||
chat_sessions: { partitionKeyPath: '/userId' },
|
||||
ab_experiments: { partitionKeyPath: '/id' },
|
||||
waitlist_entries: { partitionKeyPath: '/id' },
|
||||
email_captures: { partitionKeyPath: '/userId' },
|
||||
engagement_campaigns: { partitionKeyPath: '/id' },
|
||||
context_triggers: { partitionKeyPath: '/userId' },
|
||||
monitoring_reports: { partitionKeyPath: '/type' },
|
||||
nudge_state: { partitionKeyPath: '/userId' },
|
||||
triage_retries: { partitionKeyPath: '/userId' },
|
||||
// NOTE: MindLyst also uses 'referrals' with /userId partition key, but
|
||||
// the growth module already registers it with /id. This mismatch needs
|
||||
// a separate migration to reconcile.
|
||||
// NomGap fasting modules
|
||||
fasting_sessions: { partitionKeyPath: '/userId' },
|
||||
fasting_protocols: { partitionKeyPath: '/userId' },
|
||||
|
||||
Loading…
Reference in New Issue
Block a user