* migrate files from legacy path to new plugin path
* update file paths to reflect migrated files
* move minimal legacy client files back to legacy path in order to run kibana
* Completes the full cutover to the new kibana platform removing all shims and legacy adapters.
* Adds APM to ignored list for casing check.
* - moves public/utils/pickKeys.ts to common/utils/pick_keys.ts
- exposes getTraceUrl as a plugin static export of apm/public and updates import in infra
- fixes FeaturesPluginSetup import in apm/public app
- renames get_apm_index_pattern_titles -> get_apm_index_pattern_title
- getApmIndexPatternTitle is now a synchronous getter function
- removes unused comments and xpack.apm.apmForESDescription i18n translations
* Moves automatic index pattern saved object creation from
plugin start to when the Home screen first renders
* removed unnecessary legacy css imports
* fixed ci issues by:
- moving readOnly badge, and help extension setup to occure only
when apm app is mounted
- registering saved object types
- also moved createStaticIndexPattern from a react useEffect on the
APM home screen to when the app is mounted
* Final phase before the complete cutover
* NP migration
* lint fix
* More NP stuff
* Moved Stack Monitoring client plugin outside legacy and fixed all tests
* ...
* Removed unused files
* Fix for main links
* Fixed more tests
* Fixed redirect when clicking on SM icon again
* Code review feedback
* Addressed code review feedback
* Fixed return value
* Remove static src dependencies from kibana.json
We are only importing static code from these plugins, and not consuming
their plugin contracts. For this reason, we can safely remove them from
kibana.json as that imported code will always be included in our own
bundle.
* Make usageCollection an optional dependency
If it's not enabled, we simply use a noop for our tracker call.
* Remove unused plugin contracts
These are only needed when we're actually using them in our codebase.
For request handler contexts, we only need our kibana.json declaration.
* Remove unnecessary try/catch
With the addition of the null coalescing, the only chance for an error
is in usageCollection. However, if the usageCollection contract changes,
we should get a type error long before we see a runtime error.
* Improve typings of our Plugin classes
* passes missing generic arguments to public plugin interface
* passes missing generic arguments to both plugins' CoreSetup types
* Don't re-export core types
Instead, import them from core as needed.
* [Metrics UI] Add Charts to Alert Conditions
- Reorganize files under public/alerting
- Change Metrics Explorer API to force interval
- Add charts to expression rows
- Allow expression rows to be collapsable
- Adding sum aggregation to Metrics Explorer for parity
* Adding interval information to Metrics Eexplorer API
* Moving data hook into the expression charts component
* Revert "Adding interval information to Metrics Eexplorer API"
This reverts commit f6e2fc11be.
* Reducing the opacity for the threshold areas
* Changing darkMode to use alertsContext.uiSettings
* feat: brushing basic example for time histogram
* test: added
* refactor: simplify the structure
* refactor: move to inline function
* refactor
* refactor
* Always use time field from index pattern
* types
* use the meta.aggConfigParams for timefieldName
* fix: test snapshot update
* Update embeddable.tsx
removing commented code
* fix: moment remov
* fix: corrections for adapting to timepicker on every timefield
* fix: fix single bar condition
* types
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
* Remove duplicate donut chart, move used donut chart closer to usage, clean up import paths
* Change delete agent config to only single delete and delete all its associated data sources
* Initial pass at settings tab
* Reuse existing create agent config form instead
* Fix delete api
* Prevent nav drawer from hiding bottom bar (save action area) content
* Remove delete config functionality from list page
* Prevent API from deleting config with agents enrolled
* Fix namespace populating in form
* Display confirmation modal to deploy to agents if agents are detected
* Adjust confirm delete copy
* Fix i18n checks
* Fix type check
* Fix it again
* De-dupe confirm modal
* Fix i18n
* Update agent config info after saving
* Adjust skip unassign from agent config option schema in delete datasource method
* Allowing nested types to be merged with group
* Adding nested to case and handling other fields
* Cleaing up if logic
* Removing unneeded if statement
* Adding nested type to switch and more tests
* Keeping functions immutable
resolves https://github.com/elastic/kibana/issues/62668
Adds a property named `rel` to the nested saved objects in the event
documents, whose value should not be set, or set to `primary`.
The query by saved object function changes to only match event documents
with that saved objects if it has the `rel: primary` value.
This is used to limit searching alerting's executeAction event document
with only the alert saved object, and not the action saved object (this
document has an alert and action saved object). The alert saved object
has the `rel: primary` field set, and the action does not. Previously,
those documents were returned with a query of the action saved object.
* Removes plugin dependencies for better integration outside of Requests such as alerting
* Adds more unit tests
* Fixes more TypeScript types to be more normalized
* Makes this work with the user 'elastic' if security is turned off
- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
* Adjust NewDatasource type to exclude stream `agent_stream` property, add additional datasource hooks
* Initial pass at edit datasource UI
* Clean up dupe code, fix submit button not enabled after re-selecting a package
* Remove delete config functionality from list page
* Show validation errors for data source name and description fields
* Fix types
* Add success toasts
* Review fixes, clean up i18n
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Bind non primary time fields to timepicker
* Fix typescript argument types
* Allow auto interval on all fields
* Remove lens_auto_date function
* Fix existing jest tests and add test todos
* Remove lens_auto_date from esarchives
* Add TimeBuckets jest tests
* Fix typo in esarchiver
* Address review feedback
* Make code a bit better readable
* Fix default time field retrieval
* Fix TS errors
* Add esaggs interpreter tests
* Change public API doc of data plugin
* Add toExpression tests for index pattern datasource
* Add migration stub
* Add full migration
* Fix naming inconsistency in esaggs
* Fix naming issue
* Revert archives to un-migrated version
* Ignore expressions that are already migrated
* test: remove extra spaces and timeField=\\"products.created_on\\"} to timeField=\"products.created_on\"}
* Rename all timeField -> timeFields
* Combine duplicate functions
* Fix boolean error and add test for it
* Commit API changes
Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>