* create newJob route and start of wizard
* wip: create configStep component
* finish configStep form and details
* wip: create andvanced step components
* create details step component
* createStep component
* ensure advanced options are correct for each job type
* add validation to each step
* use custom table for excludes
* move customSelectionTable to shared components
* form validation for advanced fields
* wip: source index selection modal
* add source index preview
* update details
* ensure advanced parameters added to config on creation
* can create job from savedSearch. can set source query in ui
* validate source object has supported fields
* eslint updates
* update tests. comment out clone action for now
* add create button to advanced editor
* remove deprecated test helper functions
* fix translation errors
* update help text. read only once job created.
* fix functional tests
* add nextStepNav to df service for tests
* fix excludes table page jump and hyperParameter not showing in details
* fix checkbox width for custom table
* implements `extends` to `ObjectSchema`
* add unit tests
* use expectType for types assertions
* allow to extends options
* add comment about deep extend
* rename siem to security_solution
* rename siem to security solution inside of code
* rename translation keys
* fix snapshot
* replace siem for security solution in tutorial
* missing translation to be renamed
* fix types for api test integration
* updates runner file to match the new path
* change category for kibana settings
* miss renaming in advance settings
* fixes cypress tests
* fix api integration test
* fix new translation
* fix unit test
* update translation i18n
* update translation i18n II
Co-authored-by: Gloria Hornero <snootchie.boochies@gmail.com>
Co-authored-by: Gloria Hornero <snootchie.boochies@gmail.com>
* add skeleton for global_search plugin
* base implementation of the server-side service
* add utils tests
* add server-side mocks
* move take_in_array to common folder
* implements base of client-side plugin
* add tests for server-side service
* fix server plugin tests
* implement `navigateToUrl` core API
* extract processResults for the client-side
* fetch server results from the client side
* factorize process_results
* fix plugin start params
* move things around
* move all server types to single file
* fix types imports
* add basic FTR tests
* add client-side service tests
* add tests for addNavigate
* add getDefaultPreference & tests
* use optional for RequestHandlerContext
* add registerRoutes test
* add base test for context
* resolve TODO
* common nits/doc
* common nits/doc on public
* update CODEOWNERS
* add import for declare statement
* add license check on the server-side
* add license check on the client-side
* eslint
* address some review comments
* use properly typed errors for obs
* add integration tests for the find endpoint
* fix unit tests
* use licensing start contract
* translate the error message
* fix eslint rule for test_utils
* fix test_utils imports
* remove NavigableGlobalSearchResult, use `application.navigateToUrl` instead.
* use coreProvider plugin in FTR tests
* nits
* fix service start params
* fix service start params, bis
* I really need to fix this typecheck oom error
* add README, update missing jsdoc
* nits on doc
# Conflicts:
# .github/CODEOWNERS
# rfcs/text/0011_global_search.md
* First iteration of xjson in monaco
* Throwaway implementation in painless lab - THIS MUST BE REVERTED
* WiP on build process for new kbn-lang package
* new @kbn/langs package and update ui-shared-deps
* Update jest config for new work files
* Update painless lab -- REVERT THIS COMMIT
* Create shared useXJson mode hook
* Final update to using the new shared useXJsonMode hook -- REVERT
* Created @kbn/monaco and share through shared deps
* always access monaco through `@kbn/monaco`
* use path.resolve to create path
* add basic readme
* remove console.log call
* remove typescript support from ui-shared-deps webpack config
* use `@kbn/babel-preset`
* include the monaco styles in the kbn-ui-shared-deps
* sort package.json
* build worker at bootstrap rather than commiting to repo
* only build worker, don't pre-bundle monaco
* fix type check errors
* remove section from readme about committed dist
* keep editor.worker.js postfix
* forgot to save update to import
* license package as apache-2.0
* Added regenerator runtime for worker bundle
* revert changes to painless lab
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* First iteration of data streams in index management
- Added the data streams column
- Moved state down to component (using withRouter)
- Removed previous middleware for syncing url hash param
- call history.push to update the url in the component
* Updated jest tests
* refactor: includeHidden -> includeHiddenIndices
* Fix types
* Fix jest test and remove getting filter param from parent
* Small refactor to read url params in render function
* Clean up old data streams code
* Fix sorting on data stream field in table
* dataStream -> data_stream
* qs > * as qs
* [ML] WIP filter support
* [ML] value selector
* [ML] only supported filter aggs as options
* [ML] WIP apply config
* [ML] fix form persistence
* [ML] refactor
* [ML] support clone
* [ML] validation, get es config
* [ML] support "exists", fixes for the term form, validation
* [ML] fix ts issues
* [ML] don't perform request on adding incomplete agg
* [ML] basic range number support
* [ML] filter bool agg support
* [ML] functional tests
* [ML] getAggConfigFromEsAgg tests
* [ML] fix unit tests
* [ML] agg name update on config change, add unit tests
* [ML] update snapshot
* [ML] range selector enhancements
* [ML] improve types
* [ML] update step for range selector to support float numbers
* [ML] range validation
* [ML] term selector improvements
* [ML] fix switch between advanced editor
* [ML] prefix test ids
* [ML] support helper text for aggs item
* Support api_integration/kibana/stats against remote hosts
The stats API integration tests run under the assumption of a fixed
kibana.yml. This is the case when running against a
default FTR configuration, but not when running against remote servers.
This relaxes a few assertions and conditionally runs in cases that can't be
relaxed.
Resolves#37386
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [Reporting] Move code out of Legacy (#67904)
* [Reporting] Move code out of Legacy
* Elasticsearch is not a plugin dep
* add data as plugin dependo
* diff cleanup 1
* log the browser download
* Update paths in outside code for new Reporting home
* fix download test
* add numeral typing for x-pack/test
* Fix jest tests for np migration
* Shorten import paths
* remove this file, add typings to the node module
* remove local typing that has been provided by node module
* Add optional security plugin dep
* revert conflicting apm typings removal
* fix i18n
* fix snakecase whitelist
Co-authored-by: Joel Griffith <joel.griffith@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
# .ci/packer_cache.sh
# src/dev/code_coverage/ingest_coverage/__tests__/transforms.test.js
# src/dev/code_coverage/ingest_coverage/integration_tests/mocks/jest-combined/coverage-summary-manual-mix.json
# x-pack/plugins/reporting/server/export_types/printable_pdf/server/create_job/index.ts
* Add back in legacy bwc route
* Kill code_coverage since it's not supposed to be here...
Co-authored-by: Tim Sullivan <tsullivan@users.noreply.github.com>
* chore(NA): remove config arg from os packages
* chore(NA): remove args from exec on init d
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* chore(NA): avoids imports of server or public code into common
* chore(NA): fix imports from public or server into common
* chore(NA): fix typechecking for data plugin stubs
* chore(NA): fix types and tests related with licensing plugin
* chore(NA): fix problems on infra plugin
* chore(NA): fix typo on .eslintrc.js
Co-authored-by: Ryland Herrick <ryalnd@gmail.com>
* chore(NA): migrate to license mock usage on security plugin licensing module
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Ryland Herrick <ryalnd@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Ryland Herrick <ryalnd@gmail.com>
The order of the `select` statement items were reversed in the translation for `xpack.apm.kueryBar.placeholder`, causing an error in the KueryBar component which caused the page to fail to load.
Fix the translation, which fixes the error.
Fixes#67082.
Update the x-pack `createJestConfig` function to take the `rootDir` as an argument, which allows for easier overriding of the Jest configuration for a specific directory.
Previously we would run Jest in development from the x-pack directory by running something like:
```
node scripts/jest.js --testPathPattern=plugins/apm --watch
```
Currently (for me anyway) this is failing with:
```
Error: EMFILE: too many open files, watch
at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:123:28)
```
and it would sometimes not correctly test only the changed files when a change in APM was made. It was also difficult to configure correctly with the [VSCode Jest extension](https://marketplace.visualstudio.com/items?itemName=Orta.vscode-jest).
Add a jest.config.js for APM. This makes running with `--watch` better about which files it chooses to re-run and makes the VSCode extension work (including coverage mapping) with minimal configuration.
# Conflicts:
# x-pack/dev-tools/jest/create_jest_config.js
* Consolidate context menu/row action components and usage, and some export/imports
* Missed export
* Move agent config yaml tab to flyout, add and consolidate agent config action menus
* Fix i18n
* Add download config YAML endpoint and link from flyout, add common config->yaml service
* Actually remove the tab lol
* Fix i18n