feat: implement OpenAPI-first workflow, CQRS analytics, audit trail, and benchmarking#649
Open
Dev-sandy1 wants to merge 1 commit into
Open
Conversation
…and benchmarking - Issue Smartdevs17#580: OpenAPI-first SDK generation workflow - Upgrade OpenAPI spec to 3.1 at spec/openapi.yaml (single source of truth) - Add CI workflow for spec validation and auto-generation - SDK generation script (scripts/sdk-generate.sh) - Update docs/openapi.yaml to 3.1 - Issue Smartdevs17#576: CQRS pattern with materialized views - Query handlers for MRR, cohort retention, LTV views - Command handlers for subscription write operations - Migration 003 with mrr_mv, cohort_retention_mv, ltv_mv - CDC connector configuration with per-view refresh policies - Updated mvRefreshJob with new views and scheduling - Issue Smartdevs17#572: Tamper-evident audit trail - HashChainService with SHA-256 linked hash chain - AuditWriter for event capture - BlockchainAnchor with periodic Stellar anchoring (every 1000 entries/24h) - REST controller with query and verification API - Jobs: log rotation, integrity checker, blockchain anchor - Audit logging middleware for auto-capture - Soroban contract (contracts/audit/) for on-chain anchoring - Migration 004 with audit_events, audit_anchors, audit_quarantine tables - Issue Smartdevs17#571: Subscription benchmarking - BenchmarkEngine with differential privacy (epsilon=1.0) - Industry vertical taxonomy (6 verticals) - Anonymized peer comparison (p25/p50/p75) - k-anonymity enforcement (min 10 peers) - BenchmarkConsentService with opt-in/opt-out - Mobile BenchmarkReportScreen with interactive bars - Monthly aggregation and data purge jobs Closes Smartdevs17#580, Smartdevs17#576, Smartdevs17#572, Smartdevs17#571
|
@Dev-sandy1 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.
Summary
This PR implements four major feature requests across the SubTrackr platform:
🔄 OpenAPI-First SDK Generation (#580)
spec/openapi.yaml) as the single source of truth.github/workflows/sdk-generate.yml) for spec validation + auto-generationscripts/sdk-generate.shfor JS/Python/Go SDK regeneration📊 CQRS Analytics Pattern (#576)
db/migrations/003_cqrs_materialized_views.sql)backend/analytics/command/)backend/analytics/query/)backend/shared/cdc/)MVRefreshJobwith configurable intervals (5 min / 1h / 24h)refreshed_attimestamp🔒 Tamper-Evident Audit Trail (#572)
backend/audit/domain/HashChainService.ts)contracts/audit/)/audit/verifyreturns chain integrity statusaudit_quarantine)📈 Subscription Benchmarking (#571)
BenchmarkReportScreen.tsxwith interactive metric barsFiles Changed
Closes #580
Closes #576
Closes #572
Closes #571