-
-
Notifications
You must be signed in to change notification settings - Fork 45
Pm qa 7928 fix #3260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pm qa 7928 fix #3260
Conversation
|
@pm-dimagi How does this solve this issue? Previously, without these changes, also update payment confirmation should be successful only. |
|
Caution Review failedFailed to post review comments. 📝 WalkthroughWalkthroughThis pull request introduces a comprehensive set of features and refactors centered on the CommCare Connect module, focusing on messaging, job management, and delivery/payment workflows. Major changes include the addition of new activities ( Sequence Diagram(s)sequenceDiagram
participant User
participant ConnectActivity
participant ConnectJobHelper
participant MessageManager
participant ConnectMessagingActivity
participant ConnectDatabaseHelper
participant FirebaseMessagingService
participant NotificationManager
%% Connect job navigation and progress update
User->>ConnectActivity: Launch Connect feature
ConnectActivity->>ConnectJobHelper: Set active job, update progress
ConnectJobHelper->>ConnectDatabaseHelper: Fetch/update job data
ConnectActivity->>User: Show job list/progress UI
%% Messaging workflow
User->>ConnectMessagingActivity: Open messaging (via menu or notification)
ConnectMessagingActivity->>ConnectDatabaseHelper: Retrieve channels/messages
ConnectMessagingActivity->>MessageManager: Retrieve new messages
MessageManager->>ConnectDatabaseHelper: Store new messages
ConnectMessagingActivity->>User: Display updated messages
%% Push notification handling
FirebaseMessagingService->>NotificationManager: Receive FCM push
NotificationManager->>FirebaseMessagingUtil: Handle notification
FirebaseMessagingUtil->>ConnectActivity/ConnectMessagingActivity: Launch activity or update UI
FirebaseMessagingUtil->>MessageManager: Update local data if needed
%% Payment acknowledgment via broadcast
NotificationManager->>PaymentAcknowledgeReceiver: Send payment acknowledgment intent
PaymentAcknowledgeReceiver->>ConnectJobHelper: Update payment confirmation
ConnectJobHelper->>ConnectDatabaseHelper: Update payment record
PaymentAcknowledgeReceiver->>User: (No direct UI, silent update)
Estimated code review effort5 (>120 minutes) Possibly related PRs
Suggested labels
Suggested reviewers
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Yes Jignesh payment is successful only ... but the issue is updatePaymentConfirmationTile() was calling before the api result so it was showing the dialog again because payment is not marked confirmed |
Product Description
https://dimagi.atlassian.net/browse/QA-7928
Fixed this, it was updating the tile 2nd time before the api response
Technical Summary
Feature Flag
Safety Assurance
Safety story
Automated test coverage
QA Plan
Labels and Review