Allow flexible "from" and "to" (min/max) year ranges

Created on 23 May 2024, 6 months ago

Problem/Motivation

Currently, it is only possible to set "From/To" year ranges from 1900 to 50 years hence (so, 2074 as of this writing).

We should allow any range of years, and allow entry of relative time strings (e.g. '+5 years', '-10 years') for the "To" year.

Proposed resolution

  • Change "From" setting from select element to number, to allow entry of any integer.
  • Change "To" setting to a textfield and evaluate submission for either numeric string values or relative time strings.
  • Add settings form validation to ensure "From" < "To".
  • Add field constraints to ensure user entered values are valid -- i.e. "From" < "To". (Might be a separate issue.)

Remaining tasks

TBD

User interface changes

"From" and "To" field settings are no longer select element, rather number and textfield respectively.

Current Settings UI

Proposed Settings UI

API changes

User-entered data will be validated by field constraints.

Data model changes

None

Additional Considerations

There are a number of open, long-running issues that attempt to address one aspect or another of this issue in various ways. Ideally we'll implement any updates necessary to convert existing config generated by use of these patches.

Issues for "From" values

Issues for "To" values

Feature request
Status

Needs work

Version

9.0

Component

Code

Created by

🇺🇸United States justcaldwell Austin, Texas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024