[Uptime] Filter bar for type should actually be for scheme (#29854)

Functionally it already filters by scheme, but the label is misleading. The distinction is a particular issue when comparing the filter to the `type` column on the monitor list. Type indicates the monitor type, whereas scheme indicates the URL type. So, items with the `https` scheme have the `http` type because that's the name of the monitor.
This commit is contained in:
Andrew Cholakian 2019-02-05 21:31:48 -06:00 committed by GitHub
parent 31a0f81e3b
commit ebe69ee4e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -157,7 +157,7 @@ exports[`FilterBar component renders the component without errors 1`] = `
Object {
"field": "monitor.type",
"multiSelect": false,
"name": "Type",
"name": "Scheme",
"options": Array [
Object {
"value": "tcp",

View file

@ -98,8 +98,8 @@ export const FilterBar = ({
{
type: 'field_value_selection',
field: 'monitor.type',
name: i18n.translate('xpack.uptime.filterBar.options.typeLabel', {
defaultMessage: 'Type',
name: i18n.translate('xpack.uptime.filterBar.options.schemeLabel', {
defaultMessage: 'Scheme',
}),
multiSelect: false,
options: schemes