humanmade / humanmade/aws-analytics

Analytics time range options should only show periods with data

Open
#380 0 comments 0 reactions 0 assignees View on GitHub
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:

![image](https://user-images.githubusercontent.com/665992/164740551-9f03b8a3-abd1-4c05-8bc7-98ae78bf8bfa.png)

The view on the Analytics dashboard page doesn't error; however the results aren't exactly useful:

![image](https://user-images.githubusercontent.com/665992/164741278-0e00de84-aec4-4e25-bdd0-27953c7af028.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.