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

augur curate format-dates: mask empty fields #1509

Merged
merged 4 commits into from
Jul 1, 2024

Conversation

joverlee521
Copy link
Contributor

@joverlee521 joverlee521 commented Jul 1, 2024

Description of proposed changes

Mask empty date fields as XXXX-XX-XX to represent unknown dates.
Also includes a change to raise a loud error if user requests a date field that does not exist in the record.

Related issue(s)

Resolves #1507

Checklist

  • Checks pass (seasonal-flu CI expected to fail due to unrelated issue)
  • If making user-facing changes, add a message in CHANGES.md summarizing the changes in this PR

@joverlee521 joverlee521 requested a review from a team July 1, 2024 20:39
Copy link

codecov bot commented Jul 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.57%. Comparing base (25f4993) to head (c2f29cf).
Report is 229 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1509      +/-   ##
==========================================
+ Coverage   69.53%   69.57%   +0.03%     
==========================================
  Files          73       73              
  Lines        7789     7792       +3     
  Branches     1905     1906       +1     
==========================================
+ Hits         5416     5421       +5     
+ Misses       2087     2086       -1     
+ Partials      286      285       -1     

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

Base automatically changed from format-dates-accept-mask to master July 1, 2024 23:14
Shows current behavior when the date field is empty or whitespace only.
If a date field is empty, it should be completely masked to indicate
that the date is unknown.

Resolves <#1507>
The user should be providing date fields that exist in the record.
Raise a loud error if a field does not exist!
@joverlee521
Copy link
Contributor Author

Rebased on to master to resolve merge conflicts in changelog and updated changelog.
Noted the new error from augur curate format-dates as a major change.

@joverlee521 joverlee521 merged commit 4264701 into master Jul 1, 2024
19 of 20 checks passed
@joverlee521 joverlee521 deleted the format-dates-mask-empty branch July 1, 2024 23:31
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.

augur curate format-dates should mask empty date fields
3 participants