Commit graph

1889 commits

Author SHA1 Message Date
Lukas Olson
851af7ba09
[6.7] [KQL] Support matching field names with newlines (#30859)
* Use 's' instead of 'm' to match newlines instead of doing multi-line

* Fix autocomplete suggestions to handle newlines and tabs in field names

* Add line feed to escaped whitespace
2019-02-13 10:44:41 -07:00
Nathan Reese
636914eb58
merge with master (#30953) 2019-02-13 10:12:55 -07:00
Chris Davies
5ec50b6331
[6.7] Remove custom WebPack bundles from Canvas (#30123) (#30656) 2019-02-13 12:06:06 -05:00
Melissa Alvarez
9f664f15c0
only trigger cellClick if selection defined (#30855) (#30959) 2019-02-13 12:04:29 -05:00
Justin Kambic
49f1d16d48
[Uptime] Fix snapshot query to handle large numbers of monitors (#30441) (#30745)
* Refactor snapshot histogram ES query and subsequent processing.

* Fix issues on client, remove obsolete code, update tests.

* Get type check passing and update Snapshot component's unit tests to work with new schema data.
2019-02-13 10:37:36 -05:00
Chris Cowan
5b806305c9
Fixing font size for icon div (#30744) (#30857) 2019-02-13 08:14:12 -07:00
Thomas Neirynck
6c5a718720
[Maps] Fix and improve error messaging when adding TMS from kibana.yml (#30529) (#30836) 2019-02-13 08:37:12 -05:00
Robert Monfera
f8e6dcdf62
[Canvas][Layout Engine] TypeScript conversion - Stage I (#29390) (#30927)
* Perf: avoid matrix transpose in canvas layout that served only initial docu purpose, don't cons extra arrays
* Chore: switch to ES2015 import/export and direct function access
* Chore: TS conversion for some of the layout engine files
* Chore: rework TS linting for all files under `aeroelastic` (even the `.js` ones)
2019-02-13 14:12:54 +01:00
nicknak
52107b7ad1
Handle warnings from task manager without stack traces. (#30692) (#30871)
* Handle warnings from task manager without stack traces.

* Fix typescript errors.

* Catch no living connection errors.

Swallow stack traces and do not throw errors.

* Should use string substitution instead of concatenation.
2019-02-13 05:49:31 -05:00
Nathan Reese
17d4b72ec1
[Maps] display documents when location field name contains a dot (#30774) (#30904) 2019-02-12 19:48:04 -07:00
Chris Davies
91fa01a173
[6.7] Allow for compatibility with ES 7.x (#30636)
Make Kibana 6.7 compatible with 7.0, at least enough to unblock manual testing.
2019-02-12 14:29:16 -05:00
Pete Harverson
e8f5dfddea
[ML] Handle removal of backend ml.enabled node attribute (#27604) (#30669) 2019-02-12 10:43:00 +00:00
Nathan Reese
c61c91afb2
[Maps] remove toasts for layer add and layer load error (#30584) (#30778)
* [Maps] remove toasts for layer add and layer load error

* remove side-effects of LAYER_DATA_LOAD_ERROR action

* more cleanup
2019-02-11 21:40:02 -07:00
James Gowdy
894adda928
[ML] Fixing detector help link in advanced wizard (#30641) (#30695)
* [ML] Fixing detector help link in advanced wizard

* tiny refactor
2019-02-11 22:09:21 +00:00
Catherine Liu
648c18f09f
Added isFirstLoad to transient state. (#30150) (#30703) 2019-02-11 14:05:37 -07:00
Spencer
4ce465c8a7
[ftr/uiSettingDefaults] disable telemetry by default (#30473) (#30672) 2019-02-11 11:11:13 -08:00
Jen Huang
72896ea8ce
Fix ordering of CCR plugin (#30596) (#30667) 2019-02-11 10:23:23 -08:00
Aleh Zasypkin
e767f904bc
[6.7] Add zh-CN.json translations and respective compatibility checks via i18n tools (#30644) 2019-02-11 16:11:37 +01:00
Pete Harverson
3fda63fe34
[ML] Fixes filtering on the metric cards in the data visualizer (#30493) (#30517) 2019-02-11 12:42:38 +00:00
James Gowdy
4130ddd93b
[ML] Fixing job deletion slow refresh delay (#30371) (#30486) 2019-02-11 10:26:53 +00:00
Nathan Reese
45ef0ae9f5
[Maps] do not display mapbox style inspector view unless turned on in kibana.yml (#30428) (#30541)
* [Maps] do not display mapbox style inspector view unless turned on by kibana.yml

* use better name for config name
2019-02-08 19:57:23 -07:00
Andrew Cholakian
cf2ec5ed4c
[6.x] [Uptime] Remove pointless max search size box (#29992) (#30091)
* [Uptime] Remove pointless max search size box (#29992)

This box is just confusing. You can only see 100 results so we should just hard-code that. Having it is left-over from a previous design.

* Update snap
2019-02-08 16:26:34 -06:00
Rashmi Kulkarni
8375eba2cb
Rollup job Functional UI test (#30280) (#30572) 2019-02-08 14:23:53 -08:00
Chris Davies
e457c154f7
Remove WebSockets from Canvas 6.7 (#30523) 2019-02-08 14:01:45 -05:00
Andrew Cholakian
43da7a298e
[Uptime] Improve perf / accuracy of overview queries (#29998) (#30146)
Improves the accuracy and perf of the up/down/total counts
Sets the correct size of 50 for the monitor list. The widget shows 50 entries.
2019-02-08 10:10:25 -06:00
Chandler Prall
3e224eb445
Upgrade EUI to 6.10.1 (#30404) (#30440) 2019-02-08 09:05:36 -07:00
Walter Rafelsberger
6bb1b10cee
[ML] Fix double escaping. (#30492) (#30499)
Because the info tooltip has been migrated to React, the escaping necessary for the previous jQuery based tooltip resulting in a double escaping and special character visible in the tooltip. This fixes it by removing the now unnecessary escaping.
2019-02-08 14:29:43 +01:00
Nathan Reese
ab34ca30c5
deconflict yarn.lock (#30465) 2019-02-07 20:58:09 -07:00
Thomas Neirynck
273549eca5
[Maps] Correctly handle single-feature joins (#30409) (#30471) 2019-02-07 22:38:31 -05:00
Thomas Neirynck
e16f98bd06
[Maps] Fix tileload error messaging / Fix heatmap error message (#30327) (#30444) 2019-02-07 19:49:23 -05:00
James Gowdy
252a09971f
[ML] Fixing position of job management search bar error (#30251) (#30361)
* [ML] Style tweaks for job management in K7

* adjusting search bar error

* removing custom title style for EuiTitle
2019-02-07 19:57:18 +00:00
Caroline Horn
eb77967d76
[6.7] EUI 6.10.0 & Background color fixes (#30136) (#30323) 2019-02-07 12:44:26 -05:00
Tim Sullivan
a2dff171b8
[6.7] [Task Manager] Provide "include_type_name: true" in put template (#30261) (#30304)
* [Task Manager] Provide "include_type_name: true" in put template (#30261)

* [Task Manager] Provide "include_type_name: true" in put template

* fix for 7.0+

* fix for 6.7
2019-02-07 08:17:29 -07:00
Nathan Reese
a2576c1598
merge conflicts (#30376) 2019-02-07 07:50:31 -07:00
Walter Rafelsberger
c139d4ecab
[6.7] [ML] Adds jest tests for annotation_service. (#30193) (#30205)
This adds tests to `server/models/annotation_service`. The tests include a check if the `.key` attribute of an annotation is properly removed from an annotation before indexing it.
2019-02-07 09:41:54 +01:00
Walter Rafelsberger
06d9def36c
[ML] Fixes dragSelect regression. (#29577) (#29589)
Some SCSS still used ml-explorer-swimlane (note the selector without the dot) for rules which referenced the angularjs tag <ml-explorer-swimlane /> which wrapped the swimlane. This element no longer exists in the DOM after the migration to React. Because the selector didn't match anymore, cells in the swimlanes would get a gray border when drag-selecting even if the feature to select a range of cells was turned off.

This fixes it by updating the SCSS to match the corresponding elements again. The referenced classes have been renamed to camelCase + ml-prefix and moved out of the deeply nested code. But no further SCSS refactoring is done in this PR, this is just about fixing this regression. Some legacy CSS from the ml-explorer-swimlane rule has been removed too.
2019-02-07 09:37:55 +01:00
Chris Roberson
55aae40598
[6.7] [Monitoring] Restore mappings.json (#30153) (#30244)
* Backport #30153

* Upgrade elasticsearchjs to 15.4

* Bump consistently

* Default to 6.7

* Revert "Default to 6.7"

This reverts commit 4f9de6ee46.

* Revert "Bump consistently"

This reverts commit 9588431aba.

* Revert "Upgrade elasticsearchjs to 15.4"

This reverts commit 8ea162d624.
2019-02-06 22:05:02 -05:00
Spencer
3f97d4b8e4
[6.7] [yarn] upgrade elasticsearch-js (#30298)
Backports the following commits to 6.7:
 - [yarn] upgrade elasticsearch-js (#30294)
2019-02-06 18:11:06 -08:00
James Gowdy
689f22db66
[ML] Fixing the hiding of the timepicker on the settings and data visualizer landing page (#30200) (#30307)
* [ML] Fixing the hiding of the timepicker on the settings page

* disabling timefilter on file data visualizer pages

* removing comment
2019-02-06 21:54:00 +00:00
liza-mae
4b4e1de5c7
Enable reporting tests on 6.x (#29666)
* Unskip reporting tests

* Remove phantom
2019-02-06 09:44:32 -07:00
Justin Kambic
cbebb9030e
[Uptime] Responsive snapshot histogram chart (#29649) (#30198)
* [Uptime] Responsive snapshot histogram chart (#29649)

* Resize snapshot histogram chart.

* Update busted tests.

* Update test snapshot after merge.
2019-02-06 10:14:04 -05:00
Justin Kambic
ec9f0b18ad
Add code to format the timeseries data to local time. (#30160) (#30194) 2019-02-06 07:59:12 -05:00
Justin Kambic
6acd31f085
[Uptime] Use EUI color palette for charts/histograms (#29439) (#30178)
* Add hardcoded eui primary/danger to charts/histograms.

* Use EUI JSON vars for color values.
2019-02-06 06:53:54 -05:00
Walter Rafelsberger
3d565603d0
[ML] Remove key attribute from annotation before indexing. (#30183) (#30187)
The UI adds a `key` attribute to annotation objects to store the letter used for labels in the chart and tables. When editing and saving an annotation that `key` could end up being saved to the annotations index. This isn't necesseary since the `key` attribute is just a dynamic label used within the UI. This fixes it by deleting an eventual `key` attribute from the annotations object before saving it to the index.
2019-02-06 12:17:25 +01:00
Felix Stürmer
ea8042042f
[6.x] [Infra UI] Patch the log sample dataset to be compatible with default log sources (#30060) (#30184)
Backports the following commits to 6.x:
 - [Infra UI] Patch the log sample dataset to be compatible with default log sources  (#30060)
2019-02-06 11:57:11 +01:00
Nathan Reese
2080a2bced
[Maps] Clear missing style props on source change and join change (#30112) (#30176)
* [Maps] clear missing style properyties

* add tests

* review feedback
2019-02-05 21:10:12 -07:00
Tim Sullivan
c32e4434c9
[6.x] [Task Manager] Ensure putTemplate will only create/update the index template (#28540) (#30163)
* [Task Manager] Ensure putTemplate will only create/update the index template (#28540)

* get template version

* ensure putTemplate only creates/updates the template

* fix tests

* new test for throwing error re old template

* note comment

* clean up test

* test clarification

* store kibana metadata in scheduled task doc

* map `dynamic: false`

* logging

* add kibana uuid

* fix tests

* last todo

* fetching available task uses apiVersion in the query

* scheduledAt

* ts fix

* ts fix

* fix snapshot

* await to fail test if snapshot does not match

* fix bad merge

* remove _.get

* fix typeError happening in tests

* undo merged 7.0 changes
2019-02-05 21:08:41 -07:00
Nick Peihl
abd49fa46f
Fix topojson featurecollection path (#30173) (#30175) 2019-02-05 19:56:31 -08:00
Jen Huang
85572227f2
[6.x] [CCR] Follower index CRUD (#27936) (#30148)
* [CCR] Follower index CRUD (#27936)

* [CCR] Refactor redux for Auto-follow pattern detail panel (#27491)

* [CCR] Refactor redux for Auto-follow pattern detail panel

* [CCR] Small refactor

* [CCR] Change to present tense

* [CCR] Display auto-follow pattern name even if it does not exist

* [CCR] Use href to edit auto-follow pattern + remove middelware to update "pattern" query params

* [CCR] Fix navigation back bug + set 2 ids for detail and edit an auto-follow pattern

* [CCR] Replace api middleware with redux-thunk action

* [CCR] Show detail footer close button even when cluster is not valid

* [CCR] Add endpoints for fetching and creating follower indices (#27646)

* Add GET /follower_indices endpoint with deserialization logic and tests.

* Add POST /follower_indices endpoint with serialization logic and tests.

* [CCR]  Add unit tests for RemoteClusterForm, RemoteClusterList, and RemoteClusterTable (#27647)

* Use componentDidUpdate instead of getDerivedStateFromProps.

* Add unit tests for RemoteClusterForm, RemoteClusterList, and RemoteClusterTable.

* Add jest mock for eui `makeId()` utility and get deterministic aria IDs for snapshots

* Update snapshot for Remote Cluster list test

* [CCR] Follower indices table and detail panel (#27804)

* Store for follower indices

* Initial work for follower indices table and detail panel

* Fix load auto-follow stats load as middleware was removed

* [CCR] Create follower index UI form (#27864)

* Initial setup Follower Index form

* Working form without client validation

* Add client side validation for follower index

* Add client validation to check if index already exist

* Improve error message when leader index does not exist

* Remove update method for follower index

* Clear api error on field change

* Fix i18n error

* Update snapshots

* [CCR] Add pause, resume, and unfollow actions for follower indices (#28305)

* Add pause and resume follower index routes

* Add unfollow route

* Add api methods for new routes

* Adjust routes to have bulk capabilities, add corresponding actions

* Refresh list after pausing/resuming, remove items after unfollowing

* First pass at UI for pause and unfollow (and resume, but that is not visible due to ES stats response)

* Handle additional conditions needed for unfollowing leader index, add placeholder code to deduce paused status

* PR feedback

* [CCR] Advanced settings UI for follower indices (#28267)

* Add client side validation of advanced settings form
* Move form entry row to separate component
* Add server side serialization for advanced settings
* Ignore advanced settings input when that section is hidden.
  - Cache and restore input when the section is shown again.

* [CCR] Show remote cluster validation in CCR forms, and add edit follower index (#28778)

* [CCR] Advanced settings component

* Remove preview active on toggle settings

* Add client side validation of advanced settings form

* Move form entry row to separate component

* Add title to panel

* Add i18n translation of advanced settings

* Update Follower index form with toggle for advanced settings

* Add server side serialisation for advanced settings

* Make code review changes

* Fix test: mock constant dependency

* Add section to edit follower index

* Show confirm modal before updating follower index

* Add edit icon in table + update server endpoint to pause / resume

* [CCR] Show remote cluster validation in follower index form & auto-follow pattern form

* PR feedback, cleanup form sizes, add redirect to edit remote cluster

* Fix routing, remove unused code, adjust auto follow pattern edit loading error page

* Adjust error messages and make remote cluster not found edit page the same

* Fix functionality as result of merge

* Fix validation, reorder actions, fix tests, and address feedback

* PR feedback and fix validation pt 2

* Adjust remote cluster validation

* Fix i18n

* Fix api error not showing on add follower form

* [CCR]  Integrate new follower index info ES API (#29153)

* Integrate new follower index info ES API

* Collate data from follower stats and info apis when retrieving all followers and single follower
* Add follower settings info to detail panel
* Add paused/active UI state
* Surface follower default settings to UI

* Adjust tests

* Address PR feedback

* Update snapshots

* [CCR] Surface license errors in-app and refine permissions error UI. (#29228)

* Fix camelcasing bug in XPackInfo.
* Silently swallow API error when checking for index name availability.
* Fix typo in followerIndexForm fatal error.
* Add permissions check before allowing user to access the app.

* Refine wording of CCR permission denied page, to specify cluster privileges. (#29533)

* [CCR] Improve form error handling and general UX (#29419)

* Remove unnecessary eslint disable-line

* [CCR] Implement Advanced Settings design feedback (#29543)

* Use EuiSwitch to toggle advanced settings in Create Follower Index form.
* Move 'optional' from each Advanced Setting field to the section heading.
* Change Advanced Settings switch label and description to emphasize that you can customize them or use the defaults.
* Prepopulate Advanced Settings fields with default values.
* When editing a follower index, check if advanced settings have been edited and open them if so.
* Add 'Reset to default' button below advanced settings fields if their values are different than the default.
* Remove 'Default' copy from Advanced Settings descriptions.
* Simplify toggleAdvancedSettings function, add comments, and fix React console error.

* [CCR] Follower index list fixes from design feedback (#29484)

* Delete remote cluster settings before updating

* Fix detail panel z-index

* Remove default descriptor from follower index detail panel setting values

* Follower index confirm action copy adjustments

* Change z-index styling to use EUI vars

* [CCR] Improve remote clusters test coverage (#29487)

* Add Jest test for RemoteClusterForm validation state.
* Extract validation functions out of RemoteClusterForm and add unit tests.
  - Return null instead of undefined from validators.
* Add unit tests for different types of remote clusters in RemoteClusterTable.
* Add unit test for RemoteClusterList empty prompt.
* Add tests verifying behavior for row link, row delete button, and detail panel delete button.
  - Use getRouterLinkProps to assign onClick and href to edit buttons in row and detail panel.

* [CCR] Adjust spacing around descriptions in list views, link to transport port docs, etc (#29789)

* Adjust spacing around description around descriptions in list views so that it's even on top and bottom.
* Add link to transport port docs from Remote Cluster form.
* Move 'View in Index Management' link from the detail panel body into the footer.

* Re-order follower index form sections: remote cluster, leader index, follower index. (#29885)

* Fix deep-linking to follower index after creating/updating it. (#29865)

* [CCR] Copy edits (#29676)

* Use 'Resume/pause data replication' in context menu and row actions.
* Update copy of 'Update' confirm modal for a paused follower index.
* Update copy of 'Update' confirm modal for an active follower index.
* Update copy of 'Pause data replication' confirm modal.
* Update copy of 'Resume data replication' confirm modal.
* Update copy for permissions check.
* Update copy of table empty state.
* Update copy around tables.
* Update form copy.
* Update copy for RemoteClustersFormField callouts.
* Convert 'data replication' -> 'replication'.
* Update copy for Unfollow confirm modal.
* Update copy for form API error and Auto-follow Patterns table.
* Update form save button labels to be 'Create' and 'Update'.
* Move API errors to bottom of form, into same position as sync validation errors. Remove spacer from SectionError implementation.

* [CCR] Open index after unfollowing leader (#29887)

* Open index after unfollowing leader, fix some variable names

* Fix typo

* Add comment

* [CCR] IE and Screen reader accesibility (#29731)

* Fix api endpoit for auto-follow stats

* Prevent letter wrapping in IE for the Remote cluster "connection" table column

* Move inline style to CSS class to fix IE flex bug

* [CCR] Add callout to paused follower index detail panel (#30013)

* Add callout to paused follower index detail panel

* Update copy

* Skip call to ccr stats api if follower index is paused (#30027)

* [CCR] Add integration tests for follower indices (#30064)

* [CCR] Add integration tests for follower indices

* Import advanced settings value from app constants

* Disable flaky follower indices API integration tests.
2019-02-05 18:47:51 -08:00
CJ Cenizal
cde31bfe42
Order Elasticsearch Management apps in order of most used to least used. (#30145) (#30165) 2019-02-05 18:47:12 -08:00