Closed trieloff closed 9 months ago
This PR will trigger a minor release when merged.
Overall good. My only question is about an edge case -- when we return a single record, should pageviews_forecast
return null
as it currently does, or should it return the same value as pageviews
? I think I'm okay with the former and will approve this PR, but I can also see the case for returning the latter. If null
puts us in some weird spot with the visualization later, we can revisit.
:tada: This PR is included in version 3.14.0 :tada:
The release is available on:
v3.14.0
v3.14.0
Your semantic-release bot :package::rocket:
If the current time period is still in progress, then data visualizations often look bad because they show a drop in the current day, week, quarter, etc. This commit adds a simple forecast for the current period based on a heuristic that is giving 50% weight to the current period's data and 50% to the past seven data points, so that a more accurate estimate can be provided