humanmade / humanmade/aws-analytics
Analytics time range options should only show periods with data
- Dominant language
- JavaScript
- Stars
- 19
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
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:

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.