Skip to content

Commit 3fbc812

Browse files
Merge branch 'master' into beats-cm/migrate-ui
2 parents c25f6ae + ff1d129 commit 3fbc812

File tree

635 files changed

+5900
-4674
lines changed

Some content is hidden

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

635 files changed

+5900
-4674
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@
162162
# Pulse
163163
/packages/kbn-analytics/ @elastic/pulse
164164
/src/legacy/core_plugins/ui_metric/ @elastic/pulse
165+
/src/plugins/kibana_usage_collection/ @elastic/pulse
165166
/src/plugins/telemetry/ @elastic/pulse
166167
/src/plugins/telemetry_collection_manager/ @elastic/pulse
167168
/src/plugins/telemetry_management_section/ @elastic/pulse

.sass-lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ files:
1111
- 'x-pack/plugins/cross_cluster_replication/**/*.s+(a|c)ss'
1212
- 'x-pack/legacy/plugins/maps/**/*.s+(a|c)ss'
1313
- 'x-pack/plugins/maps/**/*.s+(a|c)ss'
14+
- 'x-pack/plugins/spaces/**/*.s+(a|c)ss'
1415
ignore:
1516
- 'x-pack/plugins/canvas/shareable_runtime/**/*.s+(a|c)ss'
1617
rules:

CONTRIBUTING.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,34 @@ extract them to a `JSON` file or integrate translations back to Kibana. To know
414414
We cannot support accepting contributions to the translations from any source other than the translators we have engaged to do the work.
415415
We are still to develop a proper process to accept any contributed translations. We certainly appreciate that people care enough about the localization effort to want to help improve the quality. We aim to build out a more comprehensive localization process for the future and will notify you once contributions can be supported, but for the time being, we are not able to incorporate suggestions.
416416

417+
### Syling with SASS
418+
419+
When writing a new component, create a sibling SASS file of the same name and import directly into 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).
420+
421+
Any JavaScript (or TypeScript) file that imports SASS (.scss) files will automatically build with the [EUI](https://elastic.github.io/eui/#/guidelines/sass) & Kibana invisibles (SASS variables, mixins, functions) from the [`styling_constants.scss` file](https://github.com/elastic/kibana/blob/master/src/legacy/ui/public/styles/_styling_constants.scss). However, any Legacy (file path includes `/legacy`) files will not.
422+
423+
**Example:**
424+
425+
```tsx
426+
// component.tsx
427+
428+
import './component.scss';
429+
430+
export const Component = () => {
431+
return (
432+
<div className="plgComponent" />
433+
);
434+
}
435+
```
436+
437+
```scss
438+
// component.scss
439+
440+
.plgComponent { ... }
441+
```
442+
443+
Do not use the underscore `_` SASS file naming pattern when importing directly into a javascript file.
444+
417445
### Testing and Building
418446

419447
To ensure that your changes will not break other functionality, please run the test suite and build process before submitting your Pull Request.

docs/api/features.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The API returns the following:
2929
"id": "discover",
3030
"name": "Discover",
3131
"icon": "discoverApp",
32-
"navLinkId": "kibana:discover",
32+
"navLinkId": "discover",
3333
"app": [
3434
"kibana"
3535
],
@@ -74,7 +74,7 @@ The API returns the following:
7474
"id": "visualize",
7575
"name": "Visualize",
7676
"icon": "visualizeApp",
77-
"navLinkId": "kibana:visualize",
77+
"navLinkId": "visualize",
7878
"app": [
7979
"kibana"
8080
],
@@ -121,7 +121,7 @@ The API returns the following:
121121
"id": "dashboard",
122122
"name": "Dashboard",
123123
"icon": "dashboardApp",
124-
"navLinkId": "kibana:dashboard",
124+
"navLinkId": "dashboards",
125125
"app": [
126126
"kibana"
127127
],
@@ -173,7 +173,7 @@ The API returns the following:
173173
"id": "dev_tools",
174174
"name": "Dev Tools",
175175
"icon": "devToolsApp",
176-
"navLinkId": "kibana:dev_tools",
176+
"navLinkId": "dev_tools",
177177
"app": [
178178
"kibana"
179179
],

docs/developer/plugin/development-plugin-feature-registration.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ init(server) {
153153
defaultMessage: 'Dev Tools',
154154
}),
155155
icon: 'devToolsApp',
156-
navLinkId: 'kibana:dev_tools',
156+
navLinkId: 'dev_tools',
157157
app: ['kibana'],
158158
catalogue: ['console', 'searchprofiler', 'grokdebugger'],
159159
privileges: {
@@ -216,7 +216,7 @@ init(server) {
216216
}),
217217
order: 100,
218218
icon: 'discoverApp',
219-
navLinkId: 'kibana:discover',
219+
navLinkId: 'discover',
220220
app: ['kibana'],
221221
catalogue: ['discover'],
222222
privileges: {

docs/user/dashboard.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ to view an embedded dashboard.
174174
* Generate a PNG report
175175

176176
TIP: To create a link to a dashboard by title, use: +
177-
`${domain}/${basepath?}/app/kibana#/dashboards?title=${yourdashboardtitle}`
177+
`${domain}/${basepath?}/app/dashboards#/list?title=${yourdashboardtitle}`
178178

179179
TIP: When sharing a link to a dashboard snapshot, use the *Short URL*. Snapshot
180180
URLs are long and can be problematic for Internet Explorer and other

examples/alerting_example/public/alert_types/always_firing.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export function getAlertType(): AlertTypeModel {
5151
}
5252
return validationResult;
5353
},
54+
requiresAppContext: false,
5455
};
5556
}
5657

examples/alerting_example/public/alert_types/astros.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export function getAlertType(): AlertTypeModel {
9999

100100
return validationResult;
101101
},
102+
requiresAppContext: false,
102103
};
103104
}
104105

examples/alerting_example/server/alert_types/always_firing.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import uuid from 'uuid';
2121
import { range } from 'lodash';
2222
import { AlertType } from '../../../../x-pack/plugins/alerting/server';
23-
import { DEFAULT_INSTANCES_TO_GENERATE } from '../../common/constants';
23+
import { DEFAULT_INSTANCES_TO_GENERATE, ALERTING_EXAMPLE_APP_ID } from '../../common/constants';
2424

2525
export const alertType: AlertType = {
2626
id: 'example.always-firing',
@@ -43,4 +43,5 @@ export const alertType: AlertType = {
4343
count,
4444
};
4545
},
46+
producer: ALERTING_EXAMPLE_APP_ID,
4647
};

examples/alerting_example/server/alert_types/astros.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import axios from 'axios';
2121
import { AlertType } from '../../../../x-pack/plugins/alerting/server';
22-
import { Operator, Craft } from '../../common/constants';
22+
import { Operator, Craft, ALERTING_EXAMPLE_APP_ID } from '../../common/constants';
2323

2424
interface PeopleInSpace {
2525
people: Array<{
@@ -79,4 +79,5 @@ export const alertType: AlertType = {
7979
peopleInSpace,
8080
};
8181
},
82+
producer: ALERTING_EXAMPLE_APP_ID,
8283
};

0 commit comments

Comments
 (0)