learning_ai_common_plat/services/platform-service/src/modules
saravanakumardb1 ca70a05e1d feat(flags): add region, osVersion targeting to feature flags
- Add OsVersionRange interface + Zod schema (platform, minVersion?, maxVersion?)
- Add regions[] and osVersions[] to FeatureFlagDoc, CreateFlagSchema, UpdateFlagSchema
- Add compareVersions() helper for dot-separated semver comparison
- Extend GET /flags/poll with ?region and ?osVersion query params
- Region targeting: flag only returned if client region is in flag's regions list
- OS version targeting: per-platform min/max version range filtering
- Add 10 new tests (schema validation, compareVersions edge cases)
- 634 tests passing, tsc clean
2026-02-17 20:53:48 -08:00
..
audit test(platform-service): add route coverage for items invitations audit 2026-02-16 15:00:13 -08:00
auth feat(platform-service): add profile updates, tokens, and themes modules 2026-02-15 17:29:43 -08:00
blob feat(platform-service): restrict blob SAS/list/info to user scope 2026-02-15 03:31:27 -08:00
comments test(platform-service): add comments route-level tests 2026-02-16 12:43:56 -08:00
flags feat(flags): add region, osVersion targeting to feature flags 2026-02-17 20:53:48 -08:00
invitations test(platform-service): add route coverage for items invitations audit 2026-02-16 15:00:13 -08:00
items test(platform-service): add route coverage for items invitations audit 2026-02-16 15:00:13 -08:00
licenses feat(licenses): add POST /licenses/revoke endpoint 2026-02-15 20:15:10 -08:00
memory test(platform-service): add memory route-level tests 2026-02-16 12:36:27 -08:00
notifications test(platform-service): add route-level tests for plans + notifications — 379 tests, 35.4% stmts 2026-02-16 12:14:42 -08:00
plans test(platform-service): add route-level tests for plans + notifications — 379 tests, 35.4% stmts 2026-02-16 12:14:42 -08:00
products fix(waitlist): harden public endpoints and unsubscribe validation 2026-02-16 23:28:32 -08:00
promos test(platform-service): add promos route-level tests 2026-02-16 12:46:40 -08:00
public test(platform-service): add route tests for settings, votes, and public modules 2026-02-16 12:33:17 -08:00
ratelimit test(platform-service): add repository tests for notifications, plans, subscriptions, usage, tokens, memory + fix extraction-service flaky test 2026-02-16 11:59:06 -08:00
referrals test(platform-service): add referrals route-level tests 2026-02-16 12:38:42 -08:00
settings test(platform-service): add route tests for settings, votes, and public modules 2026-02-16 12:33:17 -08:00
stripe fix(stripe): remove dead syncUserPlan call to deleted backend /api/users/:userId/plan route 2026-02-15 15:40:42 -08:00
subscriptions test(platform-service): add subscriptions route-level tests — 395 tests, 39.6% stmts 2026-02-16 12:17:00 -08:00
telemetry test(telemetry): Phase 3 regression tests — UpdateClusterSchema, ClusterStatusEnum, extractClientIp (614→624 tests) 2026-02-17 11:24:59 -08:00
themes test(platform-service): add repository tests for notifications, plans, subscriptions, usage, tokens, memory + fix extraction-service flaky test 2026-02-16 11:59:06 -08:00
tokens test(platform-service): add tokens route-level tests 2026-02-16 12:41:34 -08:00
usage test(platform-service): add usage route-level tests — 386 tests, 37.9% stmts 2026-02-16 12:15:40 -08:00
votes test(platform-service): add route tests for settings, votes, and public modules 2026-02-16 12:33:17 -08:00
waitlist fix(waitlist): harden public endpoints and unsubscribe validation 2026-02-16 23:28:32 -08:00