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

clarify interpretation of less and greater as before/after #461

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

combinatorist
Copy link

@combinatorist combinatorist commented Dec 22, 2024

I welcome edits / rephrasing. This is just the simplest change to make it clear to me, but it might only muddle it for others.

There might also be other places this clarification should be made - IDK.

Copy link

netlify bot commented Dec 22, 2024

Deploy Preview for grist-help-preview ready!

Name Link
🔨 Latest commit ac0834d
🔍 Latest deploy log https://app.netlify.com/sites/grist-help-preview/deploys/6767a86b6120540008cdb4d2
😎 Deploy Preview https://deploy-preview-461--grist-help-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

- __`ge`__: (greater than or equal to) find nearest record with sort values >= the given values
- __`eq`__: (equal to) find nearest record with sort values == the given values
- __`lt`__: (less than) find nearest (last) record with sort values < (before) the given values
- __`le`__: (less than or equal to) find nearest record with sort values <= (last before or first equal) the given values
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should actually be "last that's before or equal" -- if you have multiple equal values to the one you are looking up, it should return the last of these.

- __`lt`__: (less than) find nearest (last) record with sort values < (before) the given values
- __`le`__: (less than or equal to) find nearest record with sort values <= (last before or first equal) the given values
- __`gt`__: (greater than) find nearest (first) record with sort values > (after) the given values
- __`ge`__: (greater than or equal to) find nearest (first) record with sort values >= (equal or after) the given values
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one should be "first equal or after", though I think this is clear as is. Maybe le can be phrased the same way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants