* Revert "[APM] Hoist HeaderMenuPortal to prevent unmounts (#92012)"
Revert the change from #92012 to put the `HeaderMenuPortal` back within the routing context so getting data from the path params works.
Use a context to fetch the list of jobs and use it in the callout and the header menu icon. This makes it so the fetch only happens once.
A refetch function is exposed from the context and called when a new job is created.
* Make package validation be based on types
* Add package info to cache after it is generated from ES storage
* Add logging around package info retrieval and when cache is set
* Add snapshot api integration test for uploaded package info
* Use the apache package for snapshot test instead
* Remove date field from snapshot
* Update docs
* Fix streams getting overridden
* Add back package field to data streams
* PR fixes
* Add delete engine route to App Search
* Add new deleteEngine listener to EnginesLogic
* Convert EnginesTable Manage into a proper EuiBasicTable action
* Call EnginesLogic.actions.deleteEngine using new action in EnginesTable
* Manage action on EnginesTable should use eye icon
* Confirmation alert for delete action on EnginesTable
* Only display manage/delete actions to users with canManageEngines
* Add success message and reload after successful engine delete
* Jest tests for EngineTable actions
* Copy change for engine delete success message
* Fixing EnginesTable tests
* Adding more tests for DELETE engine route
* engineNameLink -> EngineNameLink
* Remove redundant test
* Convert Engine.type to enum EngineTypes
* Must use mountWithIntl
* Use platinum license instead of role ability check
Improves error handling for the transform wizard when Kibana index pattern or saved search fails to load.
Previously a non-existing index pattern or saved search or corrupt saved object could cause the page to end up blank. Improved error reporting will catch the problem and display an error callout.
* Create dev_principles.mdx
* add back elasticsearch dev principles link since it is actually public
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Remove request facade and update search strategies
* Use typescript
* Type files
* Update structure
* Update tests
* Type annotations
* Fix type for infra
* Enhance types
* Remove generics
* Use constant
* Update docs
* Type capabilities
* add nested field inside of dataprovider
* make sure to get nested
* fix elq server side
* add mock for nested attributes
* Add basic tests for nested fields query generation
* Update snapshots and failing tests with nestedFields
* fix nested date
Co-authored-by: Kevin Qualters <kevin.qualters@elastic.co>
* Removing duplicate ActionVariable interface. Updating common action variables in UI
* Passing in alert values as rule variables in transform_action_params
* Fixing unit tests
* Fixing functional test
* Adding functiional test
* Updating paths
* Fixing i18n
* Fixing i18n
* Fixing api docs
* Plugin api build
* Moving spaceId and tags under rule prefix
* Using top level alert prefix
* Fixing i18n
* build api docs
* Fixing functional test
* Fixing functional test
* Store session data sent from Enterprise Search server
This modifies the EnterpriseSearchRequestHandler to remove any data in a
response under the _sessionData key and instead persist it on the server
side.
Ultimately, this data will be persisted in the login session, but for
now we'll just store it in a cookie. https://github.com/elastic/kibana/issues/92558
Also uses this functionality to persist Workplace Search's OAuth token
package.
* Only return a modified response body if _sessionData was found
The destructuring I'm doing to remove _sessionData from the response is
breaking routes that currently expect an empty response body. This
change just leaves those response bodies alone.
* Refactor from initial feedback & add tests
* Decrease levity
* Changes from PR feedback
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Prevent EuiFocusTrap from blocking focus to global search
* Only run when flyout is open
* Remove unused import
* Fix broken cypress test
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [DOC] Clarify compatibility of Saved Objects across versions
* Update docs/management/managing-saved-objects.asciidoc
* Saved objects compatibility
* clarify that same version export/import is compatible
* Add compatibility to SO import API docs
Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>
* Retrieve SOs by ID in a space-aware manner by using bulkGet
We were previously using a manual invocation of find(), which was a)
tied to the current implementation of how SOs generate their _ids, and
b) didn't respect spaces.
By replacing this with a call to bulkGet, which automatically respects
the space of the current request, and which abstracts away the building
of the actual _id based on the SO ID and type, we address the issues
above.
* Surface SO errors to the finalize/delete APIs
Now that we're using bulkGet, we receive an object with errors if the
object is not found, which by default breaks our subsequent validation.
In order to provider better UX, we re-raise the first of these errors
that we find, if present, and return that to the user.
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>