* add reactMount util to kibana_react
(kibana-react) properly export reactMount
* add MountPoint types and utility
* adapt toast API to no longer accept react elements
(toast API) properly export new Toast type
* adapt calls by using reactMount
createNotifications: do not wrap if text
* update generated doc
* add custom snapshot serializer for reactMount
* fix unit tests
fix xpack unit tests
* adapt non-ts calls
* do not add __reactMount__ property in production
* remove string check on createNotifications
* fix typo and small fix using obj spread
* improve react mount snapshot serializer
* simplify convertToEui
* rename reactMount to toMountPoint
* adapt newly added calls
* move mount types to proper file
* use new Mount types for OverlayBanner apis
* fixing typo
* adapt new calls
* use destructured imports
* [Maps] default grid aggregation source rendering to grid
* Update docs/maps/maps-aggregations.asciidoc
Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>
* add animated gif and text describing the animation
* clean up text
* simply text
* combine link to getting started with previous paragraph
* Allow registered applications to hide Kibana chrome
* Fix bug in flipped value of application chromeHidden
* Add additional test for app chrome hidden versus chrome visibility
* Rename chromeHidden to chromeless
* Default chrome service app hidden observable to same value as force hidden
* Consolidate force hiding in chrome, add functional tests
* Move chromeless flag to App interface to prevent legacy applications from specifying
* Address review nits to improve separation
* Added base folder structure for Newsfeed plugin
* Added base folders for lib and component
* Added newsfeed button to navigation controls on the right side
* add getApi() to return api data observable (#49581)
* Added flyout base body and provided EuiHeaderAlert component inside the newsfeed plugin
* Moved newsfeed plugin to OSS and added for the styles purpose new folder for legacy plugin 'newsfeed' with the same id to support this
* Added subscribe on fetch newsfeed change
* Add NewsfeedApiDriver class (#49710)
* add NewsfeedApiDriver class
* fix xpack prefix
* add corner case handling
* Added data binding to the ui
* added EuiHeaderAlert style overrides (#49739)
* Fixed due to comments on PR
* add missing fields to NewsfeedItem and FetchResult
* fix templating of service url
* gracefully handle temporary request failure
* Mapped missing fields for data and badge
* Fixed typos issues
* integrate i18n.getLocale()
* allow service url root to be changed in dev mode
* replace a lot of consts with config
* fix flyout height (#49809)
* Add "error" field to FetchResult: Error | null
* simplify fetch error handling
* Do not store hash for items that are filtered out
* add expireOn in case it is useful to UI
* always use staging url for dev config
* unit test for newsfeed api driver
* simplify modelItems
* Fixed eslint errors
* Fixed label translations
* Add unit test for concatenating the stored hashes with the new
* add newsfeed to i18n.json
* Fixed expression error
* --wip-- [skip ci]
* fix parse error
* fix test
* test(newsfeed): Added testing endpoint which simulates the Elastic Newsfeed for consumption in functional tests
* add tests for getApi()
* add tests for getApi
* Added no news page
* fix fetch not happening after page refresh with sessionStorage primed
* test(newsfeed): Added testing endpoint which simulates the Elastic Newsfeed for consumption in functional tests
* Added loading screen
* Small fixes due to comments
* Fixed issue with stop fetching news on error catch
* test(newsfeed): Configure FTS to point newsfeed to the simulated newsfeed endpoit
* Fixed browser error message: Invariant Violation: [React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.
* Fixed typo issue in label name
* polish the code changes
* Add simple jest/enzyme tests for the components
* honor utc format
* Filter pre-published items
* Fall back to en
* retry tests
* comment clarfication
* Setup newsfeed service fixture from test/common/config
* Added base functional tests for newsfeed functionality
* valid urlroot is for prod
* add documentation for the supported enabled setting
* more urlRoot
* --wip-- [skip ci]
* add the before for fn
* add ui_capabilties test
* update jest snapshot
* Fixed failing test
* finish newsfeed error functional test
* include ui_capability config
* error case testing in ci group 6
* refactor(newsfeed): moved newsfeed api call so that it is done before its use
* code polish
* enabled newsfeed_err test in CI
* [Maps] replace coordinate map with Elastic Maps in Kibana getting started docs
* update dashboard getting started page
* update screen shot
* Update docs/getting-started/tutorial-visualizing.asciidoc
Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>
* review feedback
* update dashboard instructions to include step to set time fitler
* clean up more instances for vector style
* review feedback
* [DOCS] New Canvas snapshots documentation
* Changes from 1-Oct meeting
* Some tweaks
* Added beta tag
* Fixes to images
* Comments from Gail and Tim
* New images
* Final changes
This PR adds a new syntax to KQL for querying nested fields.
Nested fields can be queried in two different ways:
Parts of the query may only match a single nested doc (bool inside nested). This is what most people want when querying on a nested field.
Parts of the query may match different nested docs (nested inside bool). This is how a regular object field works but nested fields can be queried in the same way. Although generally less useful, there are occasions where one might want to query a nested field in this way.
The new KQL syntax supports both.
* Renaming Infrastructure to Metrics whenever the context is the metrics app.
* More renames, and picking up a few stray references to Infrastructure/Metrics/Logs UI too.
* Fixing typo
* create NP docTitle service and bridge LP to it
Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>
* properly prefix the docTitle public types
Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>
* update documentation
Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>
* replace direct NP access with closure to avoid error when importing module in tests with no usages
Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>
* remove arrow functions for doc generation
Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>
* remove get$ from the api
Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>
* remove apply param and excludeBase option
Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>
* remove removed export
Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>
* adapt legacy service to new api
Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>
* add entry about docTitle in the migration guide
Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>
* add link in migration guide
Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>
* update generated doc
Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>
* update chrome mock
Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>
* update snapshots due to api change
Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>
* remove ChromeDocTitleChange in favor of inline type
Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>
* [Maps] add unique count metric aggregation
* do not format unique_count aggregation results
* do not format value in legend for unique count
* update heatmap docs
* one more doc change
* We have a NP plugin! :celebration:
* Redirecting to login on all 401s
* Adding commented out code for when credentials are omitted
* Fixing types
* Respond 403 when user changes password with incorrect current password
* Adding AnonymousPaths where we ignore all 401s
* Adding anonymous path tests
* Extracted a dedicated SessionExpires class and added tests
* Fixing plugin after refactoring to add SessionExpired
* Beginning to work on the session timeout interceptor
* Fixing UnauthorizedResponseInterceptor anonymous path test
* Removing test anonymous path
* Trying to improve readability
* Displaying session logout warning
* Mocking out the base path
* Revert "Mocking out the base path"
This reverts commit 824086c168.
* Changing coreMock to use a concrete instance of BasePath
* Adding session timeout interceptor tests
* Adding session timeout tests
* Adding more tests for short session timeouts
* Moving some files to a session folder
* More thrashing around: renaming and reorganizing
* Renaming Interceptor to HttpInterceptor
* Fixing some type errors
* Fixing legacy chrome API tests
* Fixing other tests to use the concrete instance of BasePath
* Adjusting some types
* Putting DeeplyMocked back, I don't get how DeeplyMockedKeys works
* Moving anonymousPaths to public core http
* Reading sessionTimeout from injected vars and supporting null timeout
* Doesn't extend session when there is no response
* Updating docs and snapshots
* Casting sessionTimeout injectedVar to "number | null"
* Fixing i18n issues
* Update x-pack/plugins/security/public/plugin.ts
Co-Authored-By: Larry Gregory <lgregorydev@gmail.com>
* Adding milliseconds postfix to SessionTimeout private fields
* Even better anonymous paths, with some validation
* Adjusting public method docs for IAnonymousPaths
* Adjusting spelling of base-path to basePath
* Update x-pack/plugins/security/public/session/session_timeout.tsx
Co-Authored-By: Larry Gregory <lgregorydev@gmail.com>
* Update src/core/public/http/anonymous_paths.ts
Co-Authored-By: Josh Dover <me@joshdover.com>
* Update src/core/public/http/anonymous_paths.ts
Co-Authored-By: Josh Dover <me@joshdover.com>
* AnonymousPaths implements IAnonymousPaths and uses IBasePath
* Removing DeeplyMocked
* Removing TODOs
* Fixing types...
* Now, ever more normal
* Pass along request object to all HTTP interceptors
* Do not trigger response interceptors from request errors; make request readonly
* Update core API
* Fix failing test
* Add tests to ensure that interceptors accumulate request and response across calls
* Make request readonly for request error interception, simplify response interception return types
* Update docs from request and response interception API change
* Add missing InterceptedHttpResponse generated docs
* add tests for logWithMetadata in LP
* allow passing metadata to log in NP & LP
* move ui_settings_client to NP
* add ui_settings config
* add ui_settings_service
* switch to NP logging
* export types
* bootstrap uiSettings service in NP
* pass NP uiSettings to LP
* move ui_settings mock to NP
* add test for mixin and switch to NP logger
* make UiSettingsClient.getDefaults sync as it is
* ui_settings_client uses private fields
* ui_settings_client uses private methods
* keep uiSettings config validation in NP only
* update mocks
* core context should know it is mocked
* add tests for ui_settings_service
* remove unused code from ui_settings_mixin test
* improve types in ui_settings_mixin test
* gen docs
* test moved to NP
* set pkg version in tests explicitly
* update mocks in tests
* UiSettingsServiceSetup --> InternalUiSettingsServiceSetup
* add links to types
* address eli comment
* regen docs
* remove unused types
* Expose Saved Objects client in request context
* API Integration test for savedobjects in req context
* SavedObjectsClient docs
* SavedObjectsClient#find remove dependency on indexPatterns
And use the saved objects mappings instead
* Review comments
* Review comments, fixes and tests
* Use correct type for KQL syntax check