-
Notifications
You must be signed in to change notification settings - Fork 368
refactor(llc): use SortOption.desc/asc instead of new constructor #2295
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
refactor(llc): use SortOption.desc/asc instead of new constructor #2295
Conversation
The `SortOption.new` constructor is now deprecated in favor of the more explicit `SortOption.desc` and `SortOption.asc` named constructors. This change improves code readability by making the sorting direction immediately clear. This commit updates all usages of `SortOption.new` across the codebase to use the new named constructors.
WalkthroughThis update deprecates the default Changes
Sequence Diagram(s)sequenceDiagram
participant UI
participant Controller
participant API
UI->>Controller: Request sorted data (e.g., channels)
Controller->>API: Query with SortOption.asc/desc(field)
API-->>Controller: Return sorted data
Controller-->>UI: Display sorted data
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (25)
💤 Files with no reviewable changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (10)
🔇 Additional comments (26)
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 (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2295 +/- ##
=======================================
Coverage 63.43% 63.44%
=======================================
Files 408 408
Lines 25555 25555
=======================================
+ Hits 16211 16213 +2
+ Misses 9344 9342 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description of the pull request
The
SortOption.new
constructor is now deprecated in favor of the more explicitSortOption.desc
andSortOption.asc
named constructors. This change improves code readability by making the sorting direction immediately clear.This commit updates all usages of
SortOption.new
across the codebase to use the new named constructors.Summary by CodeRabbit
New Features
SortOption.new
constructor in favor ofSortOption.desc
andSortOption.asc
.Refactor
asc
anddesc
constructors for improved clarity.Bug Fixes
Style