Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HTTP CRUD+ API for Index Patterns (#83576)
* 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