TelemetryDeck / Issues

When something is wrong in TelemetryDeck-Land, or if you have a cool idea how to make things better, this is the place to create an Issue.
https://telemetrydeck.com
37 stars 0 forks source link

Custom query stopped working #210

Closed KaiOelfke closed 1 year ago

KaiOelfke commented 1 year ago

FYI: This custom query to show the max value of certain fields across all signals used to work, but now it doesn't work anymore. I have almost no experience with the query language.

{
  "aggregations": [
    {
      "fieldName": "categoriesCount",
      "name": "Max categories count",
      "type": "longMax"
    },
    {
      "fieldName": "activitiesCount",
      "name": "Max activitiesCount",
      "type": "longMax"
    },
    {
      "fieldName": "maxActivityCountPerCategory",
      "name": "Max maxActivityCountPerCategory",
      "type": "longMax"
    },
    {
      "fieldName": "highestExpenseAmount",
      "name": "Max expense",
      "type": "longMax"
    }
  ],
  "dataSource": "telemetry-signals",
  "filter": {
    "fields": [
      {
        "dimension": "appID",
        "type": "selector",
        "value": "appid removed"
      },
      {
        "dimension": "isTestMode",
        "type": "selector",
        "value": "false"
      },
      {
        "dimension": "type",
        "type": "selector",
        "value": "Scene active"
      }
    ],
    "type": "and"
  },
  "granularity": "all",
  "queryType": "groupBy"
}
winsmith commented 1 year ago

Thanks for the report! We changed the way queries are evaluated slightly, I'll check it out and tell you how to fix it :)

winsmith commented 1 year ago

Hi, I've fixed a couple of other bugs in query construction, and then came to your ticket. It seems to be fixed now. Can you check if this is the result you were expecting please?

Screenshot 2023-02-05 at 14 18 26
KaiOelfke commented 1 year ago

It's still broken in my dashboard unfortunately.

winsmith commented 1 year ago

I think I found it now – there was a wrong hidden value in the database that caused the query to be evaluated as a time series even though it should have been evaluated as a custom query. I'll push an update to the server shortly.

winsmith commented 1 year ago

The fix is now on the server, and I checked that your insight now shows data! Thanks a lot for reporting this!