Allow substraction of years (NOW - x)

Created on 13 December 2020, almost 4 years ago
Updated 23 May 2024, 6 months ago

Problem/Motivation

In most cases, we need to configure the "To" field to have selection from YYYY to NOW - X.

Proposed resolution

Add extra option in the "To" field and provide extra field to define the amount of years to substract.

User interface changes

  • Extra option "NOW (Subsctract)" in "To" options
  • Extra field "Substract years since NOW"
✨ Feature request
Status

Closed: duplicate

Version

9.0

Component

User interface

Created by

πŸ‡§πŸ‡ͺBelgium tim-diels Belgium πŸ‡§πŸ‡ͺ

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΉπŸ‡·Turkey linichalexey

    Hi @tim-diels
    I have checked the #2 patch and it works. But there is a way to break functionality by setting substraction value big enough to make "to year" earlier, than "from" year. Let's add some validation.

  • Status changed to Closed: duplicate 6 months ago
  • πŸ‡ΊπŸ‡ΈUnited States justcaldwell Austin, Texas

    Thanks for the work here! The lack of flexibility in defining year ranges will be addressed with different approach that should accommodate this and other issues attempting to do similar things. Please ✨ Allow flexible "from" and "to" (min/max) year ranges Needs work for details.

    The hope is to provide a conversion path for any config generated by using this patch. Credit will be granted in the other issue. Please feel free to follow/review/contribute there.

Production build 0.71.5 2024