Skip to content

Commit 78f36f4

Browse files
Merge branch 'master' into fixes-search-bar
2 parents 1f0ca79 + 46a268f commit 78f36f4

File tree

1,490 files changed

+58158
-47211
lines changed

Some content is hidden

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

1,490 files changed

+58158
-47211
lines changed

.ci/Jenkinsfile_security_cypress

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/groovy
2+
3+
library 'kibana-pipeline-library'
4+
kibanaLibrary.load()
5+
6+
kibanaPipeline(timeoutMinutes: 180) {
7+
slackNotifications.onFailure(
8+
disabled: !params.NOTIFY_ON_FAILURE,
9+
channel: '#security-solution-slack-testing'
10+
) {
11+
catchError {
12+
workers.base(size: 's', ramDisk: false) {
13+
kibanaPipeline.bash('test/scripts/jenkins_security_solution_cypress.sh', 'Execute Security Solution Cypress Tests')
14+
}
15+
}
16+
}
17+
18+
if (params.NOTIFY_ON_FAILURE) {
19+
kibanaPipeline.sendMail(to: 'gloria.delatorre@elastic.co')
20+
}
21+
}

.eslintignore

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,12 @@ target
1818

1919
# plugin overrides
2020
/src/core/lib/kbn_internal_native_observable
21-
/src/legacy/core_plugins/console/public/tests/webpackShims
22-
/src/legacy/core_plugins/console/public/webpackShims
2321
/src/legacy/plugin_discovery/plugin_pack/__tests__/fixtures/plugins/broken
2422
/src/legacy/ui/public/flot-charts
25-
/src/legacy/ui/public/utils/decode_geo_hash.js
2623
/src/plugins/data/common/es_query/kuery/ast/_generated_/**
2724
/src/plugins/vis_type_timelion/public/_generated_/**
28-
/src/plugins/vis_type_timelion/public/webpackShims/jquery.flot.*
29-
/src/plugins/timelion/public/webpackShims/jquery.flot.*
25+
/src/plugins/vis_type_timelion/public/flot/jquery.flot.*
26+
/src/plugins/timelion/public/flot/jquery.flot.*
3027
/x-pack/legacy/plugins/**/__tests__/fixtures/**
3128
/x-pack/plugins/apm/e2e/**/snapshots.js
3229
/x-pack/plugins/apm/e2e/tmp/*

.eslintrc.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ module.exports = {
400400
},
401401
{
402402
target: ['(src|x-pack)/plugins/*/public/**/*'],
403-
from: ['ui/**/*', 'uiExports/**/*'],
403+
from: ['ui/**/*'],
404404
errorMessage: 'Plugins cannot import legacy UI code.',
405405
},
406406
{
@@ -457,14 +457,13 @@ module.exports = {
457457
{
458458
files: [
459459
'**/public/**/*.js',
460-
'**/webpackShims/**/*.js',
461460
'packages/kbn-ui-framework/doc_site/src/**/*.js',
462461
'src/fixtures/**/*.js', // TODO: this directory needs to be more obviously "public" (or go away)
463462
],
464463
settings: {
465464
// instructs import/no-extraneous-dependencies to treat certain modules
466465
// as core modules, even if they aren't listed in package.json
467-
'import/core-modules': ['plugins', 'legacy/ui', 'uiExports'],
466+
'import/core-modules': ['plugins', 'legacy/ui'],
468467

469468
'import/resolver': {
470469
'@kbn/eslint-import-resolver-kibana': {
@@ -605,7 +604,6 @@ module.exports = {
605604
{
606605
files: [
607606
'.eslintrc.js',
608-
'**/webpackShims/**/*.js',
609607
'packages/kbn-plugin-generator/**/*.js',
610608
'packages/kbn-eslint-import-resolver-kibana/**/*.js',
611609
'packages/kbn-eslint-plugin-eslint/**/*',

.github/CODEOWNERS

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
/x-pack/plugins/lens/ @elastic/kibana-app
99
/x-pack/plugins/graph/ @elastic/kibana-app
1010
/src/plugins/dashboard/ @elastic/kibana-app
11+
/src/plugins/dashboard/**/*.scss @elastic/kibana-core-ui-designers
1112
/src/plugins/discover/ @elastic/kibana-app
1213
/src/plugins/input_control_vis/ @elastic/kibana-app
1314
/src/plugins/kibana_legacy/ @elastic/kibana-app
@@ -58,6 +59,7 @@
5859

5960
# APM
6061
/x-pack/plugins/apm/ @elastic/apm-ui
62+
/x-pack/plugins/apm/**/*.scss @elastic/observability-design
6163
/x-pack/test/functional/apps/apm/ @elastic/apm-ui
6264
/src/legacy/core_plugins/apm_oss/ @elastic/apm-ui
6365
/src/plugins/apm_oss/ @elastic/apm-ui
@@ -68,6 +70,7 @@
6870

6971
# Canvas
7072
/x-pack/plugins/canvas/ @elastic/kibana-canvas
73+
/x-pack/plugins/canvas/**/*.scss @elastic/kibana-core-ui-designers
7174
/x-pack/test/functional/apps/canvas/ @elastic/kibana-canvas
7275

7376
# Core UI
@@ -77,15 +80,18 @@
7780
/src/plugins/home/server/services/ @elastic/kibana-core-ui
7881
# Exclude tutorial resources folder for now because they are not owned by Kibana app and most will move out soon
7982
/src/legacy/core_plugins/kibana/public/home/*.ts @elastic/kibana-core-ui
80-
/src/legacy/core_plugins/kibana/public/home/*.scss @elastic/kibana-core-ui
83+
/src/legacy/core_plugins/kibana/public/home/**/*.scss @elastic/kibana-core-ui-designers
8184
/src/legacy/core_plugins/kibana/public/home/np_ready/ @elastic/kibana-core-ui
8285

8386
# Observability UIs
8487
/x-pack/legacy/plugins/infra/ @elastic/logs-metrics-ui
8588
/x-pack/plugins/infra/ @elastic/logs-metrics-ui
89+
/x-pack/plugins/infra/**/*.scss @elastic/observability-design
8690
/x-pack/plugins/ingest_manager/ @elastic/ingest-management
91+
/x-pack/plugins/ingest_manager/**/*.scss @elastic/observability-design
8792
/x-pack/legacy/plugins/ingest_manager/ @elastic/ingest-management
8893
/x-pack/plugins/observability/ @elastic/observability-ui
94+
/x-pack/plugins/observability/**/*.scss @elastic/observability-design
8995
/x-pack/legacy/plugins/monitoring/ @elastic/stack-monitoring-ui
9096
/x-pack/plugins/monitoring/ @elastic/stack-monitoring-ui
9197
/x-pack/plugins/uptime @elastic/uptime
@@ -159,10 +165,14 @@
159165
# Security
160166
/src/core/server/csp/ @elastic/kibana-security @elastic/kibana-platform
161167
/x-pack/legacy/plugins/security/ @elastic/kibana-security
168+
/x-pack/legacy/plugins/security/**/*.scss @elastic/kibana-core-ui-designers
162169
/x-pack/legacy/plugins/spaces/ @elastic/kibana-security
170+
/x-pack/legacy/plugins/spaces/**/*.scss @elastic/kibana-core-ui-designers
163171
/x-pack/plugins/spaces/ @elastic/kibana-security
172+
/x-pack/plugins/spaces/**/*.scss @elastic/kibana-core-ui-designers
164173
/x-pack/plugins/encrypted_saved_objects/ @elastic/kibana-security
165174
/x-pack/plugins/security/ @elastic/kibana-security
175+
/x-pack/plugins/security/**/*.scss @elastic/kibana-core-ui-designers
166176
/x-pack/test/api_integration/apis/security/ @elastic/kibana-security
167177

168178
# Kibana Localization
@@ -234,6 +244,7 @@ x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json @elastic/kib
234244

235245
# Endpoint
236246
/x-pack/plugins/endpoint/ @elastic/endpoint-app-team @elastic/siem
247+
/x-pack/plugins/endpoint/**/*.scss @elastic/security-design
237248
/x-pack/test/api_integration/apis/endpoint/ @elastic/endpoint-app-team @elastic/siem
238249
/x-pack/test/endpoint_api_integration_no_ingest/ @elastic/endpoint-app-team @elastic/siem
239250
/x-pack/test/security_solution_endpoint/ @elastic/endpoint-app-team @elastic/siem
@@ -243,6 +254,7 @@ x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json @elastic/kib
243254

244255
# Security Solution
245256
/x-pack/plugins/security_solution/ @elastic/siem @elastic/endpoint-app-team
257+
/x-pack/plugins/security_solution/**/*.scss @elastic/security-design
246258
/x-pack/test/detection_engine_api_integration @elastic/siem @elastic/endpoint-app-team
247259
/x-pack/test/api_integration/apis/security_solution @elastic/siem @elastic/endpoint-app-team
248260
/x-pack/plugins/case @elastic/siem @elastic/endpoint-app-team

.sass-lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
files:
22
include:
33
- 'src/legacy/core_plugins/metrics/**/*.s+(a|c)ss'
4+
- 'src/plugins/index_pattern_management/**/*.s+(a|c)ss'
45
- 'src/plugins/timelion/**/*.s+(a|c)ss'
56
- 'src/plugins/vis_type_vislib/**/*.s+(a|c)ss'
67
- 'src/plugins/vis_type_vega/**/*.s+(a|c)ss'

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ out an open PR:
3232

3333
- [CONTRIBUTING.md](CONTRIBUTING.md) will help you get Kibana up and running.
3434
- If you would like to contribute code, please follow our [STYLEGUIDE.md](STYLEGUIDE.md).
35-
- Learn more about our UI code with [UI_SYSTEMS.md](src/legacy/ui/public/UI_SYSTEMS.md).
3635
- For all other questions, check out the [FAQ.md](FAQ.md) and
3736
[wiki](https://github.com/elastic/kibana/wiki).
3837

STYLEGUIDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ Do not use setters, they cause more problems than they can solve.
593593
594594
When writing a new component, create a sibling SASS file of the same name and import directly into the **top** of the JS/TS component file. Doing so ensures the styles are never separated or lost on import and allows for better modularization (smaller individual plugin asset footprint).
595595
596-
All SASS (.scss) files will automatically build with the [EUI](https://elastic.github.io/eui/#/guidelines/sass) & Kibana invisibles (SASS variables, mixins, functions) from the [`globals_[theme].scss` file](src/legacy/ui/public/styles/_globals_v7light.scss).
596+
All SASS (.scss) files will automatically build with the [EUI](https://elastic.github.io/eui/#/guidelines/sass) & Kibana invisibles (SASS variables, mixins, functions) from the [`globals_[theme].scss` file](src/core/public/core_app/styles/_globals_v7light.scss).
597597
598598
While the styles for this component will only be loaded if the component exists on the page,
599599
the styles **will** be global and so it is recommended to use a three letter prefix on your
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
[role="xpack"]
2+
[[edit-workpads]]
3+
== Edit workpads
4+
5+
To create the look and feel that you want, apply format settings to the entire workpad, or individual elements.
6+
7+
[float]
8+
[[create-variables]]
9+
=== Create variables
10+
11+
When you frequently use copy and paste, create variables to easily reuse strings and patterns. For example, when you clone a large workpad and need to connect your elements to a new index, use variables to update
12+
each element instead of updating them manually.
13+
14+
. Create the variables.
15+
.. Click *Add a variable*.
16+
.. Specify the variable options, then click *Save changes*.
17+
18+
. Apply the variable.
19+
.. Copy the variable.
20+
.. Select the element you want to change, then open the expression editor.
21+
.. Paste the variable.
22+
23+
For example, to change the index pattern for a set of charts:
24+
25+
Specify the variable options.
26+
27+
[role="screenshot"]
28+
image::images/specify_variable_syntax.png[Specify the variable syntax]
29+
30+
Copy the variable, then apply it to each element you want to update in the *Expression editor*.
31+
32+
[role="screenshot"]
33+
image::images/copy_variable_syntax.png[Copy the variable syntax]
34+
35+
[float]
36+
[[apply-changes-to-the-entire-workpad]]
37+
=== Apply changes to the entire workpad
38+
39+
With stylesheets, you can change the look of the entire workpad, including fonts, colors, layout, and more.
40+
41+
To get started, enter the changes you want to make in the *Global CSS overrides* text editor, then click *Apply stylesheet*.
42+
43+
For example, to change the background for the entire workpad, enter:
44+
45+
[source,text]
46+
--------------------------------------------------
47+
.canvasPage {
48+
background-color: #3990e6;
49+
}
50+
--------------------------------------------------
51+
52+
[float]
53+
[[change-the-element-settings]]
54+
=== Change the element settings
55+
56+
Element settings enable you to change the display options at the element level. For example, use the element settings to change the dimensions, style, or location of an element.
57+
58+
[float]
59+
[[change-the-display-options]]
60+
==== Change the display options
61+
62+
Choose the display options for your elements. The options available depend on the element you select.
63+
64+
To change the element display options, click *Display*, then make your changes in the editor.
65+
66+
To use CSS overrides:
67+
68+
. Click *+* next to *Element style*, then select *CSS*.
69+
. In the *CSS* text editor, enter the changes you want to make, then click *Apply stylesheet*.
70+
71+
For example, to center an element, enter:
72+
73+
[source,text]
74+
--------------------------------------------------
75+
.canvasRenderEl h1 {
76+
text.align: center;
77+
}
78+
--------------------------------------------------
79+
80+
[float]
81+
[[clone-elements]]
82+
==== Clone elements
83+
To use an element with the same functionality and appearance in multiple places, clone the element.
84+
85+
Select the element, then click *Edit > Clone*.
86+
87+
[role="screenshot"]
88+
image::images/clone_element.gif[Clone elements]
89+
90+
[float]
91+
[[move-and-resize-elements]]
92+
==== Move and resize elements
93+
94+
Canvas provides you with many options to move and resize the elements on your workpad.
95+
96+
* To move elements, click and hold the element, then drag to the new location.
97+
98+
* To move elements by 1 pixel, select the element, press and hold Shift, then use your arrow keys.
99+
100+
* To move elements by 10 pixels, select the element, then use your arrow keys.
101+
102+
* To resize elements, click and drag the resize handles to the new dimensions.
103+
104+
[float]
105+
[[edit-elements]]
106+
==== Edit elements
107+
108+
The element editing options allow you to arrange and organize the elements on your workpad page.
109+
110+
To align two or more elements:
111+
112+
. Press and hold Shift, then select the elements you want to align.
113+
114+
. Click *Edit > Alignment*, then select the alignment option.
115+
116+
To distribute three or more elements:
117+
118+
. Press and hold Shift, then select the elements you want to distribute.
119+
120+
. Click *Edit > Distribution*, then select the distribution option.
121+
122+
To reorder elements:
123+
124+
. Select the element you want to reorder.
125+
126+
. Click *Edit > Order*, then select the order option.
127+
128+
[float]
129+
[[delete-elements]]
130+
==== Delete elements
131+
132+
When you no longer need an element, delete it from your workpad.
133+
134+
. Select the element you want to delete.
135+
136+
. Click *Edit > Delete*.

0 commit comments

Comments
 (0)