Skip to content

Commit 4b0ac16

Browse files
committed
Merge branch 'IS-46410_remove-@kbn/ui-framework' of github.com:mbondyra/kibana into IS-46410_remove-@kbn/ui-framework
* 'IS-46410_remove-@kbn/ui-framework' of github.com:mbondyra/kibana: (49 commits) [ML] Re-activate after method in transform test (#51815) [SIEM] [Detection Engine] Add edit on rule creation (#51670) De-angularize visLegend (#50613) [SIEM][Detection Engine] Change security model to use SIEM permissions [Monitoring] Sass cleanup (#51100) Move errors and validate index pattern ⇒ NP (#51805) fixes pagination tests (#51822) Split legacy plugin discovery, expose SavedObjects scopedClient, wrappers, repository (#48882) [SIEM][Detection Engine] Adds ecs threat properties to rules (#51782) [Lens] Remove client-side reference to server source code (#51763) Fix infinite redirect loop when multiple cookies are sent (#50452) fixes drag and drop in tests (#51806) [Console] Proxy fallback (#50185) Query String(Bar) Input - cleanup (#51598) shim visualizations plugin (#50624) Expressions service fixes: better error and loading states handling (#51183) fixes url state tests (#51746) fixes browser field tests (#51738) [ML] Fix anomaly detection test suite (#51712) [SIEM] Fix Timeline drag and drop behavior (#51558) ...
2 parents f31ddf3 + b95fe8b commit 4b0ac16

888 files changed

Lines changed: 19235 additions & 12712 deletions

File tree

Some content is hidden

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

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ bower_components
88
/plugins
99
/built_assets
1010
/html_docs
11+
/src/plugins/data/common/es_query/kuery/ast/_generated_/**
1112
/src/fixtures/vislib/mock_data
1213
/src/legacy/ui/public/angular-bootstrap
1314
/src/legacy/ui/public/flot-charts
@@ -19,7 +20,6 @@ bower_components
1920
/src/core/lib/kbn_internal_native_observable
2021
/packages/*/target
2122
/packages/eslint-config-kibana
22-
/packages/kbn-es-query/src/kuery/ast/kuery.js
2323
/packages/kbn-pm/dist
2424
/packages/kbn-plugin-generator/sao_template/template
2525
/packages/kbn-ui-framework/dist

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
/config/kibana.yml @elastic/kibana-platform
6262
/x-pack/plugins/features/ @elastic/kibana-platform
6363
/x-pack/plugins/licensing/ @elastic/kibana-platform
64+
/packages/kbn-config-schema/ @elastic/kibana-platform
6465

6566
# Security
6667
/x-pack/legacy/plugins/security/ @elastic/kibana-security
@@ -76,6 +77,7 @@
7677
/src/dev/i18n @elastic/kibana-stack-services
7778
/packages/kbn-analytics/ @elastic/kibana-stack-services
7879
/src/legacy/core_plugins/ui_metric/ @elastic/kibana-stack-services
80+
/src/plugins/usage_collection/ @elastic/kibana-stack-services
7981
/x-pack/legacy/plugins/telemetry @elastic/kibana-stack-services
8082
/x-pack/legacy/plugins/alerting @elastic/kibana-stack-services
8183
/x-pack/legacy/plugins/actions @elastic/kibana-stack-services

.i18nrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"interpreter": "src/legacy/core_plugins/interpreter",
1717
"kbn": "src/legacy/core_plugins/kibana",
1818
"kbnDocViews": "src/legacy/core_plugins/kbn_doc_views",
19-
"kbnESQuery": "packages/kbn-es-query",
2019
"kbnVislibVisTypes": "src/legacy/core_plugins/kbn_vislib_vis_types",
2120
"kibana_react": "src/legacy/core_plugins/kibana_react",
2221
"kibana-react": "src/plugins/kibana_react",

docs/api/role-management/put.asciidoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ To use the create or update role API, you must have the `manage_security` cluste
2626
(Optional, object) In the `metadata` object, keys that begin with `_` are reserved for system usage.
2727

2828
`elasticsearch`::
29-
(Optional, object) {es} cluster and index privileges. Valid keys include `cluster`, `indices`, and `run_as`. For more information, see {xpack-ref}/defining-roles.html[Defining Roles].
29+
(Optional, object) {es} cluster and index privileges. Valid keys include
30+
`cluster`, `indices`, and `run_as`. For more information, see
31+
{ref}/defining-roles.html[Defining roles].
3032

3133
`kibana`::
3234
(list) Objects that specify the <<kibana-privileges, Kibana privileges>> for the role:

docs/developer/security/rbac.asciidoc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
[[development-security-rbac]]
22
=== Role-based access control
33

4-
Role-based access control (RBAC) in {kib} relies upon the {xpack-ref}/security-privileges.html#application-privileges[application privileges] that Elasticsearch exposes. This allows {kib} to define the privileges that {kib} wishes to grant to users, assign them to the relevant users using roles, and then authorize the user to perform a specific action. This is handled within a secured instance of the `SavedObjectsClient` and available transparently to consumers when using `request.getSavedObjectsClient()` or `savedObjects.getScopedSavedObjectsClient()`.
4+
Role-based access control (RBAC) in {kib} relies upon the
5+
{ref}/security-privileges.html#application-privileges[application privileges]
6+
that Elasticsearch exposes. This allows {kib} to define the privileges that
7+
{kib} wishes to grant to users, assign them to the relevant users using roles,
8+
and then authorize the user to perform a specific action. This is handled within
9+
a secured instance of the `SavedObjectsClient` and available transparently to
10+
consumers when using `request.getSavedObjectsClient()` or
11+
`savedObjects.getScopedSavedObjectsClient()`.
512

613
[[development-rbac-privileges]]
714
==== {kib} Privileges

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" | "searchFields" | "defaultSearchOperator" | "hasReference" | "sortField" | "page" | "perPage" | "fields">) => Promise<SavedObjectsFindResponsePublic<T>>;
12+
find: <T extends SavedObjectAttributes>(options: Pick<SavedObjectFindOptionsServer, "search" | "filter" | "type" | "fields" | "searchFields" | "defaultSearchOperator" | "hasReference" | "sortField" | "page" | "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;searchFields&quot; &#124; &quot;defaultSearchOperator&quot; &#124; &quot;hasReference&quot; &#124; &quot;sortField&quot; &#124; &quot;page&quot; &#124; &quot;perPage&quot; &#124; &quot;fields&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;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 |
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.coresetup.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ export interface CoreSetup
1919
| [context](./kibana-plugin-server.coresetup.context.md) | <code>ContextSetup</code> | [ContextSetup](./kibana-plugin-server.contextsetup.md) |
2020
| [elasticsearch](./kibana-plugin-server.coresetup.elasticsearch.md) | <code>ElasticsearchServiceSetup</code> | [ElasticsearchServiceSetup](./kibana-plugin-server.elasticsearchservicesetup.md) |
2121
| [http](./kibana-plugin-server.coresetup.http.md) | <code>HttpServiceSetup</code> | [HttpServiceSetup](./kibana-plugin-server.httpservicesetup.md) |
22+
| [savedObjects](./kibana-plugin-server.coresetup.savedobjects.md) | <code>SavedObjectsServiceSetup</code> | [SavedObjectsServiceSetup](./kibana-plugin-server.savedobjectsservicesetup.md) |
2223
| [uiSettings](./kibana-plugin-server.coresetup.uisettings.md) | <code>UiSettingsServiceSetup</code> | [UiSettingsServiceSetup](./kibana-plugin-server.uisettingsservicesetup.md) |
2324

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-server](./kibana-plugin-server.md) &gt; [CoreSetup](./kibana-plugin-server.coresetup.md) &gt; [savedObjects](./kibana-plugin-server.coresetup.savedobjects.md)
4+
5+
## CoreSetup.savedObjects property
6+
7+
[SavedObjectsServiceSetup](./kibana-plugin-server.savedobjectsservicesetup.md)
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
savedObjects: SavedObjectsServiceSetup;
13+
```

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@ Context passed to the plugins `start` method.
1111
```typescript
1212
export interface CoreStart
1313
```
14+
15+
## Properties
16+
17+
| Property | Type | Description |
18+
| --- | --- | --- |
19+
| [savedObjects](./kibana-plugin-server.corestart.savedobjects.md) | <code>SavedObjectsServiceStart</code> | [SavedObjectsServiceStart](./kibana-plugin-server.savedobjectsservicestart.md) |
20+

0 commit comments

Comments
 (0)