Commit graph

521 commits

Author SHA1 Message Date
Chris Roberson
f2bb7dbf9d
[Monitoring] APM Monitoring UI (#22975)
* Merge in boilerplate branch

* Manually copy over the specific metrics and UIs

* Add api integration tests

* Fix tests

* Remove unused metrics

* Update snapshot

* Fix tests

* Remove types agg

* Use ApmClusterMetric

* provide description for apm-server monitoring metrics (#23331)

* Vis LESS to SASS (cont.) (#23199)

* Tweak migrations integraiton tests to have a stable sort (#23265)

* Fix: plugin api route with security enabled (#23334)

Closes https://github.com/elastic/kibana/issues/23266

This is more of a quick fix than the final solution. The issue was that Canvas tries to check the plugins API without checking to see if the user it logged in. As a result, instead of the plugins response, it gets the HTML from the login page and that causes an error to be thrown when attempting to parse the results.

For now, this PR just disables the auth requirement on the Canvas plugin API endpoint.

* [migrations/tests] sort results before assertion (#23347)

There have been several failures in this test, seemingly caused by a lack of sorting in the results. It makes sense that since both migrations are run simultaneously that sometimes one would succeed and sometimes another would, so I've just sorted the results before checking.

![image](https://user-images.githubusercontent.com/1329312/45791153-44e9cc80-bc3d-11e8-88c4-760d4c7b35bd.png)

cc: @chrisdavies

* [ML] Moves custom URL editor Add button and form to top of flyout (#23326)

* [ML] Moves custom URL editor Add button and form to top of flyout

* [ML] Edits to custom URL editor class name

* Graph LESS to SASS (#23348)

* Developer documentation for integrating with the telemetry service (#23295)

* Developer documentation for integrating with the telemetry service

* open with a bang

* more faqs

* thing about tracking ui interactions

* talk to the plat team

* create and register

* Fix a bug where ES sends a string and migrations expect a boolean (#23313)

* chore: use cheerio in i18n.html.getDirectiveMessages (#23342)

this was only using jsdom to parse html, but cheerio allows parsing html without requiring a dom. cheerio was also already in the dependency list.

* [core/utils] add shareWeakReplay() operator (#23333)

* Chore: fix canvas test runner (#23336)

Blocked by https://github.com/elastic/kibana/pull/23342

This fixes the local test runner in Canvas. It should not affect anything else, including the CI test runner.

- Bumps JSDOM to ^12.0.0
  - I matched Kibana's version on migration, but nothing else in X-Pack uses JSDOM, so we can use the newer version (which has a very different API)
  - I had to match it because of a script that enforces version matching, but #23342 removed jsdom from Kibana, so we no longer have a version to match
- Restores the local `.babelrc` file
  - I thought it was only used for building plugins; I was wrong 😢

* Convert Discover open top nav to EUI flyout (#22971)

* move find logic to SavedObjectFinder component since savedObjectClient is no longer coupled to angular

* implement flyout open saved searches

* remove old open stuff

* add jest test for OpenSearchPanel and simplify panel title

* fix functional tests

* fix _lab_mode functional test

* Migrate save top nav in Discover and Visualize to EUI (#23190)

* extract reusable save component from DashboardSaveModal

* update discover search to use SavedObjectSaveModal

* create generic show_save_model that works for both discover and dashboard

* fix last bits of discover save

* remove old save functionallity

* migrate visualize save to EUI

* fix functional tests

* disable save button if title is empty

* mark title input as invalid when title is not provided

* fix funtional tests

* Moves styleSheetPath to uiExports (#23007)

This was previously defined in uiExports.app, which limited plugins which are not an app of providing a stylesheet. This allows any plugin to define a stylesheet which will be available on page load.

* Timelion less to sass (#23339)

* Consistent casing

* Fix snapshot

* Update tests
2018-09-24 12:59:18 -04:00
Rashmi Kulkarni
594d447c0a
user email validation (#23346)
* Added automation for a support-dev-help ticket - user email validation  https://github.com/elastic/support-dev-help/issues/4571
2018-09-24 08:11:43 -07:00
Walter Rafelsberger
c5d475f85f
[ML] Fix Limit Dropdown, simplify state management of Anomaly Explorer. (#23388)
- This fixes the limit dropdown behavior. The fix for that is actually just the $scope.appState.fetch(); statements in explorer_controller.js, they avoid to run the information stored in appState across modules out of sync.
- Additionally, the aim of this PR is to simplify the state management of Anomaly Explorer in the context of selecting cells in the swimlanes and updating the influencers list, charts and table accordingly.
2018-09-24 16:43:47 +02:00
Walter Rafelsberger
55d5500abe
[ML] Fixes Anomaly Explorer resize listener. (#23427)
Fixes the cleanup of the resize listener once you change to another page within the ML plugin.
2018-09-24 13:58:35 +02:00
James Gowdy
ec49c36cbb
[ML] Fixing various issues when cloning a job using a wizard (#23368) 2018-09-21 19:44:26 +01:00
Tyler Smalley
0e5fd324b1
Moves styleSheetPath to uiExports (#23007)
This was previously defined in uiExports.app, which limited plugins which are not an app of providing a stylesheet. This allows any plugin to define a stylesheet which will be available on page load.
2018-09-20 19:01:06 -07:00
Joe Fleming
7d00de527c
Chore: fix canvas test runner (#23336)
Blocked by https://github.com/elastic/kibana/pull/23342

This fixes the local test runner in Canvas. It should not affect anything else, including the CI test runner.

- Bumps JSDOM to ^12.0.0
  - I matched Kibana's version on migration, but nothing else in X-Pack uses JSDOM, so we can use the newer version (which has a very different API)
  - I had to match it because of a script that enforces version matching, but #23342 removed jsdom from Kibana, so we no longer have a version to match
- Restores the local `.babelrc` file
  - I thought it was only used for building plugins; I was wrong 😢
2018-09-20 11:23:15 -07:00
Caroline Horn
b73201752d
Graph LESS to SASS (#23348) 2018-09-20 09:35:22 -04:00
Pete Harverson
567ee416be
[ML] Moves custom URL editor Add button and form to top of flyout (#23326)
* [ML] Moves custom URL editor Add button and form to top of flyout

* [ML] Edits to custom URL editor class name
2018-09-20 11:46:24 +01:00
Joe Fleming
c54d0e5662
Fix: plugin api route with security enabled (#23334)
Closes https://github.com/elastic/kibana/issues/23266

This is more of a quick fix than the final solution. The issue was that Canvas tries to check the plugins API without checking to see if the user it logged in. As a result, instead of the plugins response, it gets the HTML from the login page and that causes an error to be thrown when attempting to parse the results.

For now, this PR just disables the auth requirement on the Canvas plugin API endpoint.
2018-09-19 13:47:53 -07:00
Larry Gregory
33acd60f9f
Remove ability to implicitly find across all types (#23198) 2018-09-19 07:22:43 -04:00
Walter Rafelsberger
c940c6d111
[ML] Fixes a race condition where the chart tooltip could be hidden even if it should be shown. (#23270)
- Even with the check if fadeTimeout was set in show(), I could reproduce race conditions where a new tooltip would disappear again, because a previous fadeTimeout would trigger and set the new tooltips display to none.
- This PR fixes it by adding a non-asynchronous visible flag to mlChartTooltipService to check if the tooltip should stay visible if fadeTimeout triggers.
2018-09-19 10:53:27 +02:00
Joe Fleming
7dc4e3c162 chore: update the canvas readme (#23296) 2018-09-18 14:00:00 -07:00
joe fleming
35949860b4 chore: show canvas build errors in watch mode 2018-09-18 13:33:48 -07:00
Ryan Keairns
9f6cb4d785 fixes modal width and element capitalization (#23250) 2018-09-18 10:46:20 -07:00
Larry Gregory
0a196450a6
allow user list to also be sorted by name and email address (#23242) 2018-09-18 11:10:21 -04:00
Pete Harverson
19fb3a52ca
[ML] Fix bug in Explorer chart range if selection has too many points (#23267)
* [ML] Fix bug in Explorer chart range if selection has too many points

* [ML] Remove unnecessary newline added in calculateChartRange
2018-09-18 16:08:16 +01:00
Bill McConaghy
e0c0e8d693
adding opt in for telemetry to start trial and upload license (#22925)
* adding opt in for telemetry to start trial and upload license

* fixing scrolling issue with start basic modal in small browser window and improving a11y for read more

* Design cleanup

Mostly spacing and alignment fixes.

* updating jest snapshots

* IE Fixes

* PR feedback
2018-09-18 10:58:37 -04:00
joe fleming
2b78b48ab4 chore: change canvas plugin build output
same prefixed label as the completion message
2018-09-17 16:30:09 -07:00
Catherine Liu
388c8417bb
Fixed typo in metric function def (#23234) 2018-09-17 12:16:28 -07:00
Chris Davies
c64624ada3
Add saved object index migrations (#20243)
Migrations are the mechanism by which saved object indices are kept up to date with the Kibana codebase. Plugin authors can write their plugins to work with a certain set of mappings. Migrations ensure that the index actually conforms to those expectations.
2018-09-17 14:24:32 -04:00
Jonathan Budzenski
1f98acb53c
bump elasticsearch (#21786) 2018-09-17 11:48:30 -05:00
Pete Harverson
20b9cba02a
[ML] Removes job ID from detector description for duplicates (#23192) 2018-09-17 09:37:39 +01:00
Caroline Horn
9c83f81f08
Visualize LESS to SASS (#22679) 2018-09-14 13:25:03 -04:00
Jiří Programagor
e2b304a344 [Monitoring] Properly Deduplicate Replica shards (#23183)
Issue #23179 was caused by ignoring multiple replicas of the same shard, even if they are on different nodes. This commit fixes that.
2018-09-14 12:40:11 -04:00
Pete Harverson
16d0c49590
[ML] Fixes z-index of Explorer severity combo box for job picker (#23189) 2018-09-14 17:37:50 +01:00
Walter Rafelsberger
466399181c
[ML] Deprecates the use of jQuery for rendering Anomaly Explorer Swimlanes (#23000)
- This refactor gets rid of jQuery as a requirement for the Anomaly Explorer Swimlanes. All the DOM manipulation previously done by jQuery is now done by d3.
- The primary aim here is to replace jQuery with d3. To avoid refactoring regressions, this PR sticks as much as possible to the original structure. Overall, this could be done in a more "d3"-way, but it's a good start.
- The resulting DOM is a bit different: The structure is exactly the same, just how we use certain data-attributes changed.
- Instead of using jQuery's data-feature for storing click event data, that data is now directly stored on DOM nodes. Again, this could be done in a more "d3"-way but would require quite some further refactoring.
2018-09-14 18:20:52 +02:00
Joe Fleming
90d2c1aac0
Merge branch 'master' into chore/canvas-in-xpack 2018-09-13 16:22:17 -07:00
dave.snider@gmail.com
f1eb1f2e93
EUI 4.0.1 (#23009) 2018-09-13 16:14:17 -07:00
joe fleming
95d354d753 chore: updated yarn lockfiles 2018-09-13 15:10:39 -07:00
joe fleming
c4039c4f5e chore: eslint fixes
license headers and some small formatting stuff
2018-09-13 15:05:33 -07:00
joe fleming
493bb453eb chore: additional file cleanup 2018-09-13 15:03:57 -07:00
joe fleming
60ea466b1a chore: canvas tasks - local tests 2018-09-13 15:03:39 -07:00
joe fleming
c200854f4a chore: canvas tasks - dev, peg, and plugins
get dev, peg, and plugin building tasks working
2018-09-13 15:02:59 -07:00
joe fleming
6273470aa2 chore: split up the xpack prepare scripts 2018-09-13 15:02:18 -07:00
joe fleming
baf4842802 chore: fix RBAC tests with canvas 2018-09-13 15:01:57 -07:00
joe fleming
5a69250f2a chore: fix ml tests with canvas code in x-pack
explicitely enable state management so the mlStateFactory tests pass
2018-09-13 15:01:32 -07:00
joe fleming
e9656b38c1 chore: make browser tests work 2018-09-13 15:00:46 -07:00
joe fleming
2506e2a1ba chore: make canvas work in xpack 2018-09-13 15:00:41 -07:00
joe fleming
0c7aa610c3 chore: reduce package.json to essentials 2018-09-13 15:00:29 -07:00
joe fleming
8f4ef3de85 chore: fix include paths
node_modules is in a different relative path
2018-09-13 14:59:41 -07:00
joe fleming
c05935e5c0 chore: copy canvas dependencies 2018-09-13 14:59:24 -07:00
joe fleming
055081ffdf chore: rename files to match rules 2018-09-13 14:58:40 -07:00
joe fleming
af84ecca84 chore: eslint fixes in canvas
adds license headers and includes project linting overrides
2018-09-13 14:58:36 -07:00
joe fleming
b85ab4defd chore: merge canvas into x-pack 2018-09-13 14:58:32 -07:00
Spencer
b55705e9b4
[ts] enable support for iterators in browsers (#22986)
I was surprised when I tried to spread a `Set` in TypeScript and the browser complained about `Set.slice()` not being defined. This is because TypeScript does not automatically enable support for iterators when targeting earlier ES versions, like we do in the browser, unless you use the `"downlevelIteration": true` compiler option. This injects some helpers into the necessary files for reading/spreading iterators, which can be stuffed behind an import statement with using the `"importHelpers": true` compiler option and include `tslib` in our dependencies. This is already a dependency of several of our packages, so it shouldn't cause any additional modules.
2018-09-13 14:18:13 -07:00
Pete Harverson
c272a1b7dd
[ML] Add links to rule editor for quick edit of value or filter (#22990)
* [ML] Add links to rule editor for quick edit of value or filter

* [ML] Updates to rule editor quick links following review
2018-09-13 15:54:11 +01:00
Walter Rafelsberger
ff2c377271
[ML] Fix reloading anomaly charts on resize. (#22967)
- Fixes a regression introduced in #22814. Because of the stricter checking for scope/props updates, resizing the browser window would miss updating the Anomaly Explorer Charts widths. This fixes it by adding a check to trigger anomalyDataChange in redrawOnResize().
- Additionally, if only one chart is up for display, this update makes sure a single chart always spans across the full available width.
2018-09-13 15:53:35 +02:00
Nathan Reese
5f6a9a628e
bump EUI to 3.11.0 (#22745)
* bump EUI to 3.9.0

* add @types/react-virtualized

* remove react-virtualized from x-pack package.json

* bump to 3.11.0
2018-09-13 06:20:01 -06:00
Walter Rafelsberger
e1e1485f11
[ML] Fixes loading the influencers for Anomaly Explorer. (#22963)
- This fixes a regression introduced in #22814. The influencer list wouldn't update if no cell in the swimlanes was selected.
- Renames getTopInfluencers to loadTopInfluencers to be in line with the other functions loadDataForCharts and loadAnomaliesTableData
- Changes the order of arguments for loadDataForCharts so they are the same like in loadTopInfluencers.
2018-09-13 10:29:11 +02:00