You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
Use cases:
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 themax
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.The text was updated successfully, but these errors were encountered: