Skip to content

Commit caba63f

Browse files
committed
Merge remote-tracking branch 'upstream/master' into logs-ui-server-np-shim
2 parents 46591d0 + ca55402 commit caba63f

File tree

336 files changed

+4025
-2014
lines changed

Some content is hidden

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

336 files changed

+4025
-2014
lines changed

.ci/end2end.groovy

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
#!/usr/bin/env groovy
2+
3+
library identifier: 'apm@current',
4+
retriever: modernSCM(
5+
[$class: 'GitSCMSource',
6+
credentialsId: 'f94e9298-83ae-417e-ba91-85c279771570',
7+
id: '37cf2c00-2cc7-482e-8c62-7bbffef475e2',
8+
remote: '[email protected]:elastic/apm-pipeline-library.git'])
9+
10+
pipeline {
11+
agent { label 'linux && immutable' }
12+
environment {
13+
BASE_DIR = 'src/github.com/elastic/kibana'
14+
HOME = "${env.WORKSPACE}"
15+
APM_ITS = 'apm-integration-testing'
16+
CYPRESS_DIR = 'x-pack/legacy/plugins/apm/cypress'
17+
PIPELINE_LOG_LEVEL = 'DEBUG'
18+
}
19+
options {
20+
timeout(time: 1, unit: 'HOURS')
21+
buildDiscarder(logRotator(numToKeepStr: '40', artifactNumToKeepStr: '20', daysToKeepStr: '30'))
22+
timestamps()
23+
ansiColor('xterm')
24+
disableResume()
25+
durabilityHint('PERFORMANCE_OPTIMIZED')
26+
}
27+
triggers {
28+
issueCommentTrigger('(?i).*jenkins\\W+run\\W+(?:the\\W+)?e2e(?:\\W+please)?.*')
29+
}
30+
parameters {
31+
booleanParam(name: 'FORCE', defaultValue: false, description: 'Whether to force the run.')
32+
}
33+
stages {
34+
stage('Checkout') {
35+
options { skipDefaultCheckout() }
36+
steps {
37+
deleteDir()
38+
gitCheckout(basedir: "${BASE_DIR}", githubNotifyFirstTimeContributor: false,
39+
shallow: false, reference: "/var/lib/jenkins/.git-references/kibana.git")
40+
script {
41+
dir("${BASE_DIR}"){
42+
def regexps =[ "^x-pack/legacy/plugins/apm/.*" ]
43+
env.APM_UPDATED = isGitRegionMatch(patterns: regexps)
44+
}
45+
}
46+
dir("${APM_ITS}"){
47+
git changelog: false,
48+
credentialsId: 'f6c7695a-671e-4f4f-a331-acdce44ff9ba',
49+
poll: false,
50+
url: "[email protected]:elastic/${APM_ITS}.git"
51+
}
52+
}
53+
}
54+
stage('Start services') {
55+
options { skipDefaultCheckout() }
56+
when {
57+
anyOf {
58+
expression { return params.FORCE }
59+
expression { return env.APM_UPDATED != "false" }
60+
}
61+
}
62+
steps {
63+
dir("${APM_ITS}"){
64+
sh './scripts/compose.py start master --no-kibana --no-xpack-secure'
65+
}
66+
}
67+
}
68+
stage('Prepare Kibana') {
69+
options { skipDefaultCheckout() }
70+
when {
71+
anyOf {
72+
expression { return params.FORCE }
73+
expression { return env.APM_UPDATED != "false" }
74+
}
75+
}
76+
environment {
77+
JENKINS_NODE_COOKIE = 'dontKillMe'
78+
}
79+
steps {
80+
dir("${BASE_DIR}"){
81+
sh script: "${CYPRESS_DIR}/ci/prepare-kibana.sh"
82+
}
83+
}
84+
}
85+
stage('Smoke Tests'){
86+
options { skipDefaultCheckout() }
87+
when {
88+
anyOf {
89+
expression { return params.FORCE }
90+
expression { return env.APM_UPDATED != "false" }
91+
}
92+
}
93+
steps{
94+
dir("${BASE_DIR}"){
95+
sh '''
96+
jobs -l
97+
docker build --tag cypress ${CYPRESS_DIR}/ci
98+
docker run --rm -t --user "$(id -u):$(id -g)" \
99+
-v `pwd`:/app --network="host" \
100+
--name cypress cypress'''
101+
}
102+
}
103+
post {
104+
always {
105+
dir("${BASE_DIR}"){
106+
archiveArtifacts(allowEmptyArchive: false, artifacts: "${CYPRESS_DIR}/screenshots/**,${CYPRESS_DIR}/videos/**,${CYPRESS_DIR}/*e2e-tests.xml")
107+
junit(allowEmptyResults: true, testResults: "${CYPRESS_DIR}/*e2e-tests.xml")
108+
}
109+
dir("${APM_ITS}"){
110+
sh 'docker-compose logs > apm-its.log || true'
111+
sh 'docker-compose down -v || true'
112+
archiveArtifacts(allowEmptyArchive: false, artifacts: 'apm-its.log')
113+
}
114+
}
115+
}
116+
}
117+
}
118+
post {
119+
always {
120+
dir("${BASE_DIR}"){
121+
archiveArtifacts(allowEmptyArchive: true, artifacts: "${CYPRESS_DIR}/ingest-data.log,kibana.log")
122+
}
123+
}
124+
}
125+
}

