Skip to content

Commit 7d56ca3

Browse files
Merge branch 'master' into read-priv-fix-message
2 parents 43df6be + 170a295 commit 7d56ca3

File tree

7,991 files changed

+45288
-128185
lines changed

Some content is hidden

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

7,991 files changed

+45288
-128185
lines changed

.eslintrc.js

Lines changed: 58 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
11
/*
2-
* Licensed to Elasticsearch B.V. under one or more contributor
3-
* license agreements. See the NOTICE file distributed with
4-
* this work for additional information regarding copyright
5-
* ownership. Elasticsearch B.V. licenses this file to you under
6-
* the Apache License, Version 2.0 (the "License"); you may
7-
* not use this file except in compliance with the License.
8-
* You may obtain a copy of the License at
9-
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
11-
*
12-
* Unless required by applicable law or agreed to in writing,
13-
* software distributed under the License is distributed on an
14-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
* KIND, either express or implied. See the License for the
16-
* specific language governing permissions and limitations
17-
* under the License.
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License
4+
* and the Server Side Public License, v 1; you may not use this file except in
5+
* compliance with, at your election, the Elastic License or the Server Side
6+
* Public License, v 1.
187
*/
198

209
const APACHE_2_0_LICENSE_HEADER = `
@@ -38,6 +27,16 @@ const APACHE_2_0_LICENSE_HEADER = `
3827
*/
3928
`;
4029

30+
const DUAL_LICENSE_HEADER = `
31+
/*
32+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
33+
* or more contributor license agreements. Licensed under the Elastic License
34+
* and the Server Side Public License, v 1; you may not use this file except in
35+
* compliance with, at your election, the Elastic License or the Server Side
36+
* Public License, v 1.
37+
*/
38+
`;
39+
4140
const ELASTIC_LICENSE_HEADER = `
4241
/*
4342
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
@@ -113,12 +112,47 @@ module.exports = {
113112
},
114113

115114
/**
116-
* Files that require Apache 2.0 headers, settings
115+
* Files that require dual-license headers, settings
117116
* are overridden below for files that require Elastic
118117
* Licence headers
119118
*/
120119
{
121-
files: ['**/*.{js,mjs,ts,tsx}', '!plugins/**/*'],
120+
files: [
121+
'**/*.{js,mjs,ts,tsx}',
122+
'!plugins/**/*',
123+
'!packages/elastic-datemath/**/*',
124+
'!packages/elastic-eslint-config-kibana/**/*',
125+
],
126+
rules: {
127+
'@kbn/eslint/require-license-header': [
128+
'error',
129+
{
130+
license: DUAL_LICENSE_HEADER,
131+
},
132+
],
133+
'@kbn/eslint/disallow-license-headers': [
134+
'error',
135+
{
136+
licenses: [
137+
APACHE_2_0_LICENSE_HEADER,
138+
ELASTIC_LICENSE_HEADER,
139+
SAFER_LODASH_SET_HEADER,
140+
SAFER_LODASH_SET_LODASH_HEADER,
141+
SAFER_LODASH_SET_DEFINITELYTYPED_HEADER,
142+
],
143+
},
144+
],
145+
},
146+
},
147+
148+
/**
149+
* Files that require Apache headers
150+
*/
151+
{
152+
files: [
153+
'packages/elastic-datemath/**/*.{js,mjs,ts,tsx}',
154+
'packages/elastic-eslint-config-kibana/**/*.{js,mjs,ts,tsx}',
155+
],
122156
rules: {
123157
'@kbn/eslint/require-license-header': [
124158
'error',
@@ -130,6 +164,7 @@ module.exports = {
130164
'error',
131165
{
132166
licenses: [
167+
DUAL_LICENSE_HEADER,
133168
ELASTIC_LICENSE_HEADER,
134169
SAFER_LODASH_SET_HEADER,
135170
SAFER_LODASH_SET_LODASH_HEADER,
@@ -151,7 +186,7 @@ module.exports = {
151186
},
152187

153188
/**
154-
* Files that require Elastic license headers instead of Apache 2.0 header
189+
* Files that require Elastic license headers instead of dual-license header
155190
*/
156191
{
157192
files: ['x-pack/**/*.{js,mjs,ts,tsx}'],
@@ -166,6 +201,7 @@ module.exports = {
166201
'error',
167202
{
168203
licenses: [
204+
DUAL_LICENSE_HEADER,
169205
APACHE_2_0_LICENSE_HEADER,
170206
SAFER_LODASH_SET_HEADER,
171207
SAFER_LODASH_SET_LODASH_HEADER,
@@ -192,6 +228,7 @@ module.exports = {
192228
'error',
193229
{
194230
licenses: [
231+
DUAL_LICENSE_HEADER,
195232
ELASTIC_LICENSE_HEADER,
196233
APACHE_2_0_LICENSE_HEADER,
197234
SAFER_LODASH_SET_HEADER,
@@ -214,6 +251,7 @@ module.exports = {
214251
'error',
215252
{
216253
licenses: [
254+
DUAL_LICENSE_HEADER,
217255
ELASTIC_LICENSE_HEADER,
218256
APACHE_2_0_LICENSE_HEADER,
219257
SAFER_LODASH_SET_LODASH_HEADER,
@@ -236,6 +274,7 @@ module.exports = {
236274
'error',
237275
{
238276
licenses: [
277+
DUAL_LICENSE_HEADER,
239278
ELASTIC_LICENSE_HEADER,
240279
APACHE_2_0_LICENSE_HEADER,
241280
SAFER_LODASH_SET_HEADER,

.teamcity/pom.xml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
11
<?xml version="1.0"?>
22
<!--
3-
~ Licensed to Elasticsearch under one or more contributor
4-
~ license agreements. See the NOTICE file distributed with
5-
~ this work for additional information regarding copyright
6-
~ ownership. Elasticsearch licenses this file to you under
7-
~ the Apache License, Version 2.0 (the "License"); you may
8-
~ not use this file except in compliance with the License.
9-
~ You may obtain a copy of the License at
10-
~
11-
~ http://www.apache.org/licenses/LICENSE-2.0
12-
~
13-
~ Unless required by applicable law or agreed to in writing,
14-
~ software distributed under the License is distributed on an
15-
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16-
~ KIND, either express or implied. See the License for the
17-
~ specific language governing permissions and limitations
18-
~ under the License.
3+
~ Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4+
~ or more contributor license agreements. Licensed under the Elastic License
5+
~ and the Server Side Public License, v 1; you may not use this file except in
6+
~ compliance with, at your election, the Elastic License or the Server Side
7+
~ Public License, v 1.
198
-->
209

2110
<project>

.teamcity/src/Extensions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fun BuildType.addTestSettings() {
5050

5151
fun BuildType.addSlackNotifications(to: String = "#kibana-teamcity-testing") {
5252
params {
53-
param("elastic.slack.enabled", "true")
53+
param("elastic.slack.enabled", isReportingEnabled().toString())
5454
param("elastic.slack.channels", to)
5555
}
5656
}

Gruntfile.js

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
11
/*
2-
* Licensed to Elasticsearch B.V. under one or more contributor
3-
* license agreements. See the NOTICE file distributed with
4-
* this work for additional information regarding copyright
5-
* ownership. Elasticsearch B.V. licenses this file to you under
6-
* the Apache License, Version 2.0 (the "License"); you may
7-
* not use this file except in compliance with the License.
8-
* You may obtain a copy of the License at
9-
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
11-
*
12-
* Unless required by applicable law or agreed to in writing,
13-
* software distributed under the License is distributed on an
14-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
* KIND, either express or implied. See the License for the
16-
* specific language governing permissions and limitations
17-
* under the License.
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License
4+
* and the Server Side Public License, v 1; you may not use this file except in
5+
* compliance with, at your election, the Elastic License or the Server Side
6+
* Public License, v 1.
187
*/
198

209
require('./src/setup_node_env');

LICENSE.txt

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
Source code in this repository is variously licensed under the Apache License
2-
Version 2.0, an Apache compatible license, or the Elastic License. Outside of
3-
the "x-pack" folder, source code in a given file is licensed under the Apache
4-
License Version 2.0, unless otherwise noted at the beginning of the file or a
5-
LICENSE file present in the directory subtree declares a separate license.
6-
Within the "x-pack" folder, source code in a given file is licensed under the
7-
Elastic License, unless otherwise noted at the beginning of the file or a
8-
LICENSE file present in the directory subtree declares a separate license.
9-
10-
The build produces two sets of binaries - one set that falls under the Elastic
11-
License and another set that falls under Apache License Version 2.0. The
12-
binaries that contain `-oss` in the artifact name are licensed under the Apache
13-
License Version 2.0.
1+
Source code in this repository is covered by (i) a dual license under the Server
2+
Side Public License, v 1 and the Elastic License or (ii) an Apache License 2.0
3+
compatible license or (iii) solely under the Elastic License, in each case, as
4+
noted in the applicable header. The default throughout the repository is a dual
5+
license under the Server Side Public License, v 1 and the Elastic License,
6+
unless the header specifies another license. Code that is licensed solely under
7+
the Elastic License is found only in the x-pack folder.

docs/canvas/canvas-elements.asciidoc

Lines changed: 0 additions & 167 deletions
This file was deleted.

0 commit comments

Comments
 (0)