Feature/devex observability improvements#1264
Open
josunday002 wants to merge 5 commits into
Open
Conversation
- Add scripts/seed-demo-creators.ts with 3 demo creator accounts (demo_alice, demo_bob, demo_carol) each with multiple subscription plans - Upserts users + creator profiles idempotently via ON CONFLICT - Supports --clean flag to remove and re-seed demo rows - Guards against accidental production runs (NODE_ENV=production) - Add npm scripts: seed:demo and seed:demo:clean - Add unit tests covering data shape, safety guard, and uniqueness invariants
- Add Redis 7 service with healthcheck and named volume - Add one-shot seed service that runs migrations then seeds demo creators - Pass REDIS_HOST/REDIS_PORT env vars to backend service - Add restart policies and improved healthcheck for backend (start_period=45s) - Document all services, ports, and useful commands in compose header - Update .env.dev.example with REDIS_HOST and REDIS_PORT defaults
- Add AggregatedHealthResult interface with per-subsystem latency,
uptime, version, and numeric summary (total/up/degraded/down)
- Add HealthService.getAggregatedHealth() running all checks in parallel
- Add GET /v1/health/aggregate endpoint (200 for up/degraded, 503 for down)
- Database down → overall 'down'; other subsystem down → 'degraded'
- checkRedis() now returns { status, error } consistent with other checks
- Add unit tests for aggregation logic and HTTP status mapping
- Add SubscriptionChainSyncService with sync(dryRun, fanFilter) method - Reads is_subscriber + get_expiry_unix from Soroban contract per subscription - Reconciles local index: expire when chain says not-subscriber, re-activate when chain says subscriber but local is expired - Cancelled subscriptions are skipped (terminal state) - Chain read failures are best-effort: record marked 'skipped', sync continues - Supports dry-run mode (evaluates without writing) - Supports fanFilter to sync a single fan's subscriptions - Wire SubscriptionChainSyncService into SubscriptionsModule - Add comprehensive unit tests covering all reconciliation branches, error handling, dry-run, fan filter, and result shape
|
@josunday002 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #1216
closes #1215
closes #1214
closes #1209