influxdata / influxdb-gds-connector

Google Data Studio Connector for InfluxDB.
MIT License
11 stars 4 forks source link

Metric data type can not be changed back to it's original data type. #22

Closed ph5ive closed 2 years ago

ph5ive commented 2 years ago

The issue:

I noticed that if you change the metrics data type from 'Date & Time' to 'Text' you can't change it back.

Before

This is because the 'Date & Time' option is no longer available in the LOVs.

After

Steps to reproduce: List the minimal actions needed to reproduce the behavior.

  1. ... Using GDS create a connection to InfluxData Cloud2 service, setting the InfluxDB URL, Token, Organisation, Bucket and Measurement.
  2. ... Within GDS, at the field editing section, change the 'time' metric data type from 'Date & Time' to data type 'Text'.
  3. ... Now, try to change it back from 'Text' to a 'Date & Time'.

Expected behavior: You should be able to change the data type back using the LOVs.

Actual behavior: The original data type of 'Date & Time' is no longer available in the LOVs.

Specifications:

bednar commented 2 years ago

Hi @ph5ive,

thanks for using our connector.

The values available in LOVs are controlled by GDS. According to the following docs, the column with AUTO aggregation cannot be change:

image

I have to investigate how we define the time metrics and if we need to change something here:

Regards

bednar commented 2 years ago

We have to set the defaultAggregationType config for the time to false. After that the time will be dimension (green) type and the LOVs will contains full range of types.

The "blue" is supposed to use for fields with pre-aggregated values.