Skip to content

Conversation

@victorlin
Copy link
Member

Description of proposed changes

Previously, this was considered an ambiguous date with a range of '[0001-01-01, present]'. That may be somewhat correct, but it has the side effect of passing min/max date filters. Other missing dates such as empty string are dropped by those date filters, and it seems more reasonable to consider XXXX-XX-XX the same way.

Related issue(s)

Closes #1894

Checklist

  • Automated checks pass
  • Check if you need to add a changelog message
  • Check if you need to add tests
  • Check if you need to update docs

Numbering removed to make edits easier.
Previously, this was considered an ambiguous date with a range of
'[0001-01-01, present]'. That may be somewhat correct, but it has the
side effect of passing min/max date filters. Other missing dates such as
empty string are dropped by those date filters, and it seems more
reasonable to consider XXXX-XX-XX the same way.
@victorlin victorlin self-assigned this Oct 22, 2025
# 1. Check if value is an exact date in the specified format (fmt).
# Check if value is a missing date.
if RE_AUGUR_MISSING_DATE.match(value):
return None
Copy link
Member Author

Choose a reason for hiding this comment

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

Error from wnv check:

TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'

This is coming from augur frequencies. I'll run locally to investigate.

@codecov
Copy link

codecov bot commented Oct 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.14%. Comparing base (b043eff) to head (b556b82).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1913      +/-   ##
==========================================
+ Coverage   74.13%   74.14%   +0.01%     
==========================================
  Files          82       82              
  Lines        8977     8981       +4     
  Branches     1825     1826       +1     
==========================================
+ Hits         6655     6659       +4     
  Misses       2018     2018              
  Partials      304      304              

☔ 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.

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.

XXXX-XX-XX passes any date filter

2 participants