-
-
Notifications
You must be signed in to change notification settings - Fork 36
Validate both Orange Money ID and mobile money phone number for recipients in CSV task #1182
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
base: main
Are you sure you want to change the base?
Conversation
…ients in CSV task
📝 WalkthroughWalkthroughThe validation in the Changes
Sequence Diagram(s)sequenceDiagram
participant Admin
participant RegistrationCSVTask
participant Recipient
Admin->>RegistrationCSVTask: run()
loop For each Recipient
RegistrationCSVTask->>Recipient: Check om_uid and mobile_money_phone.phone
alt Missing field(s)
RegistrationCSVTask-->>Admin: Throw error with recipient ID
else All fields present
RegistrationCSVTask->>RegistrationCSVTask: Continue processing
end
end
RegistrationCSVTask-->>Admin: Complete processing
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
✨ Finishing Touches
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 (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
functions/src/functions/webhooks/admin/payment-process/tasks/RegistrationCSVTask.ts
(1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: MDikkii
PR: socialincome-san/public#960
File: recipients_app/lib/data/datasource/remote/user_remote_data_source.dart:87-91
Timestamp: 2025-01-06T18:59:26.103Z
Learning: The `Recipient` model enforces a non-nullable `userId` property, so no null checks are necessary there.
functions/src/functions/webhooks/admin/payment-process/tasks/RegistrationCSVTask.ts (1)
Learnt from: MDikkii
PR: socialincome-san/public#960
File: recipients_app/lib/data/datasource/remote/user_remote_data_source.dart:87-91
Timestamp: 2025-01-06T18:59:26.103Z
Learning: The `Recipient` model enforces a non-nullable `userId` property, so no null checks are necessary there.
🔇 Additional comments (1)
functions/src/functions/webhooks/admin/payment-process/tasks/RegistrationCSVTask.ts (1)
15-15
: Error message clarity is good.The error message clearly identifies which recipient is problematic and what's missing.
functions/src/functions/webhooks/admin/payment-process/tasks/RegistrationCSVTask.ts
Outdated
Show resolved
Hide resolved
…egistrationCSVTask.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Visit the preview URL for this PR (updated for commit a6bdf75): https://si-admin-staging--pr1182-michael-fix-registra-k5raub0d.web.app (expires Thu, 24 Jul 2025 06:37:50 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: b7b0969384059dce6ea8fad1ee1d1737e54e6676 |
Summary by CodeRabbit