-
-
Notifications
You must be signed in to change notification settings - Fork 0
✨ add EncodeOptions.commaCompactNulls
#43
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
WalkthroughA new Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Possibly related PRs
Suggested labels
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (1 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
🔇 Additional comments (5)
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 |
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferences |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #43 +/- ##
==========================================
- Coverage 98.10% 97.91% -0.19%
==========================================
Files 14 14
Lines 895 910 +15
==========================================
+ Hits 878 891 +13
- Misses 17 19 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This pull request adds support for omitting
nullvalues when encoding lists using the comma-separated format in query strings. It introduces the newcommaCompactNullsoption, updates the encoding logic to filter outnullentries when this option is enabled, and ensures the round-trip marker logic remains correct. The changes are covered by new and updated unit tests.Feature addition:
commaCompactNullsoption toEncodeOptions, allowing users to dropnullitems from lists when using the comma-separated format. [1] [2]Encoding logic updates:
encode.dartto filter outnullentries from lists whencommaCompactNullsis enabled, and to correctly handle the round-trip marker when only non-null items remain. [1] [2]API propagation:
commaCompactNullsoption is passed through all relevant constructors, method calls, and internal logic, includingcopyWithand debug output. [1] [2] [3] [4] [5]Testing:
commaCompactNulls, including cases with mixed, all-null, and single non-null list entries, as well as integration with the round-trip marker. [1] [2] [3] [4] [5] [6] [7] [8]