Skip to content

Conversation

@wschoors
Copy link

Currently the datetime query param ranges from 00:00:00 on the selected day to 00:00:00 on the next. This can cause Items with datetime or datetime_start set to 00:00:00 on the next day to be included in queries for the day before.

This pull request proposes to subtract 1ms from the end datetime to set it to 23:59:59 on the same day to prevent inclusion of unwanted data.

@vincentsarago
Copy link
Member

I think it makes sense. could you add a test case for this?

@codecov-commenter
Copy link

codecov-commenter commented Oct 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@eb1626c). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #34   +/-   ##
=======================================
  Coverage        ?   81.89%           
=======================================
  Files           ?       13           
  Lines           ?      856           
  Branches        ?      103           
=======================================
  Hits            ?      701           
  Misses          ?      103           
  Partials        ?       52           
Flag Coverage Δ
unittests 81.89% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@wschoors
Copy link
Author

Hi Vincent, thanks for the review! I've added an assert for the value of the datetime key of the search_query to an existing test. Is this sufficient or should I make a separate test? If so could you give me some pointers as to how to best implement it?

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.

3 participants