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

Make older judgments visible; separate minimum sensible and allowed dates #1794

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

Conversation

dragon-dxw
Copy link
Collaborator

@dragon-dxw dragon-dxw commented Jan 30, 2025

Pre-2001 judgments were not showing up properly on staging -- we probably could have changed the default oldest date, but realistically separating out the minimum valid (some time after 1000) and sensible (oldest judgment; defaulting to 2003-ish) more carefully was needed.

Jira card / Rollbar error (etc)

https://national-archives.atlassian.net/browse/FCL-635

@dragon-dxw dragon-dxw changed the title Separate out minimum allowed and sensible from dates Separate out minimum allowed and sensible from dates Jan 30, 2025
@dragon-dxw dragon-dxw changed the title Separate out minimum allowed and sensible from dates Make older judgments visible; separate minimum sensible and allowed dates Jan 30, 2025
@dragon-dxw dragon-dxw force-pushed the bug/old-judgments-invisible branch from ad6a992 to 742155e Compare January 30, 2025 17:33

if not iso_date:
return False, None
from_date = date.fromisoformat(iso_date)
# If the date is 1085, then that's the default, the user hasn't typed in
# a non-sensical answer, don't warn about it.
if from_date.year == settings.MINIMUM_ALLOWED_YEAR:
Copy link
Collaborator

Choose a reason for hiding this comment

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

This makes me a bit twitchy because if a user does type "1085" then we should still warn them, but solving it is a bit of a faff.

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