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

Fix order filter date #999

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Fix order filter date #999

wants to merge 2 commits into from

Conversation

kernicPanel
Copy link
Member

Purpose

A test about order filtering on creation date was flaky, it was about results ordering.
While digging for a fix, it appears that when we filter on a date, only orders created at 0:00 were found.

Also, a Django deprecation about datetime_safe was raised.

Proposal

  • Remove datetime_safe usage
  • Filter created_on by date instead of exact string

Django is deprecating datetime_safe usage.
Order filtering is matching created_on date exactly, which only matches
times at 0:00, as query parameter only contains a date.
@kernicPanel kernicPanel force-pushed the fix-order-filter-date branch from 76520db to a1fe7ed Compare December 20, 2024 15:43
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