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 "source up-to-dateness" work with dates in the future #3366

Closed
fniessink opened this issue Feb 2, 2022 · 0 comments · Fixed by #3383
Closed

Make "source up-to-dateness" work with dates in the future #3366

fniessink opened this issue Feb 2, 2022 · 0 comments · Fixed by #3383
Assignees
Labels
Metric(s) New, enhanced, or removed metric

Comments

@fniessink
Copy link
Member

fniessink commented Feb 2, 2022

Use cases:

  • Actions that need to be done before a certain date
  • Limited validity of documents

Source up-to-dateness should report the number of days left when the date is in the future.

Source up-to-dateness currently gets the date from the source and calculates the number of days since the reported date: max(0, (now() - reported_date()).days). If we remove the max we get a negative number for reported days in the future. Negative days are probably too confusing for users. Investigate whether we can make it work by using the "direction" to distinguish between the two uses of the metric.

@fniessink fniessink added the Metric(s) New, enhanced, or removed metric label Feb 2, 2022
@fniessink fniessink changed the title Add metric to track time remaining until a date in the future Make "source up-to-dateness" work with dates in the future Feb 2, 2022
@fniessink fniessink self-assigned this Feb 2, 2022
@fniessink fniessink moved this to Released in Quality-time backlog May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Metric(s) New, enhanced, or removed metric
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant