feat: implement resilient mobile money services, dispute workflow, ba… - #1888
Merged
sublime247 merged 1 commit intoAug 27, 2026
Conversation
|
@AbuJulaybeeb 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! 🚀 |
…files This commit resolves 4 feature issues by introducing new services: Implementation: - networkOutageFallbackService: Fallback and recovery watchdog for provider outages. - disputeWorkflowTool: Triage and resolution orchestrator for disputes with SLA. - batchTransactionService: High-throughput batch processing for transactions. - userProfileService: Profile management, GDPR export, and Stellar linking. Testing: - Unit tests added for all new services. - Validated state transitions and failure modes. Closes sublime247#1815 Closes sublime247#1816 Closes sublime247#1817 Closes sublime247#1818
AbuJulaybeeb
force-pushed
the
feature/fallback-provider-dispute-batch-profile
branch
from
August 27, 2026 06:02
9f45eb3 to
81c2f8e
Compare
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
networkOutageFallbackService.tsto provide threshold-based outage detection and background recovery polling for mobile money providers.disputeWorkflowTool.tsto orchestrate triage, agent assignment, and SLA-based escalations for customer disputes.batchTransactionService.tsto process bulk deposit and payout transactions concurrently, with robust deduplication and timeout boundaries.userProfileService.tsto centralize profile validation, GDPR data export delegation, multi-channel notification preferences, and Stellar address linking.Why
This PR resolves a batch of core service enhancements required for the platform's stability, support operations, and user management:
Implementation
networkOutageFallbackServiceusing a failure counter and threshold threshold limit. Integrates a watchdog timer (startRecoveryWatchdog) to poll recovering providers asynchronously and emit state-change events.DisputeWorkflowToolatop the basedisputemodel. Added dynamictriagepriority scoring based on value/category, and a CRON-friendlyescalateOverduemethod to identify breached SLAs.BatchTransactionServiceutilizing Promise concurrency limits. Added internal map-based idempotency deduplication (latest entry wins) andPromise.race()to enforce per-item timeout limits. Emits real-time event streams for progress bars.userProfileServiceas a facade for base user queries and extended attributes (Avatar, Stellar Address, Preferences). Leveraged PostgreSQLON CONFLICT DO UPDATEfor safe upserts of user preferences.Testing
npm run lint:fixnpx prettier --write .npx jest src/services/mobilemoney/__tests__/networkOutageFallbackService.test.ts(Passed 24/24 unit tests)npx jest src/services/__tests__/disputeWorkflowTool.test.ts(Passed 17/17 unit tests)npx jest src/services/__tests__/batchTransactionService.test.ts(Passed 20/20 unit tests)npx jest src/services/__tests__/userProfileService.test.ts(Passed 10/10 unit tests)Scope / Risk
user_extended_profile,user_notification_preferences) utilize safeON CONFLICTconstraints.Issue
Closes #1815
Closes #1816
Closes #1817
Closes #1818