-
Notifications
You must be signed in to change notification settings - Fork 116
fix: pagination #936
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
fix: pagination #936
Conversation
WalkthroughThis change updates the pagination logic in the ledger storage layer to allow overriding the default pagination column with a user-specified column. The test for transaction ordering is also updated to reflect the new logic, ensuring that transactions can be sorted and paginated by columns other than the default. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant API
participant Storage
participant DB
Client->>API: Request transactions with order=effective
API->>Storage: Paginate(query with Column="timestamp")
Storage->>DB: SQL query using pagination column (timestamp)
DB-->>Storage: Paginated transactions
Storage-->>API: Transactions sorted by requested column
API-->>Client: Response with ordered transactions
Assessment against linked issues
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (3)
✨ Finishing Touches
🧪 Generate Unit Tests
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
|
Fixes LX-52