-
Notifications
You must be signed in to change notification settings - Fork 0
feat(llc): Add optional sorting to updateWhere #24
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
Conversation
Adds an optional `compare` parameter to the `updateWhere` list extension. When a `Comparator` is provided, the list will be sorted after the update operation is applied. This change also moves `updateWhere` from `ListExtensions` to `SortedListExtensions` to group it with other methods that have sorting capabilities.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #24 +/- ##
==========================================
+ Coverage 34.15% 34.70% +0.55%
==========================================
Files 53 53
Lines 1057 1066 +9
==========================================
+ Hits 361 370 +9
Misses 696 696 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Adds a `partition` method to `list_extensions.dart` that splits a list into two lists based on a filter condition, returning a record of `(matching, notMatching)`. Includes comprehensive tests and documentation.
WalkthroughThe changes relocate Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20–25 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (3)
⏰ 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). (1)
🔇 Additional comments (7)
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. Comment |
Description of the pull request
Adds an optional
compareparameter to theupdateWherelist extension. When aComparatoris provided, the list will be sorted after the update operation is applied.This change also moves
updateWherefromListExtensionstoSortedListExtensionsto group it with other methods that have sorting capabilities.Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.