* Begin adding telemetry functionality to uptime plugin.
* Add uptime telemetry collector.
* Add REST endpoints for telemetry logging.
* Add client code to trigger telemetry logging.
* Rename added files to legacy directory.
* Add isReady implementation to collector initialization.
* Rename telemetry getter client functions.
* Fix formatting
* Add basic to list of accepted licenses for REST requests.
* Move logMonitor call to single-use effect per page load.
* Handle base path for API links.
* Add functional api tests for telemetry collector.
* Fix broken test and add new one to handle added functionality.
* Add logic to drop old buckets each time the report is fetched. Add associated tests.
* Change app name and change default tab to snapshots
* Fix i18n issues
* UI placeholder for deleting snapshots
* Add bulk snapshot delete endpoint and test, adjust UI delete components
* Add restore action buttons
* Set up restore snapshot form entry
* Add RestoreSettings type
* Restore step general
* Combobox for ignore settings
* Code editor for modifying index settings
* Truncate list of indices in snapshot details and provide link to show all
* Disable include global state option for snapshots that don't have global state
* Add step titles, rename General to Logistics
* Committing deleted file
* Change repository detail settings to reverse list style
* Review summary tab and placeholder json tab
* Add restore wizard validation
* Add restore serialization
* Create restore endpoint and integration
* Move new files to /legacy
* Fix bugs, add search filter bar to indices list
* Allow de/select all of indices
* Create new recovery status tab
* Prefix hook methods with `use`
* Remove unnecessary RouteComponentProps
* Add get all snapshot recoveries endpoint, deserialization, types, and tests
* Remove unused timeout variable; enhance to allow polling (interval'd requests) without resetting state like loading
* Add recovery table
* Use shim'd i18n
* Adjust disabled restore state
* Fix invariant error
* Fix partial restore label
* Fix misc bugs
* Address copywriting feedback
* Address i18n feedback
* Address PR feedback
* Rename recovery to restore
* Add toggle show/hide link to restore wizard summary
* Fix snapshot tests due to changes in includeGlobalState deserialization format
* Fix EuiCard warning
* Move jobIcon to shared components directory
* use JobIcon component in DF message tab
* Convert JobIcon to Typescript
* move message types to common directory
* Clearer type names. Fixed icon width.
* fetch last 20 messages by default
* 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