-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* refactor: ๐ก extract out createIndexPatternsService() method * feat: ๐ธ add create index pattern route * feat: ๐ธ add index patterns http context * feat: ๐ธ add schema for index pattern create method * refactor: ๐ก compose schema out of variables * feat: ๐ธ allow to not make the new index pattern a default one * feat: ๐ธ implement index pattern create endpoint * docs: โ๏ธ add index pattern create endpoint docs * fix: ๐ add error handling wrapper * feat: ๐ธ add index pattern GET route * docs: โ๏ธ add index pattern GET mention to docs * feat: ๐ธ add higher order route handler to check for context * feat: ๐ธ add index pattern deletion endpoint * docs: โ๏ธ add delete endpoint docs entry * feat: ๐ธ add index pattern update route * feat: ๐ธ add ability to update timeFieldName * feat: ๐ธ add ability to edit intervalName, sourceFilters, fields * feat: ๐ธ allow updating index pattern type and typeMeta * feat: ๐ธ add ability to update index_pattern fields * docs: โ๏ธ add index pattern update endpoint docs * docs: โ๏ธ fix typo * feat: ๐ธ disable XSRF and add Content-Type * fix: ๐ enable xsrf * feat: ๐ธ send 404 status code when index pattern is not found * fix: ๐ correctly report empty change set error * feat: ๐ธ fields API add route for adding field to IP * docs: โ๏ธ add index pattern field create route * fix: ๐ throw on creating an existing index pattern field * feat: ๐ธ add field upsert route * feat: ๐ธ add field get api endpoint * feat: ๐ธ add field delete endpoint * refactor: ๐ก improve 404 error handling * refactor: ๐ก improve index pattern 404 error class * feat: ๐ธ add field update api endpoint * docs: โ๏ธ typo * refactor: ๐ก rename ski_field_refresh to refresh_fields in creat * refactor: ๐ก rename to refresh_fields param in update call * refactor: ๐ก rename parameter to refresh_fields in fields api * feat: ๐ธ allow creating and deleting only scripted fields * style: ๐ fix TypeScript/Prettier error * test: ๐ add index pattern creation negative tests * test: ๐ add index pattern create method tests * feat: ๐ธ remove make_default flag * docs: โ๏ธ update docs * test: ๐ add index patter api get tests * test: ๐ add delete index pattern tests * fix: ๐ fix TypeScript error after refactor * docs: โ๏ธ update autogenerated docs * docs: โ๏ธ update autogenerated docs * refactor: ๐ก change Fields API to Scripted Fields API * feat: ๐ธ allow only scripted fields in Scripted Fields API * test: ๐ add index patter api update tests * test: ๐ add scripted field create api tests * test: ๐ add scripted field delete api tests * test: ๐ add scripted fields fetch api tests * test: ๐ add scripted field field put api tests * test: ๐ add scripted field update api test * feat: ๐ธ add index pattern field update endpoint * feat: ๐ธ improve index patterns fields api * test: ๐ fix test * docs: โ๏ธ update docs README * test: ๐ add field metadata deletion teests * docs: โ๏ธ improve index pattern api readme * fix: ๐ fix TypeScript errors * test: ๐ update jest tests * docs: โ๏ธ update auto-generated docs * feat: ๐ธ remove intervalName from index pattern create API * test: ๐ fix integration tests * fix: ๐ make refresh_fields default to false * chore: ๐ค remove searchable and aggregatable from public API * chore: ๐ค remove various field properties * chore: ๐ค remove "index" attribute from public field schema * docs: โ๏ธ update docs to match API * chore: ๐ค fix TypeScript errors * test: ๐ try fixing functional tests * docs: โ๏ธ update auto-generated docs * chore: ๐ค check if this fixes security tests * fix: ๐ create index patterns context only if user is authc * fix: ๐ assert on index patterns service * test: ๐ try fixing integration tests * fix: ๐ try fixing integration tests * chore: ๐ค update auto-generated docs * refactor: ๐ก directly inject index pattern provider into create * refactor: ๐ก create index pattern service directly in each route * refactor: ๐ก remove index pattern route context provider * chore: ๐ค remove unused code * chore: ๐ค remove refresh_fields from scripted fields * style: ๐ change template param names * refactor: ๐ก make field.count always be an integer * docs: โ๏ธ update auto-generated docs * refactor: ๐ก inject index patterns using getStartServices * docs: โ๏ธ update autogenerated docs * docs: โ๏ธ update docs
- Loading branch information
Showing
77 changed files
with
4,608 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...ins/data/public/kibana-plugin-plugins-data-public.indexpattern.setfieldattrs.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [IndexPattern](./kibana-plugin-plugins-data-public.indexpattern.md) > [setFieldAttrs](./kibana-plugin-plugins-data-public.indexpattern.setfieldattrs.md) | ||
|
||
## IndexPattern.setFieldAttrs() method | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
protected setFieldAttrs<K extends keyof FieldAttrSet>(fieldName: string, attrName: K, value: FieldAttrSet[K]): void; | ||
``` | ||
## Parameters | ||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| fieldName | <code>string</code> | | | ||
| attrName | <code>K</code> | | | ||
| value | <code>FieldAttrSet[K]</code> | | | ||
<b>Returns:</b> | ||
`void` | ||
23 changes: 23 additions & 0 deletions
23
...ins/data/public/kibana-plugin-plugins-data-public.indexpattern.setfieldcount.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [IndexPattern](./kibana-plugin-plugins-data-public.indexpattern.md) > [setFieldCount](./kibana-plugin-plugins-data-public.indexpattern.setfieldcount.md) | ||
|
||
## IndexPattern.setFieldCount() method | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
setFieldCount(fieldName: string, count: number | undefined | null): void; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| fieldName | <code>string</code> | | | ||
| count | <code>number | undefined | null</code> | | | ||
|
||
<b>Returns:</b> | ||
|
||
`void` | ||
|
23 changes: 23 additions & 0 deletions
23
...ta/public/kibana-plugin-plugins-data-public.indexpattern.setfieldcustomlabel.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [IndexPattern](./kibana-plugin-plugins-data-public.indexpattern.md) > [setFieldCustomLabel](./kibana-plugin-plugins-data-public.indexpattern.setfieldcustomlabel.md) | ||
|
||
## IndexPattern.setFieldCustomLabel() method | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
setFieldCustomLabel(fieldName: string, customLabel: string | undefined | null): void; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| fieldName | <code>string</code> | | | ||
| customLabel | <code>string | undefined | null</code> | | | ||
|
||
<b>Returns:</b> | ||
|
||
`void` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
.../data/public/kibana-plugin-plugins-data-public.indexpatternfield.deletecount.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [IndexPatternField](./kibana-plugin-plugins-data-public.indexpatternfield.md) > [deleteCount](./kibana-plugin-plugins-data-public.indexpatternfield.deletecount.md) | ||
|
||
## IndexPatternField.deleteCount() method | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
deleteCount(): void; | ||
``` | ||
<b>Returns:</b> | ||
|
||
`void` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...ins/data/server/kibana-plugin-plugins-data-server.indexpattern.setfieldattrs.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-plugins-data-server](./kibana-plugin-plugins-data-server.md) > [IndexPattern](./kibana-plugin-plugins-data-server.indexpattern.md) > [setFieldAttrs](./kibana-plugin-plugins-data-server.indexpattern.setfieldattrs.md) | ||
|
||
## IndexPattern.setFieldAttrs() method | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
protected setFieldAttrs<K extends keyof FieldAttrSet>(fieldName: string, attrName: K, value: FieldAttrSet[K]): void; | ||
``` | ||
## Parameters | ||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| fieldName | <code>string</code> | | | ||
| attrName | <code>K</code> | | | ||
| value | <code>FieldAttrSet[K]</code> | | | ||
<b>Returns:</b> | ||
`void` | ||
23 changes: 23 additions & 0 deletions
23
...ins/data/server/kibana-plugin-plugins-data-server.indexpattern.setfieldcount.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-plugins-data-server](./kibana-plugin-plugins-data-server.md) > [IndexPattern](./kibana-plugin-plugins-data-server.indexpattern.md) > [setFieldCount](./kibana-plugin-plugins-data-server.indexpattern.setfieldcount.md) | ||
|
||
## IndexPattern.setFieldCount() method | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
setFieldCount(fieldName: string, count: number | undefined | null): void; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| fieldName | <code>string</code> | | | ||
| count | <code>number | undefined | null</code> | | | ||
|
||
<b>Returns:</b> | ||
|
||
`void` | ||
|
23 changes: 23 additions & 0 deletions
23
...ta/server/kibana-plugin-plugins-data-server.indexpattern.setfieldcustomlabel.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-plugins-data-server](./kibana-plugin-plugins-data-server.md) > [IndexPattern](./kibana-plugin-plugins-data-server.indexpattern.md) > [setFieldCustomLabel](./kibana-plugin-plugins-data-server.indexpattern.setfieldcustomlabel.md) | ||
|
||
## IndexPattern.setFieldCustomLabel() method | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
setFieldCustomLabel(fieldName: string, customLabel: string | undefined | null): void; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| fieldName | <code>string</code> | | | ||
| customLabel | <code>string | undefined | null</code> | | | ||
|
||
<b>Returns:</b> | ||
|
||
`void` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.