* More dashboard migrations
* address review comments
* remove unused translations
* use logger instead of console
* remove need for lodash
* clean up translations
* Add ui metric tracking so we have a better idea whether being stricter with migrations will cause issues
* undo trackUiMetric... not available when migrations run
* [APM] Transactions breakdown graph: Add breakdown KPI component
Closes#36445.
* Remove percentage, line wrapping, correct query
* Add transaction breakdown chart to transaction details page
* Move files into new plugin dir
* Add empty state; update labels
* Use new mapping
* Move urlParams to useTransactionBreakdown hook
* Fix types
* Only show empty state in TransactionBreakdown if previously data was rendered
* Restrict no of KPIs to 20
* Use ternary in render of TransactionBreakdownHeader for consistency
* Mocks for CoreStart, CoreSetup and PluginInitializerContext
* Public CoreStart, CoreSetup mocks
* Update api signature/docs
* Convert embaddable_api tests to new core mocks
* CR Feedback
* Introduce ui_new_platform.test.mocks and refactor embedabble tests
* Hack to get TS warnings for Core mocks
* Core mocks types cleanup & hack to get TS warnings for Server Core mocks
* Use __mocks__ new_platform
* Remove accidently commited auto-mock
* Introduce MockedKeys type for Core mocks
* Better typing/docs for UiSettings
* Revert "Use __mocks__ new_platform"
This reverts commit 2d666facc8.
* Add missing mock to test
* Cleanup UiSettings types
Adds a section to the job details section to configure continuous mode for a data frame transform.
- The switch to enable the mode is only available if the index pattern features at least one date field.
- If enabled, the user can pick a date field from a dropdown and configure the delay.
The data frame backend will remove support for custom date_histogram formats in 7.3. This PR reflects the change in the data frame transform wizard and removes the addition of date format.
Note that with this change, date fields will now show up as raw timestamps in the preview table. A follow up will re-introduce human readable dates (when mappings are available via the preview endpoint).
* bug when persited timeline does not have all the data wanted on the UI
* add api integration testing for timelien
* review I
* update snapshot
* again update snapshots for stat_item
# Cypress Tests
The `siem/cypress` directory contains end to end tests (specific to the `SIEM` app) that execute via [Cypress](https://www.cypress.io/).
At present, these tests are only executed in a local development environment; they are **not** integrated in the Kibana CI infrastructure, and therefore do **not** run automatically when you submit a PR.
See the `Server and Authentication Requirements` section below for additional details.
## Organizing Tests and (Mock) Data
- Code and CSS selectors that may be re-used across tests should be added to `siem/cypress/integration/lib`, as described below
- Smoke Tests are located in `siem/cypress/integration/smoke_tests`
- Mocked responses from the server are located in `siem/cypress/fixtures`
### `cypress/integration/lib`
The `cypress/integration/lib` folder contains code intended to be re-used across many different tests.
- Files named `helpers.ts` (e.g. `siem/cypress/integration/lib/login/helpers.ts`) contain functions (e.g. `login`) that may be imported and invoked from multiple tests.
- Files named `selectors.ts` export CSS selectors for re-use. For example, `siem/cypress/integration/lib/login/selectors.ts` exports the following selector that matches the Username text area in the Kibana login page:
```
export const USERNAME = '[data-test-subj="loginUsername"]';
```
## Server and Authentication Requirements
The current version of the Smoke Tests require running a local Kibana server that connects to an instance of `elasticsearch`. A file named `config/kibana.dev.yml` like the example below is required to run the tests:
```yaml
elasticsearch:
username: 'elastic'
password: '<password>'
hosts: ['https://<server>:9200']
```
The `username` and `password` from `config/kibana.dev.yml` will be read by the `login` test helper function when tests authenticate with Kibana.
See the `Running Tests Interactively` section for details.
## Running Tests Interactively
To run tests in interactively via the Cypress test runner:
1. Create and configure a `config/kibana.dev.yml`, as described in the `Server and Authentication Requirements` section above.
2. Start a local instance of the Kibana development server:
```
yarn start --no-base-path
```
3. Launch the Cypress interactive test runner:
```sh
cd x-pack/legacy/plugins/siem
yarn cypress:open
```
4. Click the `Run all specs` button in the Cypress test runner
![cypress](https://user-images.githubusercontent.com/4459398/60113545-39c54f00-972f-11e9-9c0c-5d28aecdf212.gif)
https://github.com/elastic/ingest-dev/issues/515
* Some fixes to the main listing screen
* Updates to file upload layouts
* Better discard changes modal
* Revert prettier auto-fixes in “Updates to file upload layouts"
* Revert prettier auto-fixes from "Some fixes to the main listing screen"
* Missed a line
* fix margin-bottom console warning
* clean up un-needed fileRef
* Add View in APM link to log flyout actions menu
* Change icon from apmTrace to apmApp
* Add tests for View in APM action
* Add docs for actions menu
* Update link to go to traces list
* Add rangeFrom and rangeTo to trace links
* Use 20 minute from/to range instead of 1 minute
* Amend network traffic calculations to account for interfaces
- Adds a network_traffic metric aggregation creator
- Amends rx and tx to use this
- Uses regular rate calculation for Kubernetes Pods
* Move network_traffic creator
* Amend syntax
* Add elasticsearch data dumps for 8.0.0 data
* Remove fixtures whilst unable to load in to api integration tests
* Amend network traffic calculations to account for interfaces
- Adds a network_traffic metric aggregation creator
- Amends rx and tx to use this
- Uses regular rate calculation for Kubernetes Pods
* Move network_traffic creator
* Amend syntax
* Add elasticsearch data dumps for 8.0.0 data
* Remove fixtures whilst unable to load in to api integration tests
* Use avg over max for spike avoidance
* [ML] Adds SIEM auditbeat and metricbeat data recognizer modules
* [ML] Added agent.type clause to winlogbeat manifest query
* [ML] Remove mistakenly included packetbeat module, plus text edits
* Add joinRows canvas function
Joinrows takes rows from a datatables and concatenates them into a
string. It also escapes them if needed and removes duplicates.
* Add help function
* Update x-pack/plugins/canvas/canvas_plugin_src/functions/common/joinRows.ts
Needs to be quoted for the interpreter to parse it
Co-Authored-By: Catherine Liu <catherineqliu@outlook.com>
* Remove quote workaround
* Make separate error message for joinRows
* Add distinct parameter to turn off duplicate checking
Fix help text
Update test to pass quote. To make it work in the browser we need to
quote it for the interpreter, but the unit test skip this part.
* Move column check out of loop
* Added i18n support
* Updated test
* Fixed ref to argHelp
* Moved new files into correct folder
* Fixed import
* Converted tests to Jest and renamed files to snakecase