-
Notifications
You must be signed in to change notification settings - Fork 39
PMM-10068: fix PMMServerSTTEnabled query #1131
base: main
Are you sure you want to change the base?
Conversation
@@ -32,14 +32,6 @@ telemetry: | |||
- metric_name: "dbaas_enabled" | |||
column: "dbaas_enabled" | |||
|
|||
- id: PMMServerDBaaSEnabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that we have a duplicate
@@ -10,7 +10,7 @@ telemetry: | |||
|
|||
- id: PMMServerSTTEnabled | |||
source: PMMDB_SELECT | |||
query: stt->'stt_enabled' AS stt_enabled FROM settings s, jsonb_extract_path(s.settings, 'sass') AS stt | |||
query: (CASE WHEN stt->'stt_disabled' = 'false' THEN 'true' ELSE 'false' END) AS stt_enabled FROM settings s, jsonb_extract_path(s.settings, 'sass') AS stt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stt_enabled no longer exist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can it be simplified like below?
query: (CASE WHEN stt->'stt_disabled' = 'false' THEN 'true' ELSE 'false' END) AS stt_enabled FROM settings s, jsonb_extract_path(s.settings, 'sass') AS stt | |
query: stt->'stt_disabled' != 'false' AS stt_enabled FROM settings s, jsonb_extract_path(s.settings, 'sass') AS stt |
Codecov Report
@@ Coverage Diff @@
## main #1131 +/- ##
==========================================
+ Coverage 49.06% 49.22% +0.15%
==========================================
Files 182 148 -34
Lines 21448 19429 -2019
==========================================
- Hits 10524 9563 -961
+ Misses 9747 8726 -1021
+ Partials 1177 1140 -37
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
PMM-10068