Michail Yasonik
35e10273d3
New nav ( #64018 )
...
Notably, also removes aria-hidden from many visualizations
2020-05-05 23:14:14 -05:00
Spencer
ee270c7c3f
disallow external imports to src/core/utils ( #64852 )
2020-05-05 14:56:22 -07:00
Pierre Gayvallet
6e2691358f
add generic typings for SavedObjectMigrationFn ( #63943 )
...
* add generic typings for SavedObjectMigrationFn
* change default attributes type to unknown
* update generated doc
* adapt new calls
* update generated doc
* update migration example
* fix merge conflicts
2020-04-30 10:28:14 +02:00
Pierre Gayvallet
aa8cb620bb
Allow to define and update a defaultPath for applications ( #64498 )
...
* add defaultPath to `AppBase` and use it in `navigateToApp`
* add removeSlashes util
* adapt `toNavLink` to handle defaultPath
* update generated doc
* codestyle
* add FTR test
* address comments
* add tests
2020-04-30 08:05:16 +02:00
CJ Cenizal
3b753ec514
ES UI new platform cleanup ( #64332 )
2020-04-28 09:41:02 -07:00
Rudolf Meijering
dfb6a308cf
Remove SO root property index signature ( #64434 )
...
* Remove SO root property index signature
* Update documentation
2020-04-27 16:08:27 +02:00
Pierre Gayvallet
3d78b1bcf9
Remove SO autocreateindex error and error page ( #64037 )
...
* remove autocreateIndex error and error page
* update generated doc
* delete unused keys
* remove sass import
* add missing graph import
* remove unused method
2020-04-27 10:02:40 +02:00
Joe Portner
d72de0ea16
Refactor saved object types to use namespaceType
( #63217 )
...
Remove `namespaceAgnostic` field that was deprecated in #54605 ,
use `namespaceType` instead.
2020-04-16 14:37:55 -04:00
Mikhail Shustov
af09fedaf2
[NP] add http resources sub-service ( #61797 )
...
* add HttpResources basic implementation
* expose http resources to plugins
* add mocks
* move http resources to a separate service
* hide rendering service
* adopt internal types
* expose HttpResources service to plugins
* update platform mocks
* plugins start using HttpResources API
* remove RenderingServiceSetup export
* RenderingServiceSetup --> InternalRenderingServiceSetup
* improve types
* remove httpRespources leftovers from http service
* remove rendering types from RequestHanlderContext
* fix security plugin tests
* add unit tests for httpResources service
* add unit tests
* remove outdated cache-control header
* restructure http resources service
* merge getUiPlugins and discover
* static route declaration shouldnt require auth & validate
* update docs
* use HttpResources service instad of rendering
* address comments
* update docs
* roll back unnecessary changes
* use getVars for rendering
* dont pass app. it is not public API
* remove static registers
* update migration guide
2020-04-16 16:09:39 +02:00
Pierre Gayvallet
bd159c7d59
fix ScopedHistory.createHref to prepend location with scoped history basePath ( #62407 )
...
* fix createHref to prepend with scoped history basePath + add option to exclude it.
* fix prependBasePath behavior
* fix test plugins urls
* add pathname to endpoint url builder methods
* Revert "add pathname to endpoint url builder methods"
This reverts commit 7604932b
* adapt createHref instead of prependBasePath
* use object options for createHref
* update generated doc
2020-04-11 09:27:45 +02:00
Joe Portner
97d1685c3d
Sharing saved-objects phase 1 ( #54605 )
...
Co-authored-by: kobelb <brandon.kobel@elastic.co>
2020-04-09 23:18:18 -04:00
Josh Dover
f84773faed
Add basic StatusService ( #60335 )
2020-04-08 13:16:32 -06:00
Pierre Gayvallet
468de51153
Add plugin start contract to getStartServices return value ( #61216 )
...
* add plugin own contract as third element of getStartServices result
* adapt plugins code
* update tests
* revert unknown to use void again
* update generated doc
* fix UT
* update mock to allow non-object `pluginStartContract`
* add @typeParam documentation
2020-03-26 10:49:05 +01:00
Josh Dover
4b012fb21a
Fix running Kibana Platform migrations in development ( #61325 )
2020-03-25 15:27:26 -06:00
Rudolf Meijering
0d45d9b53f
Update core migration docs links ( #61251 )
2020-03-25 22:22:21 +01:00
Pierre Gayvallet
babefb5737
introduce StartServicesAccessor type for CoreSetup.getStartServices
( #60748 )
...
* create StartServicesAccessor type
* update generated doc
* update usages to use new type
* add missing public annotation
2020-03-24 14:33:31 +01:00
Liza Katz
ef0935ff45
Add addInfo toast to core notifications service ( #60574 )
...
* addInfo toast
* md files
* fis types
* Added options to toast methods
* Export ToastOptions
* Export ToastOptions
* added test
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-20 08:38:02 +02:00
CJ Cenizal
4deea08f23
Publish getIsNavDrawerLocked$ method on core chrome service. ( #60191 )
...
* Remove isCollapsed, getIsCollapsed, and global_nav_state.
2020-03-17 18:15:26 -07:00
Larry Gregory
9318862f19
Allow kbn-config-schema to ignore unknown keys ( #59560 )
...
* allow kbn-config-schema to ignore unknown keys
* Consolidate unknown key configuration
* updates following merge
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-17 12:30:17 -04:00
Nathan Reese
ef3261132a
[Maps] move MapSavedObject type out of telemetry ( #60127 )
...
* [Maps] move MapSavedObject type out of telemetry
* move SavedObject from server to core/types
* review feedback
* results from check_published_api_changes
2020-03-16 15:40:52 -06:00
Mikhail Shustov
dd7531deb4
Add UiSettings validation & Kibana default route redirection ( #59694 )
...
* add schema to ui settings params
* add validation for defaults and overrides
* validate in ui settings client
* ui settings routes validation
* clean up tests
* use schema for defaultRoutes
* move URL redirection to NP
* fix spaces test
* update docs
* update kbn pm
* fix karma test
* fix tests
* address comments
* get rid of getDEfaultRoute
* regen docs
* fix tests
* fix enter-spaces test
* validate on relative url format
* update i18n
* fix enter-spoace test
* move relative url validation to utils
* add CoreApp containing application logic
* extract public uiSettings params in a separate type
* make schema required
* update docs
2020-03-16 14:30:20 +01:00
Rudolf Meijering
6e6325b1df
Expose Elasticsearch from start and deprecate from setup ( #59886 )
...
* Expose Elasticsearch from start and deprecate from setup
* Expose client under legacy namespace, add deprecated note
* Update migration guide
2020-03-13 21:17:38 +01:00
Rudolf Meijering
80e6ff729a
Make context.core required argument to context providers ( #59996 )
...
* Make context.core required argument to context providers
* Refactor plugins: context.core isn't optional anymore
* Update docs
2020-03-12 20:39:29 +01:00
Joe Portner
a2c002d130
Regenerate core api docs ( #59814 )
2020-03-10 17:24:05 -04:00
Pierre Gayvallet
f1272b5ffe
Add SavedObject management section registration in core ( #59291 )
...
* add management section to SavedObjectsType
* adapt import/export routes to get types accessor
* add documentation
* update generated doc
* update migration guide
* use request context to access exportable types
* update generated doc
* adapt SavedObjectsManagement to use the registry
* stop magical tricks about the config type, register it as any other so type.
* fix FTR assertions
* fix so_mixin tests
* register the `config` type from the uiSettings service
* nits and comments
* update generated doc
* remove true from dynamic property definition, use force-cast back for config type
* remove obsolete test comment
2020-03-10 11:13:45 +01:00
Mikhail Shustov
5c436534d6
Add an optional authentication mode for HTTP resources ( #58589 )
...
* add authRequred: 'optional'
* expose auth status via request context
* update security plugin to use notHandled auth outcome
* capabilities service uses optional auth
* update tests
* attach security headers only to unauthorised response
* add isAuthenticated tests for 'optional' auth mode
* security plugin relies on http.auth.isAuthenticated to calc capabilities
* generate docs
* reword test suit names
* update tests
* update test checking isAuth on optional auth path
* address Oleg comments
* add test for auth: try
* fix
* pass isAuthenticted as boolean via context
* remove response header from notHandled
* update docs
* add redirected for auth interceptor
* security plugin uses t.redirected to be compat with auth: optional
* update docs
* require location header in the interface
* address comments #1
* declare isAuthenticated on KibanaRequest
* remove auth.isAuthenticated from scope
* update docs
* remove unnecessary comment
* do not fail on FakrRequest
* small improvements
2020-03-07 11:55:20 +01:00
Pierre Gayvallet
b1cb92f822
Expose metrics service to public API ( #59294 )
...
* expose metrics service to public API
* update generated doc
2020-03-04 20:15:35 +01:00
Pierre Gayvallet
7130a0405f
Expose savedObject import / export utility methods ( #58882 )
...
* add getImportExportObjectLimit to so setup
* expose static method for so import / export
* improve functions naming
* fix mocked reference
2020-03-04 12:10:29 +01:00
Mikhail Shustov
4226b6f373
Allow disabling xsrf protection per an endpoint ( #58717 )
...
* add xsrfRequired flag to a route definition interface
* update tests
* deprecate server.xsrf.whitelist
It meant to be used for IdP endpoints only, which we are going to refactor to disable xsrf requirement per a specific endpoint.
* update docs
* do not fail on manual KibanaRequest creation
* address comments
* update tests
* address comments
* make xsrfRequired available only for destructive methods
* update docs
* another isSafeMethod usage
2020-03-03 15:46:50 +01:00
Pierre Gayvallet
64ffae3ec5
Add core metrics service ( #58623 )
...
* create base service and collectors
* wire the service into server, add mock
* add collector tests
* add main collector test
* export metric types from server
* add service and server tests
* updates generated doc
* improve doc
* nits and comments
* add disconnected requests test
2020-03-03 10:54:03 +01:00
Josh Dover
48a33abdee
Remove appBasePath from docs + add mock for AppMountParameters ( #58775 )
2020-03-02 15:51:33 -07:00
Pierre Gayvallet
2b9dc43158
add dynamic property to type definition ( #58852 )
2020-02-28 16:39:06 +01:00
Pierre Gayvallet
ce45647ea2
block SO setup API calls after startup ( #58718 )
2020-02-28 09:20:51 +01:00
Josh Dover
4cb9bc4472
Add ScopedHistory to AppMountParams ( #56705 )
2020-02-26 12:43:12 -07:00
Pierre Gayvallet
8524303b6e
Allow savedObjects types registration from NP ( #57430 )
...
* expose `registerType` API
* expose `getTypeRegistry` API
* change SavedObjectMigrationFn signature to add context
* fix exported types
* update generated doc
* update migration documentation
* fix legacy service test
* fix typings
* update service setup description
* add saved_objects server folder convention
* fix unit test
* documentation NITs
* add typeRegistry to SavedObjectClientWrapperOptions
2020-02-26 16:22:35 +01:00
Mikhail Shustov
d61ef267d5
force savedObject API consumers to define SO type explicitly ( #58022 )
...
* force savedObject consumers to define type explicitly
* address comments
* regen docs
2020-02-21 22:11:05 +01:00
Mikhail Shustov
a08070ec1a
Expose elasticsearch config schema ( #57655 )
...
* expose elasticsearch config schema
* update docs
* mark export as alpha since it can be deleted
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-21 09:32:23 +01:00
Josh Dover
5238493381
Expose serverBasePath on client-side ( #58070 )
2020-02-20 14:43:15 -07:00
Pierre Gayvallet
302c598e56
Preserve the original error name instead of returning raw AbortError ( #57550 )
...
* Preserve the original error name instead of returning raw AbortError
* use Error as the default error name
2020-02-14 08:58:20 +01:00
Pierre Gayvallet
26ad756596
add absolute
option to getUrlForApp
( #57193 )
2020-02-13 10:49:12 +01:00
Ahmad Bamieh
06df2b0db6
[Telemetry] Migrate public to NP ( #56285 )
...
* NP telemetry plugin barebones
* fully migrate telemetry sender
* license plugin to use NP telemetry
* fully migrated public to NP
* finish components testing
* fix all tests
* self code review
* remove commented code
* bracket notication for private methods
* bracket notication for private methods
* update license management tests
* afharo code review fixes
* type safe private method access in tests
* fix typecheck
* more type check fixes
* i18n check
* fix welcome page tests
* i18n optedInNoticeBanner title
* fix advanced settings field settings
* field name
* fix home snapshots
* listen to app id change
* NP code review fixes
* NP code review fixes
* update telemetry configs with np deprecations
* pass telemetry from setup instead of npStart
* type check
* update core snapshots with new api exposed
* remove debugging logs
* update home contract
* update home contract
* fix test eslint import
* navigate back to dashboard before start of next case for reporting
* gitignore reporting failure_debug generated dir
* use gotoDashboardEditMode instead of switch
* = instead of :
* merge master
* escape unused forced types in Field
* rename mock to mocks for eslint
* Update src/plugins/telemetry/public/components/telemetry_management_section.tsx
Co-Authored-By: Alejandro Fernández Haro <afharo@gmail.com>
* fix save/clear type
Co-authored-by: Alejandro Fernández Haro <afharo@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-13 09:44:01 +02:00
Rudolf Meijering
ff608998cd
Saved Objects testing ( #56965 )
...
* Expose core/public savedObjectsServiceMock
* Test docs for Saved Objects unit and integration tests
* Review comments
* Update api types / docs
2020-02-07 16:03:58 +01:00
Pierre Gayvallet
ea7c78d10e
Restructure SavedObject types internal representation ( #56378 )
...
* adapt types and tests to prepare for new NP api
* rename and export public types
* update generated doc
* first implementation of registerMappings
* adapt es archiver to convert legacy mappings
* update generated doc
* fix more tests
* add unit tests
* add legacy-compat unit test
* add documentation and examples
* Introduce SavedObjectTypeRegistry and SavedObjectType types
* add and fix tests
* expose createSerializer API and fix usages
* remove registerMappings API, add internal registerType
* revert changes to migration guide
* adapt ES-archiver migrator creation
* export serializer-related types
* update generated doc
* add and use convertTypesToLegacySchema
* remove / move to internal some mapping types
* fix forEach closure context
* add missing docs
* fix core path
* some nits
* fix so_mixin tests
* fix integration tests
* fix integration tests for real
* add documentation on serializer + restructure files and types
* nit
* add and use the ISavedObjectTypeRegistry interface
* Add documentation, deprecates migrationLogger#warning
* better typing for SavedObjectsRawDoc._source
* nits
* update generated doc
* remove exposition of SavedObjectsTypeMappingDefinitions, update doc
* creates so internal contracts mocks
* improve documentation
2020-02-06 10:30:55 +01:00
Pierre Gayvallet
4bb56c80b7
Add getServerInfo
API to http setup contract ( #56636 )
...
* add getServerInfo http setup api
* update generated doc
2020-02-04 08:03:36 +01:00
Nick Partridge
186a82669f
Kibana property config migrations ( #55937 )
...
* Move defaultAppId config param into kibanaLegacy
* Move disableWelcomeScreen config param into Home plugin
* Update api and docs with silent option for renameFromRoot
2020-02-03 22:17:27 -06:00
Greg Thompson
94be839a24
Upgrade EUI to v18.3.0 ( #56228 )
...
* eui to 18.3.0
* ts interface update
* src snapshot updates
* x-pack snapshot updates
* icons in nav
* Homepage updates, nav drawer and tests
* feedback
* more feedback
* euiIconType for observability and security
* remove unused translations
Co-authored-by: dave.snider@gmail.com <dave.snider@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-03 16:37:35 -06:00
Joe Reuter
8c2980213e
Add flag to opt out from sub url tracking ( #55672 )
...
* introduce flag for disabling sub url tracking
* re-generate documentation and extend ui_app
* fix ui_nav_link test
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-28 16:51:07 +01:00
Mikhail Shustov
aa695ec637
Normalize EOL symbol in platform docs ( #56021 )
...
* use api-extractor generate command with api-documenter config
* update docs
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-27 18:42:45 +01:00
Mikhail Shustov
efd3e99064
Revert "Normalize EOL symbol for the platform docs ( #55689 )" ( #56020 )
...
This reverts commit 1ea175e2c6
.
2020-01-27 16:29:27 +01:00
Mikhail Shustov
1ea175e2c6
Normalize EOL symbol for the platform docs ( #55689 )
...
* use api-extractor generate command with api-documenter config
* update docs
2020-01-27 14:39:56 +01:00