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

Table Filters for "Less Than or Equal To" on Date/DateTime don't accept "or equal to" values. #13974

Open
mikesealey opened this issue Jun 19, 2024 · 1 comment
Labels
bb-filtering Filtering data bug Something isn't working date Relating to dates, e.g. Date Picker, formatting, etc env - production Bug found in production

Comments

@mikesealey
Copy link
Collaborator

mikesealey commented Jun 19, 2024

Checklist

  • [Y] I have searched budibase discussions and github issues to check if my issue already exists

Hosting

  • Self & Cloud

Describe the bug
When applying a filter to dates the Less than or equal to don't actually pass equal values.

To Reproduce
Steps to reproduce the behavior:

  1. Create a table with some dates that include data times
  2. Add a form containing date fields, for "start date" and "end date"
  3. Add a table component to display the dates
  4. use the "start date" and "end date" fields as filters using "Less than or equal to" and "More than or equal to"
  5. Filter using an exact date-time that exists in the table
  6. Row that equals the date-time passed will be filtered out

Expected behaviour
Filters set this way should be inclusive, (in short "pick a number between 1 & 3" should allow 1,2, or 3, not just 2)

Screenshots
image

Burger - 07/06/2024 : 00:00 should display as the filter is "Less than or equal to"
image

Start Date and End date are deliberately identical, and match Lasagna
image

Start Date is exactly Lasagna's Date Time, End date is 1 minute over
image

Start Date is exactly Fajitas Date Time but End Date is 59 minutes after Lasagna, but Lasagna doesn't show (Shows at 01:00)
image

App Export
Comparisons In Filters-export-1718795393168.tar.gz

Desktop (please complete the following information):

  • OS: iOS
  • Browser Chrome
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@mikesealey mikesealey added the bug Something isn't working label Jun 19, 2024
@andz-bb andz-bb added bb-filtering Filtering data env - production Bug found in production labels Jun 25, 2024 — with Linear
@ConorWebb96 ConorWebb96 added the date Relating to dates, e.g. Date Picker, formatting, etc label Jun 25, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bb-filtering Filtering data bug Something isn't working date Relating to dates, e.g. Date Picker, formatting, etc env - production Bug found in production
Projects
None yet
Development

No branches or pull requests

3 participants