Skip to content

Commit

Permalink
[APM] Fixes incorrect index config names (elastic#114901)
Browse files Browse the repository at this point in the history
  • Loading branch information
ogupte committed Oct 13, 2021
1 parent feed739 commit 7ea825d
Show file tree
Hide file tree
Showing 34 changed files with 180 additions and 180 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,12 @@ kibana_vars=(
xpack.alerts.invalidateApiKeysTask.interval
xpack.alerts.invalidateApiKeysTask.removalDelay
xpack.apm.enabled
xpack.apm.indices.errors
xpack.apm.indices.metrics
xpack.apm.indices.error
xpack.apm.indices.metric
xpack.apm.indices.onboarding
xpack.apm.indices.sourcemaps
xpack.apm.indices.spans
xpack.apm.indices.transactions
xpack.apm.indices.sourcemap
xpack.apm.indices.span
xpack.apm.indices.transaction
xpack.apm.maxServiceEnvironments
xpack.apm.searchAggregatedTransactions
xpack.apm.serviceMapEnabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ describe('No data screen', () => {
url: apmIndicesSaveURL,
method: 'POST',
body: {
sourcemaps: 'foo-*',
errors: 'foo-*',
sourcemap: 'foo-*',
error: 'foo-*',
onboarding: 'foo-*',
spans: 'foo-*',
transactions: 'foo-*',
metrics: 'foo-*',
span: 'foo-*',
transaction: 'foo-*',
metric: 'foo-*',
},
headers: {
'kbn-xsrf': true,
Expand All @@ -49,12 +49,12 @@ describe('No data screen', () => {
url: apmIndicesSaveURL,
method: 'POST',
body: {
sourcemaps: '',
errors: '',
sourcemap: '',
error: '',
onboarding: '',
spans: '',
transactions: '',
metrics: '',
span: '',
transaction: '',
metric: '',
},
headers: { 'kbn-xsrf': true },
auth: { user: 'apm_power_user', pass: 'changeme' },
Expand Down
20 changes: 10 additions & 10 deletions x-pack/plugins/apm/public/utils/testHelpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ interface MockSetup {
config: APMConfig;
uiFilters: UxUIFilters;
indices: {
sourcemaps: string;
errors: string;
sourcemap: string;
error: string;
onboarding: string;
spans: string;
transactions: string;
metrics: string;
span: string;
transaction: string;
metric: string;
apmAgentConfigurationIndex: string;
apmCustomLinkIndex: string;
};
Expand Down Expand Up @@ -176,12 +176,12 @@ export async function inspectSearchParams(
) as APMConfig,
uiFilters: {},
indices: {
sourcemaps: 'myIndex',
errors: 'myIndex',
sourcemap: 'myIndex',
error: 'myIndex',
onboarding: 'myIndex',
spans: 'myIndex',
transactions: 'myIndex',
metrics: 'myIndex',
span: 'myIndex',
transaction: 'myIndex',
metric: 'myIndex',
apmAgentConfigurationIndex: 'myIndex',
apmCustomLinkIndex: 'myIndex',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,22 +189,22 @@
},
"apm-indices": {
"properties": {
"errors": {
"error": {
"type": "keyword"
},
"metrics": {
"metric": {
"type": "keyword"
},
"onboarding": {
"type": "keyword"
},
"sourcemaps": {
"sourcemap": {
"type": "keyword"
},
"spans": {
"span": {
"type": "keyword"
},
"transactions": {
"transaction": {
"type": "keyword"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,22 +216,22 @@
},
"apm-indices": {
"properties": {
"errors": {
"error": {
"type": "keyword"
},
"metrics": {
"metric": {
"type": "keyword"
},
"onboarding": {
"type": "keyword"
},
"sourcemaps": {
"sourcemap": {
"type": "keyword"
},
"spans": {
"span": {
"type": "keyword"
},
"transactions": {
"transaction": {
"type": "keyword"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,22 +214,22 @@
},
"apm-indices": {
"properties": {
"errors": {
"error": {
"type": "keyword"
},
"metrics": {
"metric": {
"type": "keyword"
},
"onboarding": {
"type": "keyword"
},
"sourcemaps": {
"sourcemap": {
"type": "keyword"
},
"spans": {
"span": {
"type": "keyword"
},
"transactions": {
"transaction": {
"type": "keyword"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,22 +206,22 @@
},
"apm-indices": {
"properties": {
"errors": {
"error": {
"type": "keyword"
},
"metrics": {
"metric": {
"type": "keyword"
},
"onboarding": {
"type": "keyword"
},
"sourcemaps": {
"sourcemap": {
"type": "keyword"
},
"spans": {
"span": {
"type": "keyword"
},
"transactions": {
"transaction": {
"type": "keyword"
}
}
Expand Down
10 changes: 5 additions & 5 deletions x-pack/test/functional/es_archives/actions/mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,22 +202,22 @@
},
"apm-indices": {
"properties": {
"errors": {
"error": {
"type": "keyword"
},
"metrics": {
"metric": {
"type": "keyword"
},
"onboarding": {
"type": "keyword"
},
"sourcemaps": {
"sourcemap": {
"type": "keyword"
},
"spans": {
"span": {
"type": "keyword"
},
"transactions": {
"transaction": {
"type": "keyword"
}
}
Expand Down
10 changes: 5 additions & 5 deletions x-pack/test/functional/es_archives/alerts_legacy/mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,22 +198,22 @@
},
"apm-indices": {
"properties": {
"errors": {
"error": {
"type": "keyword"
},
"metrics": {
"metric": {
"type": "keyword"
},
"onboarding": {
"type": "keyword"
},
"sourcemaps": {
"sourcemap": {
"type": "keyword"
},
"spans": {
"span": {
"type": "keyword"
},
"transactions": {
"transaction": {
"type": "keyword"
}
}
Expand Down
10 changes: 5 additions & 5 deletions x-pack/test/functional/es_archives/canvas/reports/mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,22 +229,22 @@
},
"apm-indices": {
"properties": {
"errors": {
"error": {
"type": "keyword"
},
"metrics": {
"metric": {
"type": "keyword"
},
"onboarding": {
"type": "keyword"
},
"sourcemaps": {
"sourcemap": {
"type": "keyword"
},
"spans": {
"span": {
"type": "keyword"
},
"transactions": {
"transaction": {
"type": "keyword"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,22 +199,22 @@
},
"apm-indices": {
"properties": {
"errors": {
"error": {
"type": "keyword"
},
"metrics": {
"metric": {
"type": "keyword"
},
"onboarding": {
"type": "keyword"
},
"sourcemaps": {
"sourcemap": {
"type": "keyword"
},
"spans": {
"span": {
"type": "keyword"
},
"transactions": {
"transaction": {
"type": "keyword"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,22 +254,22 @@
},
"apm-indices": {
"properties": {
"errors": {
"error": {
"type": "keyword"
},
"metrics": {
"metric": {
"type": "keyword"
},
"onboarding": {
"type": "keyword"
},
"sourcemaps": {
"sourcemap": {
"type": "keyword"
},
"spans": {
"span": {
"type": "keyword"
},
"transactions": {
"transaction": {
"type": "keyword"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,22 +260,22 @@
},
"apm-indices": {
"properties": {
"errors": {
"error": {
"type": "keyword"
},
"metrics": {
"metric": {
"type": "keyword"
},
"onboarding": {
"type": "keyword"
},
"sourcemaps": {
"sourcemap": {
"type": "keyword"
},
"spans": {
"span": {
"type": "keyword"
},
"transactions": {
"transaction": {
"type": "keyword"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,22 +261,22 @@
},
"apm-indices": {
"properties": {
"errors": {
"error": {
"type": "keyword"
},
"metrics": {
"metric": {
"type": "keyword"
},
"onboarding": {
"type": "keyword"
},
"sourcemaps": {
"sourcemap": {
"type": "keyword"
},
"spans": {
"span": {
"type": "keyword"
},
"transactions": {
"transaction": {
"type": "keyword"
}
}
Expand Down
Loading

0 comments on commit 7ea825d

Please sign in to comment.