Missed sorting the columns ids based on populated fields. If not all fields are populated in all documents equally, this could result in not correctly sorted columns, also resulting in flaky tests.
* New flyout with event filters form
* Changes on event filters form to allow OS selector. Add new error on state for OS. Add created entry to the entries list
* Fixes typo
* Adds empty page with an add button that opens flyout. Alos added route and path management
* Fixes type and adds a TODO comment. Also removes ESlit rule for useCallback deps
* Fixes unit test. Adds consts for default page size and page index
* Fixes warning state update on an unmounted component
* Fixes infinite useEffect loop useFetchIndex hook because non memoized value
* Adds policy:all to eventFilter.tag and disables or button on exception builder
* Changes component name and simplify hook using useCallback without a custom callback
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [Visualize] Fixes K8 theme issues
* Fix ci
* Make it work for v7 too
* Fix
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
The transform wizard can become very slow when used with indices with e.g. 1000+ fields.
This PR fixes it by prefetching 500 random documents to create a list of populated/used fields and passes those on to the data grid component instead of all available fields from the list derived via Kibana index patterns.
For example, for an out of the box metricbeat index, this reduces the list of passed on fields from 3000+ to ~120 fields. Previously, the page would freeze on load for tens of seconds and would freeze again on every rerender. With the applied update, the page loads almost instantly again and remains responsive.
Note this fix of reducing available fields is only applied to the data grid preview component. All fields are still available to create the configuration in the UI for groups and aggregations. These UI components, e.g. the virtualized dropdowns, can handle large lists of fields.
* [Connectors][API] Updated connectors with enabledAfterImport flag
* fixed functional tests
* added new field to connectors API docs
* added update unit test
* fixed test
* renamed enableAfterImport to isMissingSecrets
* removed onExport
* revert the logic of true/false for isMissingSecrets
* fixed test
* fixed tests
* added unit test
* fixed docs
* fixed import text and button labels
* fixed import text
* fixed text
* [Maps] convert FeaturesTooltip to TS
* tslint
* pass addFilters to method to keep not null check closer to check for undefined
* FeaturesTooltip
* convert test to ts
* fix snapshot
* clean up cast
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* do not restart Kibana server on integration tests writing logs
* unskip tests
* do not write to ended stream to avoid a race condition
* revert changes to the File appender
* fix race condition on the logging_system level
enforce buffer usage for all the logs created during disposal phase
Adds a link to discover from the transform list to the actions menu. Conditions for the link to be enabled:
- Kibana index pattern must be available
- Transform must have been started once and done some progress so there's the destination index available
* [Discover] Cleanup in runtime fields editor functional test
* Add uuid to field label
* Adding field after the update
* Unskip test
* Remove uuid from custom label
* Remove unused import
* Add route to get source engines for meta engines
* New empty SourceEngines component
* Add SourceEngines to EngineRouter
* New SourceEnginesLogic file
* Hook up SourceEngines component to SourceEnginesLogic
* Update EngineNav link to manage source engines to point internally
* PR Feedback:
- Copy fixes
- Markup improvements
- Spleling erors
- Test improvements
* Move EnginesAPIResponse to shared types file
* Use existing mock for EngineLogic
* setSourceEngines -> onSourceEnginesFetch
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>