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

More than or equal to doesn't work when used on a dates in automations. Less than or equal to does work. #14836

Open
1 task done
ConorWebb96 opened this issue Oct 21, 2024 · 2 comments
Labels
bb-automations Budibase Automations related work 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 firestorm Data/Infra/Revenue Team Medium priority Created by Linear-GitHub Sync

Comments

@ConorWebb96
Copy link
Contributor

Checklist

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

Hosting

  • Self
    • Method: docker compose
    • Budibase Version: 2.33.2
    • App Version: 2.33.2

Describe the bug
Date data may need to change when debugging

When trying to see whether a date is more than or equal to the current date, using the helper date. It doesn't work correctly, and no rows are ever returned.

This is likely because the date helper returns a date that looks like this month day, and year. You have to write your own ISO date converter to get this to work. However, if the date is the previous day, e.g., not a full 24 hours behind, it will still return the rows.

To Reproduce
Steps to reproduce the behavior:

  1. Import attached app
  2. Navigate to the automations tab and test run the automation.
  3. See that no results are return
  4. Delete the equals or greater than filter
  5. Run again see it works with the less than one
  6. Re-add the greater than or equals to filter against the To_date again the {{ date }}
  7. Run the automation and see error

Expected behavior
The screenshots below show the setup filters. They are about 9/10 days into the future of today's date. I'd expect the rows to appear in the output area during a test. Instead, it shows an empty array with no rows.

Screenshots
Screenshot 2024-10-21 at 08 35 00

Screenshot 2024-10-21 at 08 35 52

App Export
date filtering in automation issue

@ConorWebb96 ConorWebb96 added bug Something isn't working bb-automations Budibase Automations related work date Relating to dates, e.g. Date Picker, formatting, etc env - production Bug found in production bb-filtering Filtering data firestorm Data/Infra/Revenue Team Medium priority Created by Linear-GitHub Sync labels Oct 21, 2024
@phifogg
Copy link

phifogg commented Oct 25, 2024

Not sure this is the same as #14869 as the more than filter worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bb-automations Budibase Automations related work 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 firestorm Data/Infra/Revenue Team Medium priority Created by Linear-GitHub Sync
Projects
None yet
Development

No branches or pull requests

2 participants