Skip to content
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

Ensure correct pagination while counting #51

Merged
merged 1 commit into from
Feb 5, 2025
Merged

Ensure correct pagination while counting #51

merged 1 commit into from
Feb 5, 2025

Conversation

leo
Copy link
Member

@leo leo commented Feb 5, 2025

This change ensures that the following query works without problems:

count.accounts.before('1667575193779');

In other words: The compiler normally requires a limitedTo instruction to be present when paginating. When counting, however, people often want to determine the total amount of available records before or after a given counter, so we should not require the limitedTo instruction in that case.

This change was originally landed in ronin-co/compiler#136.

@leo leo added the enhancement New feature or request label Feb 5, 2025
@leo leo requested review from NuroDev, juriadams and colodenn February 5, 2025 17:07
@leo leo marked this pull request as ready for review February 5, 2025 17:07
Copy link

github-actions bot commented Feb 5, 2025

Released an experimental package:

bun add ronin@leo-ron-1099-experimental-70

This package will be removed after the pull request has been merged.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

@leo leo merged commit c8d11e3 into main Feb 5, 2025
5 checks passed
@leo leo deleted the leo/ron-1099 branch February 5, 2025 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants