aws-analytics
aws-analytics copied to clipboard
Analytics time range options should only show periods with data
On a project where we've limited data retention to a maximum of 30 days (using the "data-retention-days" config option), I would expect that the analytics views on the dashboard not to show "90 days" as an option to view by.
"extra": {
"altis": {
"modules": {
"analytics": {
"native": {
"enabled": true,
"data-retention-days": 30
}
},
Viewing the "90 days" option in the Dashboard Hero component shows no data, and there's a 500 error in the analytics/v1/stats
request:
The view on the Analytics dashboard page doesn't error; however the results aren't exactly useful: