Skip to content

Commit aa1c338

Browse files
Merge branch 'master' into fix/embeddable-panel-input-updates
2 parents 20808a7 + f4386fc commit aa1c338

File tree

863 files changed

+22329
-6844
lines changed

Some content is hidden

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

863 files changed

+22329
-6844
lines changed

.github/CODEOWNERS

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
/src/plugins/expressions/ @elastic/kibana-app-arch
6161
/src/plugins/inspector/ @elastic/kibana-app-arch
6262
/src/plugins/kibana_react/ @elastic/kibana-app-arch
63-
/src/plugins/kibana_react/public/code_editor @elastic/kibana-canvas
63+
/src/plugins/kibana_react/public/code_editor @elastic/kibana-presentation
6464
/src/plugins/kibana_utils/ @elastic/kibana-app-arch
6565
/src/plugins/navigation/ @elastic/kibana-app-arch
6666
/src/plugins/share/ @elastic/kibana-app-arch
@@ -104,19 +104,19 @@
104104
/x-pack/legacy/plugins/beats_management/ @elastic/beats
105105
#CC# /x-pack/plugins/beats_management/ @elastic/beats
106106

107-
# Canvas
108-
/src/plugins/dashboard/ @elastic/kibana-canvas
109-
/src/plugins/input_control_vis/ @elastic/kibana-canvas
110-
/src/plugins/vis_type_markdown/ @elastic/kibana-canvas
111-
/x-pack/plugins/canvas/ @elastic/kibana-canvas
112-
/x-pack/plugins/dashboard_enhanced/ @elastic/kibana-canvas
113-
/x-pack/test/functional/apps/canvas/ @elastic/kibana-canvas
114-
#CC# /src/legacy/core_plugins/kibana/public/dashboard/ @elastic/kibana-canvas
115-
#CC# /src/legacy/core_plugins/input_control_vis @elastic/kibana-canvas
116-
#CC# /src/plugins/kibana_react/public/code_editor/ @elastic/kibana-canvas
117-
#CC# /x-pack/legacy/plugins/canvas/ @elastic/kibana-canvas
118-
#CC# /x-pack/plugins/dashboard_mode @elastic/kibana-canvas
119-
#CC# /x-pack/legacy/plugins/dashboard_mode/ @elastic/kibana-canvas
107+
# Presentation
108+
/src/plugins/dashboard/ @elastic/kibana-presentation
109+
/src/plugins/input_control_vis/ @elastic/kibana-presentation
110+
/src/plugins/vis_type_markdown/ @elastic/kibana-presentation
111+
/x-pack/plugins/canvas/ @elastic/kibana-presentation
112+
/x-pack/plugins/dashboard_enhanced/ @elastic/kibana-presentation
113+
/x-pack/test/functional/apps/canvas/ @elastic/kibana-presentation
114+
#CC# /src/legacy/core_plugins/kibana/public/dashboard/ @elastic/kibana-presentation
115+
#CC# /src/legacy/core_plugins/input_control_vis @elastic/kibana-presentation
116+
#CC# /src/plugins/kibana_react/public/code_editor/ @elastic/kibana-presentation
117+
#CC# /x-pack/legacy/plugins/canvas/ @elastic/kibana-presentation
118+
#CC# /x-pack/plugins/dashboard_mode @elastic/kibana-presentation
119+
#CC# /x-pack/legacy/plugins/dashboard_mode/ @elastic/kibana-presentation
120120

121121
# Core UI
122122
# Exclude tutorials folder for now because they are not owned by Kibana app and most will move out soon

.github/ISSUE_TEMPLATE/v8_breaking_change.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ assignees: ''
1313
****************************************
1414
1515
Please add a "NeededFor:${TeamName}" label to denote the team that is
16-
requesting the breaking change is surfaced in the Upgrade Assistant.
16+
requesting the breaking change to be surfaced in the Upgrade Assistant.
1717
1818
-->
1919

@@ -27,21 +27,24 @@ requesting the breaking change is surfaced in the Upgrade Assistant.
2727

2828
**How many users will be affected?**
2929

30-
<!-- e.g., Based on telemetry data, roughly 75% of our users will need to make changes to x -->
31-
<!-- e.g., A majority of users will need to make changes to x. -->
30+
<!-- e.g. Based on telemetry data, roughly 75% of our users will need to make changes to x. -->
31+
<!-- e.g. A majority of users will need to make changes to x. -->
3232

3333
**What can users do to address the change manually?**
3434

35-
<!-- If applicable, describe the manual workaround -->
35+
<!-- If applicable, describe the manual migration steps and/or link to available docs. -->
3636

3737
**How could we make migration easier with the Upgrade Assistant?**
3838

39+
<!-- This can be as basic as notifying the user about the deprecation and linking to some
40+
migration docs, or as advanced as a dedicated UI for fixing the problem. -->
41+
3942
**Are there any edge cases?**
4043

4144
## Test Data
4245

43-
Provide test data. We can’t build a solution without data to test it against.
46+
<!-- Provide test data. We can’t build a solution without data to test it against. -->
4447

4548
## Cross links
4649

47-
Cross-link to relevant [Elasticsearch breaking changes](https://www.elastic.co/guide/en/elasticsearch/reference/master/breaking-changes-8.0.html).
50+
<!-- Provide context. Cross-link to relevant [Elasticsearch breaking changes](https://www.elastic.co/guide/en/elasticsearch/reference/master/breaking-changes-8.0.html), PRs that introduced the breaking change, or other related issues. -->

.github/workflows/pr-project-assigner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ jobs:
1818

1919
# { "label": "Team:AppArch", "projectNumber": 37, "columnName": "Review in progress" },
2020
# { "label": "Feature:Lens", "projectNumber": 32, "columnName": "In progress" },
21-
# { "label": "Team:Canvas", "projectNumber": 38, "columnName": "Review in progress" }
21+
# { "label": "Feature:Canvas", "projectNumber": 38, "columnName": "Review in progress" }

.github/workflows/project-assigner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
uses: elastic/github-actions/project-assigner@v2.0.0
1212
id: project_assigner
1313
with:
14-
issue-mappings: '[{"label": "Team:AppArch", "projectNumber": 37, "columnName": "To triage"}, {"label": "Feature:Lens", "projectNumber": 32, "columnName": "Long-term goals"}, {"label": "Team:Canvas", "projectNumber": 38, "columnName": "Inbox"}]'
14+
issue-mappings: '[{"label": "Team:AppArch", "projectNumber": 37, "columnName": "To triage"}, {"label": "Feature:Lens", "projectNumber": 32, "columnName": "Long-term goals"}, {"label": "Feature:Canvas", "projectNumber": 38, "columnName": "Inbox"}, {"label": "Feature:Dashboard", "projectNumber": 68, "columnName": "Inbox"}, {"label": "Feature:Drilldowns", "projectNumber": 68, "columnName": "Inbox"}]'
1515
ghToken: ${{ secrets.PROJECT_ASSIGNER_TOKEN }}
1616

1717

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,21 @@ target
1818
.idea
1919
*.iml
2020
*.log
21+
22+
# Ignore certain functional test runner artifacts
2123
/test/*/failure_debug
2224
/test/*/screenshots/diff
2325
/test/*/screenshots/failure
2426
/test/*/screenshots/session
2527
/test/*/screenshots/visual_regression_gallery.html
28+
29+
# Ignore the same artifacts in x-pack
30+
/x-pack/test/*/failure_debug
31+
/x-pack/test/*/screenshots/diff
32+
/x-pack/test/*/screenshots/failure
33+
/x-pack/test/*/screenshots/session
34+
/x-pack/test/*/screenshots/visual_regression_gallery.html
35+
2636
/html_docs
2737
.eslintcache
2838
/plugins/

docs/api/spaces-management/get_all.asciidoc

Lines changed: 85 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,38 @@ experimental[] Retrieve all {kib} spaces.
1111

1212
`GET <kibana host>:<port>/api/spaces/space`
1313

14+
[[spaces-api-get-all-query-params]]
15+
==== Query parameters
16+
17+
`purpose`::
18+
(Optional, string) Valid options include `any`, `copySavedObjectsIntoSpace`, and `shareSavedObjectsIntoSpace`. This determines what
19+
authorization checks are applied to the API call. If `purpose` is not provided in the URL, the `any` purpose is used.
20+
21+
`include_authorized_purposes`::
22+
(Optional, boolean) When enabled, the API will return any spaces that the user is authorized to access in any capacity, and each space
23+
will contain the purpose(s) for which the user is authorized. This can be useful to determine which spaces a user can read but not take a
24+
specific action in. If the Security plugin is not enabled, this will have no effect, as no authorization checks would take place.
25+
+
26+
NOTE: This option cannot be used in conjunction with `purpose`.
27+
1428
[[spaces-api-get-all-response-codes]]
1529
==== Response code
1630

1731
`200`::
1832
Indicates a successful call.
1933

2034
[[spaces-api-get-all-example]]
21-
==== Example
35+
==== Examples
36+
37+
[[spaces-api-get-all-example-1]]
38+
===== Default options
39+
40+
Retrieve all spaces without specifying any options:
41+
42+
[source,sh]
43+
--------------------------------------------------
44+
$ curl -X GET api/spaces/space
45+
--------------------------------------------------
2246

2347
The API returns the following:
2448

@@ -51,3 +75,63 @@ The API returns the following:
5175
}
5276
]
5377
--------------------------------------------------
78+
79+
[[spaces-api-get-all-example-2]]
80+
===== Custom options
81+
82+
The user has read-only access to the Sales space. Retrieve all spaces and specify options:
83+
84+
[source,sh]
85+
--------------------------------------------------
86+
$ curl -X GET api/spaces/space?purpose=shareSavedObjectsIntoSpace&include_authorized_purposes=true
87+
--------------------------------------------------
88+
89+
The API returns the following:
90+
91+
[source,sh]
92+
--------------------------------------------------
93+
[
94+
{
95+
"id": "default",
96+
"name": "Default",
97+
"description" : "This is the Default Space",
98+
"disabledFeatures": [],
99+
"imageUrl": "",
100+
"_reserved": true,
101+
"authorizedPurposes": {
102+
"any": true,
103+
"copySavedObjectsIntoSpace": true,
104+
"findSavedObjects": true,
105+
"shareSavedObjectsIntoSpace": true,
106+
}
107+
},
108+
{
109+
"id": "marketing",
110+
"name": "Marketing",
111+
"description" : "This is the Marketing Space",
112+
"color": "#aabbcc",
113+
"disabledFeatures": ["apm"],
114+
"initials": "MK",
115+
"imageUrl": "data:image/png;base64,iVBORw0KGgoAAAANSU",
116+
"authorizedPurposes": {
117+
"any": true,
118+
"copySavedObjectsIntoSpace": true,
119+
"findSavedObjects": true,
120+
"shareSavedObjectsIntoSpace": true,
121+
}
122+
},
123+
{
124+
"id": "sales",
125+
"name": "Sales",
126+
"initials": "MK",
127+
"disabledFeatures": ["discover", "timelion"],
128+
"imageUrl": "",
129+
"authorizedPurposes": {
130+
"any": true,
131+
"copySavedObjectsIntoSpace": false,
132+
"findSavedObjects": true,
133+
"shareSavedObjectsIntoSpace": false,
134+
}
135+
}
136+
]
137+
--------------------------------------------------

docs/developer/best-practices/typescript.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Run `node scripts/find_plugins_without_ts_refs.js --id your_plugin_id` to get a
3232

3333
[discrete]
3434
==== Implementation
35-
- Make sure all the plugins listed as dependencies in `kibana.json` file have migrated to TS project references.
35+
- Make sure all the plugins listed as dependencies in *requiredPlugins*, *optionalPlugins* & *requiredBundles* properties of `kibana.json` manifest file have migrated to TS project references.
3636
- Add `tsconfig.json` in the root folder of your plugin.
3737
[source,json]
3838
----

docs/developer/plugin-list.asciidoc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ in Kibana, e.g. visualizations. It has the form of a flyout panel.
128128
|Utilities for building Kibana plugins.
129129
130130
131-
|{kib-repo}blob/{branch}/src/plugins/legacy_export[legacyExport]
132-
|WARNING: Missing README.
131+
|{kib-repo}blob/{branch}/src/plugins/legacy_export/README.md[legacyExport]
132+
|The legacyExport plugin adds support for the legacy saved objects export format.
133133
134134
135135
|{kib-repo}blob/{branch}/src/plugins/management/README.md[management]
@@ -156,12 +156,12 @@ Content is fetched from the remote (https://feeds.elastic.co and https://feeds-s
156156
|Create choropleth maps. Display the results of a term-aggregation as e.g. countries, zip-codes, states.
157157
158158
159-
|{kib-repo}blob/{branch}/src/plugins/saved_objects[savedObjects]
160-
|WARNING: Missing README.
159+
|{kib-repo}blob/{branch}/src/plugins/saved_objects/README.md[savedObjects]
160+
|The savedObjects plugin exposes utilities to manipulate saved objects on the client side.
161161
162162
163-
|{kib-repo}blob/{branch}/src/plugins/saved_objects_management[savedObjectsManagement]
164-
|WARNING: Missing README.
163+
|{kib-repo}blob/{branch}/src/plugins/saved_objects_management/README.md[savedObjectsManagement]
164+
|The savedObjectsManagement plugin manages the Saved Objects management section.
165165
166166
167167
|{kib-repo}blob/{branch}/src/plugins/saved_objects_tagging_oss/README.md[savedObjectsTaggingOss]
@@ -309,8 +309,8 @@ Failure to have auth enabled in Kibana will make for a broken UI. UI-based error
309309
|Experimental Feature
310310
311311
312-
|{kib-repo}blob/{branch}/x-pack/plugins/cloud[cloud]
313-
|WARNING: Missing README.
312+
|{kib-repo}blob/{branch}/x-pack/plugins/cloud/README.md[cloud]
313+
|The cloud plugin adds cloud specific features to Kibana.
314314
315315
316316
|{kib-repo}blob/{branch}/x-pack/plugins/code[code]
@@ -361,8 +361,8 @@ occuring in Kibana, initially just for the Make It Action project - alerts
361361
and actions.
362362
363363
364-
|{kib-repo}blob/{branch}/x-pack/plugins/features[features]
365-
|WARNING: Missing README.
364+
|{kib-repo}blob/{branch}/x-pack/plugins/features/README.md[features]
365+
|The features plugin enhance Kibana with a per-feature privilege system.
366366
367367
368368
|{kib-repo}blob/{branch}/x-pack/plugins/file_upload/README.md[fileUpload]
@@ -378,8 +378,8 @@ or dashboards from the Kibana instance, from both server and client-side plugins
378378
|The GlobalSearchBar plugin provides a search interface for navigating Kibana. (It is the UI to the GlobalSearch plugin.)
379379
380380
381-
|{kib-repo}blob/{branch}/x-pack/plugins/global_search_providers[globalSearchProviders]
382-
|WARNING: Missing README.
381+
|{kib-repo}blob/{branch}/x-pack/plugins/global_search_providers/README.md[globalSearchProviders]
382+
|The globalSearchProviders plugin provides Kibana default search providers for the GlobalSearch plugin.
383383
384384
385385
|{kib-repo}blob/{branch}/x-pack/plugins/graph/README.md[graph]

docs/development/plugins/data/public/kibana-plugin-plugins-data-public.ikibanasearchresponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ export interface IKibanaSearchResponse<RawResponse = any>
1818
| [isPartial](./kibana-plugin-plugins-data-public.ikibanasearchresponse.ispartial.md) | <code>boolean</code> | Indicates whether the results returned are complete or partial |
1919
| [isRunning](./kibana-plugin-plugins-data-public.ikibanasearchresponse.isrunning.md) | <code>boolean</code> | Indicates whether search is still in flight |
2020
| [loaded](./kibana-plugin-plugins-data-public.ikibanasearchresponse.loaded.md) | <code>number</code> | If relevant to the search strategy, return a loaded number that represents how progress is indicated. |
21-
| [rawResponse](./kibana-plugin-plugins-data-public.ikibanasearchresponse.rawresponse.md) | <code>RawResponse</code> | |
21+
| [rawResponse](./kibana-plugin-plugins-data-public.ikibanasearchresponse.rawresponse.md) | <code>RawResponse</code> | The raw response returned by the internal search method (usually the raw ES response) |
2222
| [total](./kibana-plugin-plugins-data-public.ikibanasearchresponse.total.md) | <code>number</code> | If relevant to the search strategy, return a total number that represents how progress is indicated. |
2323

docs/development/plugins/data/public/kibana-plugin-plugins-data-public.ikibanasearchresponse.rawresponse.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## IKibanaSearchResponse.rawResponse property
66

7+
The raw response returned by the internal search method (usually the raw ES response)
8+
79
<b>Signature:</b>
810

911
```typescript

0 commit comments

Comments
 (0)