* Move kibana-keystore from data/ to config/
This is a breaking change to move the location of kibana-keystore.
Keystores in other stack products live in the config directory, so this
updates our current path to be consistent.
Closes#25746
* add breaking changes
* update comment
* wip
* fix docs
* read from both keystore locations, write priority to non-deprecated
* note data directory fallback
* add tests for get_keystore
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* chore(NA): load NODE_OPTIONS from options files across environments
* chore(NA): move node.ci.options to config folder
* docs(NA): update docs to explain how to set node options from the cfg fil
* chore(NA): removed test npm scripts
* fix(NA): typo on setup script for CI
* chore(NA): add debug info
* chore(NA): export options on CI
* chore(NA): remove debug info
* chore(NA): support for configurable config folder using env var
* chore(NA): add node.options file into docker img
* fix(NA): use calculated config dir on node options for ci
* chore(NA): node bin scripts bootstrap and node_with_options implementation for bash
* chore(NA): complete node_with_options scripts with bat version
* chore(NA): add bin/node dev script and remove cli for run_with_node_options
* chore(NA): increase default maxBuffer
* chore(NA): remove run with options script from package.json
* chore(NA): include kbn-node script and underlying usage of it
* chore(NA): remove change on eslint
* chore(NA): correct typo on kbn node script comment
Co-authored-by: Tyler Smalley <tylersmalley@me.com>
* chore(NA): correct typo on kbn node script comment
Co-authored-by: Tyler Smalley <tylersmalley@me.com>
* chore(NA): add line to describe each option should be specified in a separated line
* chore(NA): remove node options from dev and ci env
* chore(NA): remove changes from package.json
* chore(NA): fix docker image build
* chore(NA): change value for example of --max-old-space-size in the node.options file
Co-authored-by: Tyler Smalley <tylersmalley@me.com>
* chore(NA): remove --no-warnings from node.options and force it in the bin scripts
* chore(NA): prevent 'The system cannot find the file' error message
* chore(NA): introduce slash when building path for %DIR%
* chore(NA): read options from file only if it exists
Co-authored-by: Jonathan Budzenski <jbudz@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Tyler Smalley <tylersmalley@me.com>
* Match add integration page with designs
* Clean up package config layout code
* Match edit integration config page with designs
* Fix typing and i18n issues
* Add back data test subj
* Add loading UI for second step; code clean up
* Fix limited packages incorrect response
* Add ability to create agent config when selecting config to add integration to
* Add error count to input-level panel; memoize children components
* Add error count next to all advanced options toggles
* Move general form error to bottom bar
* #69750 Auto-expand inputs with required & empty (invalid) vars
* #68019 Enforce unique package config names, per agent config
* Fix typing
* Fix i18n
* Fix reloading when new agent config _wasn't_ created
* Memoize edit integration and fix fields not collapsing on edit
* Really fix types
* Closes#70440 by adding a setup link to anomaly detection setting in the home header
* PR feedback and type error fix
* Code cleanup and PR feedback
* Modified getEnvironmentUiFilterES return type from `ESFilter | undefined` to `ESFilter[]` for ease of use.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Reintroduces the previous anomaly detection ML integration back into the
transaction duration chart in the service details screen. Support the
latest APM anoamly detection by environment jobs.
* PR feedback
* Code improvements from PR feedback
* handle errors thrown when fetching ml job for current environment
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* fixes alphabetical order for index patterns
* fixes cypress tests adding the new index pattern
* fixes jest tests
* fixes jest tests
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Add test for logs and metrics telemetry
* wait before you go
* Remove kubenetes
* Fix type check
* Add back kubernetes test
* Remove kubernetes
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* SQUASH
* WIP 2
* add block formatting on time to related list as well
* M. Sherrier review: untranslate timestamp / remove top border on panel
* redo dep
* CI: replace missing import with type
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Improves position resolution logic by also tracking last clicked element.
* Adds ownFocus prop, so can pick menu item with keyboard.
* Also track if target element was removed from DOM. In that case tries to use previous element. won't work all the time, but works nicely in case context menu trigger by item in other context menu.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Clean up matcher types
* Rework promise and error-handling in ManifestManager
* Write tests for ingest callback and ensure policy is returned when errors occur
* More tests for ingest callback
* Update tests
* Fix tests
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
- reinclude styling for the keyboard overlay (copied from legacy)
- refactor the exports of es_ui_shared to follow new pattern
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* fix tooltip of notes
* fix unit test
* update notes tooltip
* fix unit test
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
- Updates Linux Chromium builds to accept architecture argument (defaults to x64) for arm64 support.
- Example: `python ~/chromium/build_chromium/build.py 312d84c8ce62810976feda0d3457108a6dfff9e6 arm64`
- Updates all Chromium builds to include architecture in filename.
- `chromium-312d84c-linux_arm64.zip` _(new)_
- `chromium-312d84c-linux.zip` > `chromium-312d84c-linux_x64.zip`
- Moves Chromium install from data directory to `x-pack/plugins/reporting/chromium`
- Moves Chromium download cache from `x-pack/plugins/reporting/.chromium` to `.chromium`
- Installs Chromium during build (closes#53664)
- Updates build to be architecture aware (x64 and aarch64)
- Removed Chromium debug logs, they were not helpful and can not be written inside the Kibana root. If we were to keep them, we would need to write to `logging.dist`.
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
## Summary
* https://github.com/elastic/kibana/issues/69632
* Adds a retry loop in case of a network outage/issue which should increase the chances of success
* If there is still an issue after the 20th try, then it moves on and there is a high likelihood the tests will continue without issues.
* Adds console logging statements so we know if this flakiness happens again a bit more insight into why the network is behaving the way it is.
* Helps prevent the other tests from being skipped in the future due to bad networking issues.
The errors that were coming back from the failed tests are in the `afterEach` and look to be network related or another test interfering:
```ts
1) detection engine api security and spaces enabled
01:59:54 find_statuses
01:59:54 "after each" hook for "should return a single rule status when a single rule is loaded from a find status with defaults added":
01:59:54 ResponseError: Response Error
01:59:54 at IncomingMessage.response.on (/dev/shm/workspace/kibana/node_modules/@elastic/elasticsearch/lib/Transport.js:287:25)
01:59:54 at endReadableNT (_stream_readable.js:1145:12)
01:59:54 at process._tickCallback (internal/process/next_tick.js:63:19)
01:59:54
01:59:54 └- ✖ fail: "detection engine api security and spaces enabled find_statuses "after each" hook for "should return a single rule status when a single rule is loaded from a find status with defaults added""
01:59:54 │
01:59:54 └-> "after all" hook
01:59:54 └-> "after all" hook
01:59:54 │
01:59:54 │42 passing (2.0m)
01:59:54 │1 failing
```
So this should fix it to where the afterEach calls try up to 20 times before giving up and then on giving up they move on with the hope a different test doesn't fail.
### Checklist
- [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