Over the last few years we've increased the number of test runners.
Entry points by test type have become too lage of a category for unique
names, so this moves top level test scripts under yarn and replaces test
types with the runner name.
e.g. `yarn test:browser` -> `yarn test:karma`
Closes#41133
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Fully migrates metrics and logs to the NP
Co-authored-by: Jason Rhodes <jason.matthew.rhodes@gmail.com>
Co-authored-by: John Schulz <github.com@jfsiii.org>
Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
* Stubbed route, static tree
Changing commit author to me
* Starting the queries
* Built out children api
* using agent id instead of labels and implementing the get node route
* Adding pagination, need to write tests
* Removing track_total_hits because it defaults to 10k
* Allowing null for origin information
* Building out tests
* Adding more response tests
* Adding test for children route
* Forgot to save
* Reverting first commit and keeping my changes to resolver route
* Working search handler tests
* Adding api test
* Trying to figure out the query issue
* Working api tests
* A little refactoring of common types
* Fixing tests
* Some clean up and fixing bad merge
* Working api
* Changing phse0 names
* Refactoring duplicate code in route
* Adding test for count query and fixing api test
* Renaming phase 1 to elastic endpoint
* Removing test files without tests
* Restructuring things
* Building events for process handler
* Working unit tests
* Working integration tests
* Pagination test is failing
* More refactoring
* Add alternative fields to support other datasources
* Working refactored routes
* Strip out 'synthetic id' stuff
* allow ppid to be undefined
* Some clean up and fixing typescript lint errors
* Removing changes to alerts
* Remove the additional query with the _id cursor
* Use Buffer.from instead of new Buffer
* Fixing import
* Fix decoding
* Fix Promise return type
* Fixing linter used before assigned problem
* Removing unused import
* gzipping the test file
* Addressing feedback, more clean next cursor
* Fixing cast for search_after
* Fixing test failure and adding comments
* Fixing timestamp string type failure
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Andrew Stucki <andrew.stucki@gmail.com>
* wip: convert jobValidation routes to NP
* fix typo in np migration docs
* replace legacy es plugin with callAsInternalUser from context
* add schema info for job validation routes
* update types and schema for job + cardinality validation
* update bucketSpanEstimator test
* update job validation schema
* [Maps] only request field in docvalue_fields when the field supports doc values
* do not include scripted fields in sourceOnlyFields
* review feedback
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Fixes a regression introduced by #56358. We're reusing the KqlFilterBar from the ML plugin in the transform plugin and missed updating the dependency management. Note this PR is only about fixing that regression. Future work on NP migration should take care of cleaning up the dependency management in the transforms plugin in general.
* transaction actions menu
* transaction actions menu
* fixing pr comments
* fixing pr comments
* fixing pr comments
* fixing pr comments
* fixing unit test
* fixing unit test
* using moment to calculate the timestamp
* renaming labels
* Changing section subtitle
* fixing unit tests
* replacing div for react fragment
* refactoring
* removing marginbottom property
* div is needed to remove the margin from the correct element
* [Telemetry] Refactor to TS Monitoring telemetry_collection files
* [Telemetry] Fetch side documents generated by monitoring to build up the Kibana plugins stats
* Update x-pack/legacy/plugins/monitoring/server/telemetry_collection/get_beats_stats.ts
Co-Authored-By: Ahmad Bamieh <ahmadbamieh@gmail.com>
* Fix import in test file
* Move mocha tests to Jest + TS
* Fix extended telemetry in functional tests
* Fix types
* [Telemetry] Fix bug in usage_collector wrong function override
* Revert integration tests (change not needed)
Co-authored-by: Ahmad Bamieh <ahmadbamieh@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
- Fixes hiding the global date picker on anomaly detection settings pages.
- Consolidates various timefilter usages for enabling/disabling the date picker into a useTimefilter() hook.
* Move mode and lexer rules to shared space
* Update searchprofiler mode rules
* Moved x-json worker out of searchprofiler and into es_ui_shared (for use in Watcher)
Renamed ace/mode -> ace/modes
* Moved collapse and expand literal string functions to es_ui_shared
* Fix some imports
Enable Watcher editor to parse XJson using XJsonMode
* Fix imports
Import JSON highlight rules in XJSONHighlight rules
* Move console_lang, fix Jest tests
Exporting console_lang through the es_ui_shared/public barrel caused the XJsonMode to imported to a index_management too and any other plugin that may
import something from that directory. console_lang was moved to it's own top level directory es_ui_shared/console_lang.
We also included a mock for tests using XJsonMode to import from console_lang.
* Fixed OSS Jest tests
Console Jest tests were still failing because they did not mock out the raw-loader imported worker file
* Expand triple quotes in editor
Upon entering the advanced watcher creation view, the JSON should be scanned for triple quote expansion
* Bring all editors themes in line
Editors had github theme, which diverged from the textmate theme used in Console and SearchProfiler
* Added XJSON mode to simulate alternative input editor
Slight refactor to the logic for using XJSON mode. Created an adhoc hook for wrapping the
logic of useState and moved lanugage util imports there too to reduce the number of imports
in both the watcher form and simulate tabs in advanced creation.
* Moved x-json worker to x-pack
x-json worker is currently only used inside of x-pack. Also testing
for if this will fix the CI/prod build
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Made eui search field not a controlled component
Added validateRegExpString util
* Update error message display. Use EuiCallOut and i18n to replicate other search filter behaviour, e.g. index management.
* Remove unused variable
* Update Jest snapshot
* Updated layout for callout
The previous callout layout looked off-center next to the controls in the table.
* Update copy and remove intl
Update "Filter Invalid:" to sentence case
Remove inject intl wrapper from CheckupControls component
Remove unnecessary grow={true}
* Updated Jest component snapshot
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>