Repository navigation
Conversation
* chore: remove promise.all from iterable delete users to process calls synchronously (#4379) * chore: remove promise.all to process calls synchronously * refactor: use forEach in batches for iterable delete users --------- Co-authored-by: Sudip Paul <[email protected]> Co-authored-by: Dilip Kola <[email protected]> * chore(release): 1.101.2 --------- Co-authored-by: Sudip Paul <[email protected]> Co-authored-by: Sudip Paul <[email protected]> Co-authored-by: Dilip Kola <[email protected]> Co-authored-by: GitHub Actions <[email protected]>
Summary by CodeRabbit
WalkthroughThe code updates the user deletion logic to process requests in controlled batches using a new Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant processDeleteUsers
participant forEachInBatches
participant IterableAPI
Caller->>processDeleteUsers: Invoke with user IDs
processDeleteUsers->>forEachInBatches: Process user IDs in batches of 10
loop For each batch
forEachInBatches->>IterableAPI: Send DELETE request for each user (in parallel)
IterableAPI-->>forEachInBatches: Return response
end
forEachInBatches-->>processDeleteUsers: Batch results
processDeleteUsers-->>Caller: Final result (success/errors)
Suggested reviewers
Suggestions for improvement:
📜 Recent review detailsConfiguration used: .coderabbit.yaml ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)`**/*.js`: Focus on ESLint errors (max 3) and warnings (max 5).
⏰ Context from checks skipped due to timeout of 90000ms (5)
🔇 Additional comments (2)
✨ 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
Documentation and Community
|
👑 An automated PR