.github/CODEOWNERS

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# App
66
/x-pack/legacy/plugins/lens/ @elastic/kibana-app
77
/x-pack/legacy/plugins/graph/ @elastic/kibana-app
8+
/src/legacy/server/sample_data/ @elastic/kibana-app
89

910
# App Architecture
1011
/src/plugins/data/ @elastic/kibana-app-arch
@@ -66,14 +67,25 @@
6667
/packages/kbn-es/ @elastic/kibana-operations
6768
/packages/kbn-pm/ @elastic/kibana-operations
6869
/packages/kbn-test/ @elastic/kibana-operations
70+
/src/legacy/server/keystore/ @elastic/kibana-operations
71+
/src/legacy/server/pid/ @elastic/kibana-operations
72+
/src/legacy/server/sass/ @elastic/kibana-operations
73+
/src/legacy/server/utils/ @elastic/kibana-operations
74+
/src/legacy/server/warnings/ @elastic/kibana-operations
6975

7076
# Platform
7177
/src/core/ @elastic/kibana-platform
72-
/src/legacy/server/saved_objects/ @elastic/kibana-platform
7378
/config/kibana.yml @elastic/kibana-platform
7479
/x-pack/plugins/features/ @elastic/kibana-platform
7580
/x-pack/plugins/licensing/ @elastic/kibana-platform
7681
/packages/kbn-config-schema/ @elastic/kibana-platform
82+
/src/legacy/server/config/ @elastic/kibana-platform
83+
/src/legacy/server/csp/ @elastic/kibana-platform
84+
/src/legacy/server/http/ @elastic/kibana-platform
85+
/src/legacy/server/i18n/ @elastic/kibana-platform
86+
/src/legacy/server/logging/ @elastic/kibana-platform
87+
/src/legacy/server/saved_objects/ @elastic/kibana-platform
88+
/src/legacy/server/status/ @elastic/kibana-platform
7789

