Skip to content

Commit 971faaa

Browse files
author
Stacey Gammon
committed
Merge branch 'master' of github.com:elastic/kibana into 2020-03-23-embed-factory-interface
2 parents cb40ba2 + cf81ef6 commit 971faaa

File tree

145 files changed

+1635
-1184
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+1635
-1184
lines changed

.github/paths-labeller.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
---
2-
- "Team:AppArch":
3-
- "src/plugins/bfetch/**/*.*"
4-
- "src/plugins/dashboard_embeddable_container/**/*.*"
5-
- "src/plugins/data/**/*.*"
6-
- "src/plugins/embeddable/**/*.*"
7-
- "src/plugins/expressions/**/*.*"
8-
- "src/plugins/inspector/**/*.*"
9-
- "src/plugins/ui_actions/**/*.*"
10-
- "src/plugins/visualizations/**/*.*"
112
- "Feature:Embedding":
123
- "src/plugins/embeddable/**/*.*"
134
- "src/plugins/dashboard_embeddable_container/**/*.*"

docs/migration/migrate_8_0.asciidoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,13 @@ access level.
141141
been deprecated with warnings that have been logged throughout 7.x. Please use Kibana UI to re-generate the
142142
POST URL snippets if you depend on these for automated PDF reports.
143143

144+
[float]
145+
=== Configurations starting with `xpack.telemetry` are no longer valid
146+
147+
*Details:*
148+
The `xpack.` prefix has been removed for all telemetry configurations.
149+
150+
*Impact:*
151+
For any configurations beginning with `xpack.telemetry`, remove the `xpack` prefix. Use {kibana-ref}/telemetry-settings-kbn.html#telemetry-general-settings[`telemetry.enabled`] instead.
152+
144153
// end::notable-breaking-changes[]
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[[telemetry-settings-kbn]]
2+
=== Telemetry settings in Kibana
3+
++++
4+
<titleabbrev>Telemetry settings</titleabbrev>
5+
++++
6+
7+
By default, Usage Collection (also known as Telemetry) is enabled. This
8+
helps us learn about the {kib} features that our users are most interested in, so we
9+
can focus our efforts on making them even better.
10+
11+
You can control whether this data is sent from the {kib} servers, or if it should be sent
12+
from the user's browser, in case a firewall is blocking the connections from the server. Additionally, you can decide to completely disable this feature either in the config file or in {kib} via *Management > Kibana > Advanced Settings > Usage Data*.
13+
14+
See our https://www.elastic.co/legal/privacy-statement[Privacy Statement] to learn more.
15+
16+
[float]
17+
[[telemetry-general-settings]]
18+
==== General telemetry settings
19+
20+
`telemetry.enabled`:: *Default: true*.
21+
Set to `true` to send cluster statistics to Elastic. Reporting your
22+
cluster statistics helps us improve your user experience. Your data is never
23+
shared with anyone. Set to `false` to disable statistics reporting from any
24+
browser connected to the {kib} instance.
25+
26+
`telemetry.sendUsageFrom`:: *Default: 'browser'*.
27+
Set to `'server'` to report the cluster statistics from the {kib} server.
28+
If the server fails to connect to our endpoint at https://telemetry.elastic.co/, it assumes
29+
it is behind a firewall and falls back to `'browser'` to send it from users' browsers
30+
when they are navigating through {kib}.
31+
32+
`telemetry.optIn`:: *Default: true*.
33+
Set to `true` to automatically opt into reporting cluster statistics. You can also opt out through
34+
*Advanced Settings* in {kib}.
35+
36+
`telemetry.allowChangingOptInStatus`:: *Default: true*.
37+
Set to `true` to allow overwriting the `telemetry.optIn` setting via the {kib} UI.
38+
Note: When `false`, `telemetry.optIn` must be `true`. To disable telemetry and not allow users to change that parameter, use `telemetry.enabled`.

docs/setup/settings.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,3 +463,4 @@ include::{docdir}/settings/reporting-settings.asciidoc[]
463463
include::secure-settings.asciidoc[]
464464
include::{docdir}/settings/security-settings.asciidoc[]
465465
include::{docdir}/settings/spaces-settings.asciidoc[]
466+
include::{docdir}/settings/telemetry-settings.asciidoc[]

