From 3342f38b0777c3cb3274dd9bf4d799aa649acefe Mon Sep 17 00:00:00 2001 From: Timmy Luong Date: Mon, 15 Mar 2021 11:02:22 -0700 Subject: [PATCH 1/2] fix: prevent time field names from being formatted --- CHANGELOG.md | 1 + ui/src/shared/components/tables/TableCell.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5cb1dc32ea..1ddd08c8044 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ the endpoint has been removed. Use the `/metrics` endpoint to collect system sta 1. [20833](https://github.com/influxdata/influxdb/pull/20833): Fix Single Stat graphs with thresholds crashing on negative values. 1. [20843](https://github.com/influxdata/influxdb/pull/20843): Fix data race in TSM cache. Thanks @StoneYunZhao! 1. [20967](https://github.com/influxdata/influxdb/pull/20967): Log error details when `influxd upgrade` fails to migrate databases. +1. [20932](https://github.com/influxdata/influxdb/pull/20932): Prevent time field names from being formatted in the Table visualization. ## v2.0.4 [2021-02-08] ---------------------- diff --git a/ui/src/shared/components/tables/TableCell.tsx b/ui/src/shared/components/tables/TableCell.tsx index 36270a80244..12f37d7e765 100644 --- a/ui/src/shared/components/tables/TableCell.tsx +++ b/ui/src/shared/components/tables/TableCell.tsx @@ -250,7 +250,7 @@ class TableCell extends PureComponent { const {properties, data, dataType, timeFormatter} = this.props const {decimalPlaces} = properties - if (data && dataType.includes('dateTime')) { + if (data && dataType.includes('dateTime') && !this.isFieldName) { return timeFormatter(data) } From 690453ab02b2b41ac75105655261cf1e2fe2abb6 Mon Sep 17 00:00:00 2001 From: Dan Moran Date: Mon, 15 Mar 2021 17:32:36 -0400 Subject: [PATCH 2/2] chore: update CHANGELOG --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ddd08c8044..a64bc4d2d97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,7 +29,7 @@ the endpoint has been removed. Use the `/metrics` endpoint to collect system sta 1. [20833](https://github.com/influxdata/influxdb/pull/20833): Fix Single Stat graphs with thresholds crashing on negative values. 1. [20843](https://github.com/influxdata/influxdb/pull/20843): Fix data race in TSM cache. Thanks @StoneYunZhao! 1. [20967](https://github.com/influxdata/influxdb/pull/20967): Log error details when `influxd upgrade` fails to migrate databases. -1. [20932](https://github.com/influxdata/influxdb/pull/20932): Prevent time field names from being formatted in the Table visualization. +1. [20966](https://github.com/influxdata/influxdb/pull/20966): Prevent time field names from being formatted in the Table visualization. ## v2.0.4 [2021-02-08] ----------------------