Skip to content

Commit 767c993

Browse files
committed
Merge remote-tracking branch 'upstream/master' into kbn-50308-so-management-final-countdown
2 parents 43a9d45 + 028313a commit 767c993

File tree

1,138 files changed

+82533
-38223
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,138 files changed

+82533
-38223
lines changed

.eslintrc.js

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -552,29 +552,6 @@ module.exports = {
552552
},
553553
},
554554

555-
/**
556-
* Graph overrides
557-
*/
558-
{
559-
files: ['x-pack/legacy/plugins/graph/**/*.js'],
560-
globals: {
561-
angular: true,
562-
$: true,
563-
},
564-
rules: {
565-
'block-scoped-var': 'off',
566-
camelcase: 'off',
567-
eqeqeq: 'off',
568-
'guard-for-in': 'off',
569-
'new-cap': 'off',
570-
'no-loop-func': 'off',
571-
'no-redeclare': 'off',
572-
'no-shadow': 'off',
573-
'no-unused-vars': 'off',
574-
'one-var': 'off',
575-
},
576-
},
577-
578555
/**
579556
* ML overrides
580557
*/
@@ -771,7 +748,7 @@ module.exports = {
771748
* Lens overrides
772749
*/
773750
{
774-
files: ['x-pack/legacy/plugins/lens/**/*.ts', 'x-pack/legacy/plugins/lens/**/*.tsx'],
751+
files: ['x-pack/legacy/plugins/lens/**/*.{ts,tsx}', 'x-pack/plugins/lens/**/*.{ts,tsx}'],
775752
rules: {
776753
'@typescript-eslint/no-explicit-any': 'error',
777754
},
@@ -885,8 +862,10 @@ module.exports = {
885862
* TSVB overrides
886863
*/
887864
{
888-
files: ['src/legacy/core_plugins/metrics/**/*.js'],
889-
excludedFiles: 'src/legacy/core_plugins/metrics/index.js',
865+
files: [
866+
'src/plugins/vis_type_timeseries/**/*.{js,ts,tsx}',
867+
'src/legacy/core_plugins/vis_type_timeseries/**/*.{js,ts,tsx}',
868+
],
890869
rules: {
891870
'import/no-default-export': 'error',
892871
},

.github/CODEOWNERS

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,20 @@
1515
/src/legacy/core_plugins/metrics/ @elastic/kibana-app
1616
/src/legacy/core_plugins/vis_type_vislib/ @elastic/kibana-app
1717
/src/legacy/core_plugins/vis_type_xy/ @elastic/kibana-app
18-
# Exclude tutorials folder for now because they are not owned by Kibana app and most will move out soon
19-
/src/plugins/home/public @elastic/kibana-app
20-
/src/plugins/home/server/*.ts @elastic/kibana-app
21-
/src/plugins/home/server/services/ @elastic/kibana-app
22-
# Exclude tutorial resources folder for now because they are not owned by Kibana app and most will move out soon
23-
/src/legacy/core_plugins/kibana/public/home/*.ts @elastic/kibana-app
24-
/src/legacy/core_plugins/kibana/public/home/*.scss @elastic/kibana-app
25-
/src/legacy/core_plugins/kibana/public/home/np_ready/ @elastic/kibana-app
2618
/src/plugins/kibana_legacy/ @elastic/kibana-app
2719
/src/plugins/timelion/ @elastic/kibana-app
28-
/src/plugins/dev_tools/ @elastic/kibana-app
2920
/src/plugins/dashboard/ @elastic/kibana-app
21+
/src/plugins/discover/ @elastic/kibana-app
22+
23+
# Core UI
24+
# Exclude tutorials folder for now because they are not owned by Kibana app and most will move out soon
25+
/src/plugins/home/public @elastic/kibana-core-ui
26+
/src/plugins/home/server/*.ts @elastic/kibana-core-ui
27+
/src/plugins/home/server/services/ @elastic/kibana-core-ui
28+
# Exclude tutorial resources folder for now because they are not owned by Kibana app and most will move out soon
29+
/src/legacy/core_plugins/kibana/public/home/*.ts @elastic/kibana-core-ui
30+
/src/legacy/core_plugins/kibana/public/home/*.scss @elastic/kibana-core-ui
31+
/src/legacy/core_plugins/kibana/public/home/np_ready/ @elastic/kibana-core-ui
3032

3133
# App Architecture
3234
/examples/url_generators_examples/ @elastic/kibana-app-arch
@@ -85,9 +87,8 @@
8587
/x-pack/test/functional/apps/machine_learning/ @elastic/ml-ui
8688
/x-pack/test/functional/services/machine_learning/ @elastic/ml-ui
8789
/x-pack/test/functional/services/ml.ts @elastic/ml-ui
88-
# ML team owns the transform plugin, ES team added here for visibility
89-
# because the plugin lives in Kibana's Elasticsearch management section.
90-
/x-pack/plugins/transform/ @elastic/ml-ui @elastic/es-ui
90+
# ML team owns and maintains the transform plugin despite it living in the Elasticsearch management section.
91+
/x-pack/plugins/transform/ @elastic/ml-ui
9192
/x-pack/test/functional/apps/transform/ @elastic/ml-ui
9293
/x-pack/test/functional/services/transform_ui/ @elastic/ml-ui
9394
/x-pack/test/functional/services/transform.ts @elastic/ml-ui
@@ -175,6 +176,7 @@
175176
**/*.scss @elastic/kibana-design
176177

177178
# Elasticsearch UI
179+
/src/plugins/dev_tools/ @elastic/es-ui
178180
/src/plugins/console/ @elastic/es-ui
179181
/src/plugins/es_ui_shared/ @elastic/es-ui
180182
/x-pack/legacy/plugins/cross_cluster_replication/ @elastic/es-ui

docs/api/role-management/put.asciidoc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ experimental[] Create a new {kib} role, or update the attributes of an existing
1717

1818
To use the create or update role API, you must have the `manage_security` cluster privilege.
1919

20+
[role="child_attributes"]
2021
[[role-management-api-response-body]]
2122
==== Request body
2223

@@ -29,8 +30,11 @@ To use the create or update role API, you must have the `manage_security` cluste
2930
{ref}/defining-roles.html[Defining roles].
3031

3132
`kibana`::
32-
(list) Objects that specify the <<kibana-privileges, Kibana privileges>> for the role:
33-
33+
(list) Objects that specify the <<kibana-privileges, Kibana privileges>> for the role.
34+
+
35+
.Properties of `kibana`
36+
[%collapsible%open]
37+
=====
3438
`base` :::
3539
(Optional, list) A base privilege. When specified, the base must be `["all"]` or `["read"]`.
3640
When the `base` privilege is specified, you are unable to use the `feature` section.
@@ -45,14 +49,15 @@ To use the create or update role API, you must have the `manage_security` cluste
4549
`spaces` :::
4650
(list) The spaces to apply the privileges to.
4751
To grant access to all spaces, set to `["*"]`, or omit the value.
52+
=====
4853

4954
[[role-management-api-put-response-codes]]
5055
==== Response code
5156

5257
`204`::
5358
Indicates a successful call.
5459

55-
===== Examples
60+
==== Examples
5661

5762
Grant access to various features in all spaces:
5863

docs/api/spaces-management/copy_saved_objects.asciidoc

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ You can request to overwrite any objects that already exist in the target space
2626
`space_id`::
2727
(Optional, string) The ID of the space that contains the saved objects you want to copy. When `space_id` is unspecified in the URL, the default space is used.
2828

29+
[role="child_attributes"]
2930
[[spaces-api-copy-saved-objects-request-body]]
3031
==== {api-request-body-title}
3132

@@ -34,38 +35,60 @@ You can request to overwrite any objects that already exist in the target space
3435

3536
`objects`::
3637
(Required, object array) The saved objects to copy.
38+
+
39+
.Properties of `objects`
40+
[%collapsible%open]
41+
=====
3742
`type`:::
3843
(Required, string) The saved object type.
44+
3945
`id`:::
4046
(Required, string) The saved object ID.
47+
=====
4148

4249
`includeReferences`::
4350
(Optional, boolean) When set to `true`, all saved objects related to the specified saved objects will also be copied into the target spaces. The default value is `false`.
4451

4552
`overwrite`::
4653
(Optional, boolean) When set to `true`, all conflicts are automatically overidden. When a saved object with a matching `type` and `id` exists in the target space, that version is replaced with the version from the source space. The default value is `false`.
4754

48-
55+
[role="child_attributes"]
4956
[[spaces-api-copy-saved-objects-response-body]]
5057
==== {api-response-body-title}
5158

5259
`<space_id>`::
5360
(object) An object that describes the result of the copy operation for the space. Includes the dynamic keys in the response.
61+
+
62+
.Properties of `<space_id>`
63+
[%collapsible%open]
64+
=====
5465
`success`:::
5566
(boolean) The copy operation was successful. When set to `false`, some objects may have been copied. For additional information, refer to the `successCount` and `errors` properties.
67+
5668
`successCount`:::
5769
(number) The number of objects that successfully copied.
70+
5871
`errors`:::
59-
(Optional, array) The errors that occurred during the copy operation. When errors are reported, the `success` flag is set to `false`.v
72+
(Optional, array) The errors that occurred during the copy operation. When errors are reported, the `success` flag is set to `false`.
73+
+
74+
.Properties of `errors`
75+
[%collapsible%open]
76+
======
6077
`id`::::
6178
(string) The saved object ID that failed to copy.
6279
`type`::::
6380
(string) The type of saved object that failed to copy.
6481
`error`::::
6582
(object) The error that caused the copy operation to fail.
83+
+
84+
.Properties of `error`
85+
[%collapsible%open]
86+
=======
6687
`type`:::::
6788
(string) The type of error. For example, `unsupported_type`, `missing_references`, or `unknown`. Errors marked as `conflict` may be resolved by using the <<spaces-api-resolve-copy-saved-objects-conflicts, Resolve copy saved objects conflicts API>>.
68-
89+
=======
90+
======
91+
=====
6992
[[spaces-api-copy-saved-objects-example]]
7093
==== {api-examples-title}
7194

docs/api/spaces-management/resolve_copy_saved_objects_conflicts.asciidoc

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,51 +25,89 @@ Execute the <<spaces-api-copy-saved-objects,copy saved objects to space API>>, w
2525
`space_id`::
2626
(Optional, string) The ID of the space that contains the saved objects you want to copy. When `space_id` is unspecified in the URL, the default space is used. The `space_id` must be the same value used during the failed <<spaces-api-copy-saved-objects, copy saved objects to space API>> operation.
2727

28+
[role="child_attributes"]
2829
[[spaces-api-resolve-copy-saved-objects-conflicts-request-body]]
2930
==== {api-request-body-title}
3031

3132
`objects`::
3233
(Required, object array) The saved objects to copy. The `objects` must be the same values used during the failed <<spaces-api-copy-saved-objects, copy saved objects to space API>> operation.
34+
+
35+
.Properties of `objects`
36+
[%collapsible%open]
37+
=====
3338
`type`:::
3439
(Required, string) The saved object type.
40+
3541
`id`:::
3642
(Required, string) The saved object ID.
43+
=====
3744

3845
`includeReferences`::
3946
(Optional, boolean) When set to `true`, all saved objects related to the specified saved objects are copied into the target spaces. The `includeReferences` must be the same values used during the failed <<spaces-api-copy-saved-objects, copy saved objects to space API>> operation. The default value is `false`.
4047

4148
`retries`::
4249
(Required, object) The retry operations to attempt. Object keys represent the target space IDs.
50+
+
51+
.Properties of `retries`
52+
[%collapsible%open]
53+
=====
4354
`<space_id>`:::
4455
(Required, array) The errors to resolve for the specified `<space_id>`.
56+
+
57+
58+
.Properties of `<space_id>`
59+
[%collapsible%open]
60+
======
4561
`type`::::
4662
(Required, string) The saved object type.
4763
`id`::::
4864
(Required, string) The saved object ID.
4965
`overwrite`::::
5066
(Required, boolean) When set to `true`, the saved object from the source space (desigated by the <<spaces-api-resolve-copy-saved-objects-conflicts-path-params, `space_id` path parameter>>) overwrites the conflicting object in the destination space. When set to `false`, this does nothing.
67+
======
68+
=====
5169

52-
70+
[role="child_attributes"]
5371
[[spaces-api-resolve-copy-saved-objects-conflicts-response-body]]
5472
==== {api-response-body-title}
5573

5674
`<space_id>`::
5775
(object) An object that describes the result of the copy operation for the space. Includes the dynamic keys in the response.
76+
+
77+
.Properties of `<space_id>`
78+
[%collapsible%open]
79+
=====
5880
`success`:::
5981
(boolean) The copy operation was successful. When set to `false`, some objects may have been copied. For additional information, refer to the `successCount` and `errors` properties.
82+
6083
`successCount`:::
6184
(number) The number of objects that successfully copied.
85+
6286
`errors`:::
6387
(Optional, array) The errors that occurred during the copy operation. When errors are reported, the `success` flag is set to `false`.
88+
+
89+
90+
.Properties of `errors`
91+
[%collapsible%open]
92+
======
6493
`id`::::
6594
(string) The saved object ID that failed to copy.
95+
6696
`type`::::
6797
(string) The type of saved object that failed to copy.
98+
6899
`error`::::
69100
(object) The error that caused the copy operation to fail.
70-
`type`:::::
71-
(string) The type of error. For example, `unsupported_type`, `missing_references`, or `unknown`.
101+
+
72102

103+
.Properties of `error`
104+
[%collapsible%open]
105+
=======
106+
`type`::::
107+
(string) The type of error. For example, `unsupported_type`, `missing_references`, or `unknown`.
108+
=======
109+
======
110+
=====
73111

74112
[[spaces-api-resolve-copy-saved-objects-conflicts-example]]
75113
==== {api-examples-title}

docs/apm/api.asciidoc

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,22 @@ The following Agent configuration APIs are available:
3838

3939
`PUT /api/apm/settings/agent-configuration`
4040

41+
[role="child_attributes"]
4142
[[apm-update-config-req-body]]
4243
===== Request body
4344

4445
`service`::
4546
(required, object) Service identifying the configuration to create or update.
46-
47+
+
48+
.Properties of `service`
49+
[%collapsible%open]
50+
======
4751
`name` :::
4852
(required, string) Name of service
4953
5054
`environment` :::
5155
(optional, string) Environment of service
56+
======
5257

5358
`settings`::
5459
(required) Key/value object with settings and their corresponding value.
@@ -90,16 +95,21 @@ PUT /api/apm/settings/agent-configuration
9095

9196
`DELETE /api/apm/settings/agent-configuration`
9297

98+
[role="child_attributes"]
9399
[[apm-delete-config-req-body]]
94100
===== Request body
95101
`service`::
96102
(required, object) Service identifying the configuration to delete
97-
103+
+
104+
.Properties of `service`
105+
[%collapsible%open]
106+
======
98107
`name` :::
99108
(required, string) Name of service
100109
101110
`environment` :::
102111
(optional, string) Environment of service
112+
======
103113

104114

105115
[[apm-delete-config-example]]
@@ -201,17 +211,22 @@ GET /api/apm/settings/agent-configuration
201211

202212
`POST /api/apm/settings/agent-configuration/search`
203213

214+
[role="child_attributes"]
204215
[[apm-search-config-req-body]]
205216
===== Request body
206217

207218
`service`::
208219
(required, object) Service identifying the configuration.
209-
220+
+
221+
.Properties of `service`
222+
[%collapsible%open]
223+
======
210224
`name` :::
211225
(required, string) Name of service
212226
213227
`environment` :::
214228
(optional, string) Environment of service
229+
======
215230

216231
`etag`::
217232
(required) etag is sent by the agent to indicate the etag of the last successfully applied configuration. If the etag matches an existing configuration its `applied_by_agent` property will be set to `true`. Every time a configuration is edited `applied_by_agent` is reset to `false`.
524 KB
Loading

docs/apm/images/service-maps.png

483 KB
Loading

0 commit comments

Comments
 (0)