7890
# Security
7991
/x-pack/legacy/plugins/security/ @elastic/kibana-security

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,14 @@ To activate the APM agent, use the [`active`](https://www.elastic.co/guide/en/ap
387387
All config options can be set either via environment variables, or by creating an appropriate config file under `config/apm.dev.js`.
388388
For more information about configuring the APM agent, please refer to [the documentation](https://www.elastic.co/guide/en/apm/agent/nodejs/current/configuring-the-agent.html).
389389

390+
Example `config/apm.dev.js` file:
391+
392+
```js
393+
module.exports = {
394+
active: true,
395+
};
396+
```
397+
390398
Once the agent is active, it will trace all incoming HTTP requests to Kibana, monitor for errors, and collect process-level metrics.
391399
The collected data will be sent to the APM Server and is viewable in the APM UI in Kibana.
392400

docs/development/core/public/kibana-plugin-public.chromestart.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export interface ChromeStart
3939
| [setBrand(brand)](./kibana-plugin-public.chromestart.setbrand.md) | Set the brand configuration. |
4040
| [setBreadcrumbs(newBreadcrumbs)](./kibana-plugin-public.chromestart.setbreadcrumbs.md) | Override the current set of breadcrumbs |
4141
| [setHelpExtension(helpExtension)](./kibana-plugin-public.chromestart.sethelpextension.md) | Override the current set of custom help content |
42+
| [setHelpSupportUrl(url)](./kibana-plugin-public.chromestart.sethelpsupporturl.md) | Override the default support URL shown in the help menu |
4243
| [setIsCollapsed(isCollapsed)](./kibana-plugin-public.chromestart.setiscollapsed.md) | Set the collapsed state of the chrome navigation. |
4344
| [setIsVisible(isVisible)](./kibana-plugin-public.chromestart.setisvisible.md) | Set the temporary visibility for the chrome. This does nothing if the chrome is hidden by default and should be used to hide the chrome for things like full-screen modes with an exit button. |
4445

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-public](./kibana-plugin-public.md) &gt; [ChromeStart](./kibana-plugin-public.chromestart.md) &gt; [setHelpSupportUrl](./kibana-plugin-public.chromestart.sethelpsupporturl.md)
4+
5+
## ChromeStart.setHelpSupportUrl() method
6+
7+
Override the default support URL shown in the help menu
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
setHelpSupportUrl(url: string): void;
13+
```
14+
15+
## Parameters
16+
17+
| Parameter | Type | Description |
18+
| --- | --- | --- |
19+
| url | <code>string</code> | |
20+
21+
<b>Returns:</b>
22+
23+
`void`
24+

docs/development/core/public/kibana-plugin-public.savedobjectsclient.find.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ Search for objects
99
<b>Signature:</b>
1010

1111
```typescript
12-
find: <T extends SavedObjectAttributes>(options: Pick<SavedObjectFindOptionsServer, "search" | "filter" | "type" | "fields" | "searchFields" | "defaultSearchOperator" | "hasReference" | "sortField" | "page" | "perPage">) => Promise<SavedObjectsFindResponsePublic<T>>;
12+
find: <T extends SavedObjectAttributes>(options: Pick<SavedObjectFindOptionsServer, "search" | "filter" | "type" | "page" | "fields" | "searchFields" | "defaultSearchOperator" | "hasReference" | "sortField" | "perPage">) => Promise<SavedObjectsFindResponsePublic<T>>;
1313
```

docs/development/core/public/kibana-plugin-public.savedobjectsclient.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export declare class SavedObjectsClient
2020
| [bulkGet](./kibana-plugin-public.savedobjectsclient.bulkget.md) | | <code>(objects?: {</code><br/><code> id: string;</code><br/><code> type: string;</code><br/><code> }[]) =&gt; Promise&lt;SavedObjectsBatchResponse&lt;SavedObjectAttributes&gt;&gt;</code> | Returns an array of objects by id |
2121
| [create](./kibana-plugin-public.savedobjectsclient.create.md) | | <code>&lt;T extends SavedObjectAttributes&gt;(type: string, attributes: T, options?: SavedObjectsCreateOptions) =&gt; Promise&lt;SimpleSavedObject&lt;T&gt;&gt;</code> | Persists an object |
2222
| [delete](./kibana-plugin-public.savedobjectsclient.delete.md) | | <code>(type: string, id: string) =&gt; Promise&lt;{}&gt;</code> | Deletes an object |
23-
| [find](./kibana-plugin-public.savedobjectsclient.find.md) | | <code>&lt;T extends SavedObjectAttributes&gt;(options: Pick&lt;SavedObjectFindOptionsServer, &quot;search&quot; &#124; &quot;filter&quot; &#124; &quot;type&quot; &#124; &quot;fields&quot; &#124; &quot;searchFields&quot; &#124; &quot;defaultSearchOperator&quot; &#124; &quot;hasReference&quot; &#124; &quot;sortField&quot; &#124; &quot;page&quot; &#124; &quot;perPage&quot;&gt;) =&gt; Promise&lt;SavedObjectsFindResponsePublic&lt;T&gt;&gt;</code> | Search for objects |
23+
| [find](./kibana-plugin-public.savedobjectsclient.find.md) | | <code>&lt;T extends SavedObjectAttributes&gt;(options: Pick&lt;SavedObjectFindOptionsServer, &quot;search&quot; &#124; &quot;filter&quot; &#124; &quot;type&quot; &#124; &quot;page&quot; &#124; &quot;fields&quot; &#124; &quot;searchFields&quot; &#124; &quot;defaultSearchOperator&quot; &#124; &quot;hasReference&quot; &#124; &quot;sortField&quot; &#124; &quot;perPage&quot;&gt;) =&gt; Promise&lt;SavedObjectsFindResponsePublic&lt;T&gt;&gt;</code> | Search for objects |
2424
| [get](./kibana-plugin-public.savedobjectsclient.get.md) | | <code>&lt;T extends SavedObjectAttributes&gt;(type: string, id: string) =&gt; Promise&lt;SimpleSavedObject&lt;T&gt;&gt;</code> | Fetches a single object |
2525

2626
## Methods

docs/development/core/server/kibana-plugin-server.plugininitializercontext.config.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
```typescript
1010
config: {
11+
legacy: {
12+
globalConfig$: Observable<SharedGlobalConfig>;
13+
};
1114
create: <T = ConfigSchema>() => Observable<T>;
1215
createIfExists: <T = ConfigSchema>() => Observable<T | undefined>;
1316
};

docs/development/core/server/kibana-plugin-server.plugininitializercontext.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export interface PluginInitializerContext<ConfigSchema = unknown>
1616

1717
| Property | Type | Description |
1818
| --- | --- | --- |
19-
| [config](./kibana-plugin-server.plugininitializercontext.config.md) | <code>{</code><br/><code> create: &lt;T = ConfigSchema&gt;() =&gt; Observable&lt;T&gt;;</code><br/><code> createIfExists: &lt;T = ConfigSchema&gt;() =&gt; Observable&lt;T &#124; undefined&gt;;</code><br/><code> }</code> | |
19+
| [config](./kibana-plugin-server.plugininitializercontext.config.md) | <code>{</code><br/><code> legacy: {</code><br/><code> globalConfig$: Observable&lt;SharedGlobalConfig&gt;;</code><br/><code> };</code><br/><code> create: &lt;T = ConfigSchema&gt;() =&gt; Observable&lt;T&gt;;</code><br/><code> createIfExists: &lt;T = ConfigSchema&gt;() =&gt; Observable&lt;T &#124; undefined&gt;;</code><br/><code> }</code> | |
2020
| [env](./kibana-plugin-server.plugininitializercontext.env.md) | <code>{</code><br/><code> mode: EnvironmentMode;</code><br/><code> packageInfo: Readonly&lt;PackageInfo&gt;;</code><br/><code> }</code> | |
2121
| [logger](./kibana-plugin-server.plugininitializercontext.logger.md) | <code>LoggerFactory</code> | |
2222
| [opaqueId](./kibana-plugin-server.plugininitializercontext.opaqueid.md) | <code>PluginOpaqueId</code> | |
79 KB
Loading

0 commit comments

Comments
 (0)