Fix HostId field in the testnet dashboard

This commit is contained in:
Michael Vines
2019-06-13 14:37:12 -07:00
parent ed05aeaef8
commit 8628f33d0b
2 changed files with 21 additions and 4 deletions

View File

@ -46,7 +46,24 @@ if channel == 'local':
'text': 'testnet',
'value': 'testnet'}],
'query': 'testnet',
'type': 'custom'}]
'type': 'custom'},
{'allValue': ".*",
'datasource': '$datasource',
'hide': 0,
'includeAll': True,
'label': 'HostID',
'multi': False,
'name': 'hostid',
'options': [],
'query': 'SELECT DISTINCT(\"host_id\") FROM \"$testnet\".\"autogen\".\"validator-new\" ',
'refresh': 2,
'regex': '',
'sort': 1,
'tagValuesQuery': '',
'tags': [],
'tagsQuery': '',
'type': 'query',
'useTags': False}]
elif channel == 'stable':
# Stable dashboard only allows the user to select between the stable
@ -121,7 +138,7 @@ else:
'multi': False,
'name': 'hostid',
'options': [],
'query': 'SELECT DISTINCT(\"host_id\") FROM \"$testnet\".\"autogen\".\"counter-fullnode-new\" ',
'query': 'SELECT DISTINCT(\"host_id\") FROM \"$testnet\".\"autogen\".\"validator-new\" ',
'refresh': 2,
'regex': '',
'sort': 1,