kibana.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ import * as LegacyKibanaServer from './src/legacy/server/kbn_server';
3737
*/
3838
// eslint-disable-next-line @typescript-eslint/no-namespace
3939
export namespace Legacy {
40-
export type IndexPatternsService = LegacyKibanaServer.IndexPatternsService;
4140
export type KibanaConfig = LegacyKibanaServer.KibanaConfig;
4241
export type Request = LegacyKibanaServer.Request;
4342
export type ResponseToolkit = LegacyKibanaServer.ResponseToolkit;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@
395395
"babel-eslint": "^10.0.3",
396396
"babel-jest": "^24.9.0",
397397
"babel-plugin-istanbul": "^5.2.0",
398-
"backport": "5.1.2",
398+
"backport": "5.1.3",
399399
"chai": "3.5.0",
400400
"chance": "1.0.18",
401401
"cheerio": "0.22.0",
File renamed without changes.

src/core/server/config/deprecation/core_deprecations.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,6 @@ export const coreDeprecationProvider: ConfigDeprecationProvider = ({
128128
renameFromRoot('optimize.lazyHost', 'optimize.watchHost'),
129129
renameFromRoot('optimize.lazyPrebuild', 'optimize.watchPrebuild'),
130130
renameFromRoot('optimize.lazyProxyTimeout', 'optimize.watchProxyTimeout'),
131-
renameFromRoot('xpack.xpack_main.telemetry.config', 'telemetry.config'),
132-
renameFromRoot('xpack.xpack_main.telemetry.url', 'telemetry.url'),
133-
renameFromRoot('xpack.xpack_main.telemetry.enabled', 'telemetry.enabled'),
134-
renameFromRoot('xpack.telemetry.enabled', 'telemetry.enabled'),
135-
renameFromRoot('xpack.telemetry.config', 'telemetry.config'),
136-
renameFromRoot('xpack.telemetry.banner', 'telemetry.banner'),
137-
renameFromRoot('xpack.telemetry.url', 'telemetry.url'),
138131
// Monitoring renames
139132
// TODO: Remove these from here once the monitoring plugin is migrated to NP
140133
renameFromRoot('xpack.monitoring.enabled', 'monitoring.enabled'),

src/legacy/core_plugins/vis_default_editor/public/components/agg_group.test.tsx

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { IAggConfigs, IAggConfig } from 'src/plugins/data/public';
2424
import { DefaultEditorAggGroup, DefaultEditorAggGroupProps } from './agg_group';
2525
import { DefaultEditorAgg } from './agg';
2626
import { DefaultEditorAggAdd } from './agg_add';
27-
import { Schema } from '../schemas';
27+
import { ISchemas, Schemas } from '../schemas';
2828
import { EditorVisState } from './sidebar/state/reducers';
2929

3030
jest.mock('@elastic/eui', () => ({
@@ -47,6 +47,7 @@ jest.mock('./agg_add', () => ({
4747
describe('DefaultEditorAgg component', () => {
4848
let defaultProps: DefaultEditorAggGroupProps;
4949
let aggs: IAggConfigs;
50+
let schemas: ISchemas;
5051
let setTouched: jest.Mock;
5152
let setValidity: jest.Mock;
5253
let reorderAggs: jest.Mock;
@@ -55,6 +56,18 @@ describe('DefaultEditorAgg component', () => {
5556
setTouched = jest.fn();
5657
setValidity = jest.fn();
5758
reorderAggs = jest.fn();
59+
schemas = new Schemas([
60+
{
61+
name: 'metrics',
62+
group: 'metrics',
63+
max: 1,
64+
},
65+
{
66+
name: 'buckets',
67+
group: 'buckets',
68+
max: 1,
69+
},
70+
]);
5871

5972
aggs = {
6073
aggs: [
@@ -95,18 +108,7 @@ describe('DefaultEditorAgg component', () => {
95108
state: {
96109
data: { aggs },
97110
} as EditorVisState,
98-
schemas: [
99-
{
100-
name: 'metrics',
101-
group: 'metrics',
102-
max: 1,
103-
} as Schema,
104-
{
105-
name: 'buckets',
106-
group: 'buckets',
107-
max: 1,
108-
} as Schema,
109-
],
111+
schemas: schemas.metrics,
110112
setTouched,
111113
setValidity,
112114
reorderAggs,
@@ -133,6 +135,7 @@ describe('DefaultEditorAgg component', () => {
133135

134136
it('should last bucket has truthy isLastBucket prop', () => {
135137
defaultProps.groupName = 'buckets';
138+
defaultProps.schemas = schemas.buckets;
136139
const comp = mount(<DefaultEditorAggGroup {...defaultProps} />);
137140
const lastAgg = comp.find(DefaultEditorAgg).last();
138141

@@ -154,6 +157,8 @@ describe('DefaultEditorAgg component', () => {
154157

155158
it('should show add button when schemas count is less than max', () => {
156159
defaultProps.groupName = 'buckets';
160+
defaultProps.schemas = schemas.buckets;
161+
defaultProps.schemas[0].max = 2;
157162
const comp = shallow(<DefaultEditorAggGroup {...defaultProps} />);
158163

159164
expect(comp.find(DefaultEditorAggAdd).exists()).toBeTruthy();

src/legacy/core_plugins/vis_default_editor/public/components/agg_group.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import {
4141
getEnabledMetricAggsCount,
4242
} from './agg_group_helper';
4343
import { aggGroupReducer, initAggsState, AGGS_ACTION_KEYS } from './agg_group_state';
44-
import { Schema, getSchemasByGroup } from '../schemas';
44+
import { Schema } from '../schemas';
4545
import { TimeRange } from '../../../../../plugins/data/public';
4646

4747
export interface DefaultEditorAggGroupProps extends DefaultEditorAggCommonProps {
@@ -73,7 +73,7 @@ function DefaultEditorAggGroup({
7373
}: DefaultEditorAggGroupProps) {
7474
const groupNameLabel = (search.aggs.aggGroupNamesMap() as any)[groupName];
7575
// e.g. buckets can have no aggs
76-
const schemaNames = getSchemasByGroup(schemas, groupName).map(s => s.name);
76+
const schemaNames = schemas.map(s => s.name);
7777
const group: IAggConfig[] = useMemo(
7878
() =>
7979
state.data.aggs!.aggs.filter(

0 commit comments

Comments
 (0)