aws-analytics icon indicating copy to clipboard operation
aws-analytics copied to clipboard

Analytics time range options should only show periods with data

Open goldenapples opened this issue 2 years ago • 0 comments

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

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

image

goldenapples avatar Apr 22 '22 15:04 goldenapples