Commit graph

919 commits

Author SHA1 Message Date
Walter Rafelsberger
e26a59ef7c
[ML] Restore missing job timepicker modal. (#25288)
* [ML] Restore missing job timepicker modal.
* [ML] Added a karma/mocha test to verify dependencies are loaded correctly for new_job_controller.
* [ML] Use consistent import style.
2018-11-07 16:42:25 +01:00
Chris Roberson
1acf855f2d
Use the newly added remote_cluster field for ccr (#25248) 2018-11-07 09:04:28 -05:00
Felix Stürmer
b5012d917d
[Infra UI] Remove duplicate "Overview" in detail page title (#25283)
This removes the duplicate word "Overview" from the title of the container details page.

fixes #24160
2018-11-07 14:52:05 +01:00
Jason Rhodes
0388068c8c
Fixes bug with rison decode on Kibana links (#25214)
* Fixes bug with rison decode vs encode

* Adds and updates tests for kibana link component
2018-11-07 06:38:53 -05:00
Felix Stürmer
2cabf4f5e6
[Infra UI] Work around IE11 flexbox alignment problems (#25224)
This works around some IE11 bugs with flexbox alignment, particularly [Flexbug #4](https://github.com/philipwalton/flexbugs#4-flex-shorthand-declarations-with-unitless-flex-basis-values-are-ignored) and a misinterpretation of the default alignment.

fixes #24758
fixes #24839
fixes #24791
fixes #24757
2018-11-07 11:37:23 +01:00
Søren Louv-Jansen
4d28055821
[APM] Additional clock skew fixes (#25097)
* Refactor service colors

* Calculate duration from full waterfall

* Ensure timeline label is not truncated

* Adjust child if it starts after parent has ended

* Add mark for traceRootDuration instead of xMax

* Fix tests
2018-11-07 10:28:16 +01:00
Pete Harverson
4fc00821a4
[ML] Add user privilege check to Jobs List group selector control (#25225) 2018-11-07 09:18:31 +00:00
Tiago Costa
ae23f16802
Make canvas common lib ready for dependencies static analysis (#24756)
* refact(NA): make canvas common lib ready for static analysis.

* refact(NA): change export named to export all on canvas commmon lib datatable.

* tes(NA): fix isValid http url function name.

* refact(NA): rename parse to parseDataUrl
2018-11-07 03:08:03 +00:00
Matt Apperson
6ed41b35db
[BeatsCM] error on issues dont disable (#25149)
* display error messages for failed checks vs disableing plugin

* update text

* change order of check

* tweak security check

* re-disable on invalid license, update text

* update text

* tweaks

* tweak text
2018-11-06 21:33:07 -05:00
Clint Andrew Hall
06864817b9
Adding beta marker (#25256) 2018-11-06 18:11:42 -06:00
Matt Apperson
dbfc86b39d
dont allow tag creation if id is invalid (#25133) 2018-11-06 18:49:39 -05:00
Matt Apperson
86e11c0e12
[BeatsCM] Rework table controls to use the pattern now found in the rest of Kibana (#25131)
* Rework table controls to use the pattern now found in the rest of Kibana

* Fix TS errors

* better fix TS issue

* uncomment code removed for testing
2018-11-06 18:49:15 -05:00
Søren Louv-Jansen
deae168672
[APM] Show message for missing transaction sample (#25141) 2018-11-07 00:40:25 +01:00
Walter Rafelsberger
3b94e3cece
[ML] Removes deprecated angularjs based jobs list and related code. (#25216) 2018-11-06 20:05:45 +01:00
Melissa Alvarez
493fe14821
[ML] JobList search bar: Show useful error on invalid query (#25153)
* Show error on invalid query

* Additional undefined check for query

* Cleanup undefined check
2018-11-06 17:13:32 +00:00
Chris Cowan
4a251b541a [Infra UI] Normalizing CPU usage for waffle map (#25123)
This PR changes the aggregation for calculating the CPU usage for hosts to match the metrics overview calculation by adding both system and user together then dividing it by the number of cores. This PR also includes a fix for the Docker cpu field.
2018-11-06 14:55:28 +01:00
Leanid Shutau
e9ff201be7
[I18n] Migrate enzyme helpers to TypeScript (#25108)
* [I18n] Migrate enzyme helpers to TypeScript

* Migrate src enzyme helpers

* Remove eslint comments
2018-11-06 15:56:37 +03:00
Melissa Alvarez
830e149787
[ML] MultiMetric/Population Job creation: Allow model plot enablement via checkbox (#24914)
* Add route/api-mapping for validateCardinality

* Create directive for enableModelPlot checkbox

* Ensure model plot enabled prior to cardinality check

* Add callout when cardinality high

* ensure correct cardinality success check

* Population wizard: add enableModelPlot checkbox

* Update with suggested changes from review

* Remove warning when invalid. Add tests.

* Ensure checkbox updated on uncheck
2018-11-06 11:52:26 +00:00
Felix Stürmer
45f4b1bcf3
[Infra UI] Add beta badge with tooltip to the header (#25113)
In accordance with #25008, this adds a "Beta" badge with a corresponding tooltip to the header.
2018-11-06 11:01:02 +01:00
Shaunak Kashyap
1e346b9094
Infra UI: Fixing minor typo (#25005)
Resolves #25007.

Outbound traffic is generally denoted with TX, abbreviation for Transmit, instead of RX, abbreviation of Receive.

This PR fixes this minor typo.
2018-11-06 01:27:19 -08:00
Ryan Scovill
5dbfec7d20 fix typos (#25176) 2018-11-05 17:56:43 -07:00
CJ Cenizal
0709293aac
[Rollups] Improve Rollup Job Wizard error handling (#25092)
* Consistently format errors with showApiWarning and showApiError helpers.
* Use fatalError for unexpected errors.
* Localize errors.
* Surface error in Job List when the jobs can't be loaded.
2018-11-05 14:32:48 -08:00
Stacey Gammon
531424ef17
Disable animations for xpack functional tests too (#25148) 2018-11-05 17:17:53 -05:00
Chris Roberson
25666f8d41
Unskip the mappings test (#24667) 2018-11-05 14:57:44 -05:00
Chris Roberson
25896d625d
Re-enable these tests (#24600) 2018-11-05 14:57:02 -05:00
Felix Stürmer
dfef1c52e2
[Infra UI] Rename InfraOps to Infrastructure (#25135) 2018-11-05 20:33:53 +01:00
Ryan Keairns
7470b632eb
Security - convert LESS to SASS (#25079)
* convert security less to sass

* remove unused less styles from xpack_main
2018-11-05 13:28:18 -06:00
Walter Rafelsberger
e5ebc62b16
[ML] Fixes typo. (#25130)
Fixes "Dectector" Typo.
2018-11-05 18:13:56 +01:00
Chris Roberson
ae6ea6ec10
Ensure we probably init the route for the ccr page (#25050) 2018-11-05 10:01:30 -05:00
Nox911
666a1d752c Feature/translate license management (#24341)
Translate license management
2018-11-05 16:22:45 +03:00
Nox911
f10deb1b8a Feature/translate canvas plugin src elements (#23755)
translate canvas canvas_plugin_src elements
2018-11-05 10:13:27 +03:00
Brian Gaddis
733c9ec4f3 Added sort order to share menu options. (#25058)
* Added sort order to share menu options.

Sorts ascending on sort order first then ascending on name. Any menu item without a sort order gets set to zero.

* Moved new sortOrder property from node_modules

* Had to rerun the snapshot for the share menu with the sortOrder in it.
2018-11-03 08:18:59 -04:00
CJ Cenizal
dac01c81a2
[Rollups] Surface index pattern validation errors in Rollup Job wizard. (#25078)
* Show fatal error for unexpected errors.
2018-11-02 17:42:50 -07:00
Jen Huang
077634c483
Prepend ES endpoint with slash (#25073) 2018-11-02 15:16:06 -07:00
Joe Fleming
1cb1c25d41
Fix: socket setup (#24550)
PR fixes issues with the socket connection.

- handle socket failures 
  - previously would either leave Canvas in an infinite loading state, or load the app even when it wouldn't function
- upgrade socket.io
- add headers to socket connection and modify auth connection
2018-11-02 10:26:52 -07:00
Joe Fleming
f6fd86aa4d
Chore: fix canvas linting (#25024)
This fixes `yarn run lint` from within the Canvas plugin path.

- Point to the correct eslint config file
- Use absolute path for `packageDir`
- Remove extraneous `packageDir` settings
2018-11-02 11:24:11 -06:00
Jonathan Budzenski
fa8237d197
[build] Support version-qualifier flag (#21663)
* [build] Support version-qualifier flag

* add help description

* fix test

* is-release

* temp: re-add alpha1 to package.json

* use version qualifier in build

* fix merge

* Revert "temp: re-add alpha1 to package.json"

This reverts commit a70688542c.

* x-pack

* remove ci build flag

* remove ci build flag

* remove qualifier from canvas

* remove qualifier from infra

* fix x-pack argv

* update comment
2018-11-02 09:39:12 -05:00
Stacey Gammon
d92cbea5b4
skip png screenshot comparison tests, they will fail on certain jenkins agents (#25028) 2018-11-02 10:09:15 -04:00
Brandon Kobel
42b758c567
Adding support for single session cookies appearing in an Array (#24984)
* Adding support for single auth cookies appearing in an Array

* Removing redundant newline
2018-11-02 06:23:54 -07:00
nicknak
69b286b2fc
Show aliases in index details (#24048)
* Adds aliases to details for indicies.

* Lists aliases when there is more than one.

Fixes reload call using duplicate code atm.
Removes unintentional formatting change.

* Silly line ending removed by accident.

* Simplifies fetching aliases to single method/file.

* Adds superfluous logs statement.

* Uses the correct i18n translation variable for the header.

* Sets the translation variable to the correctly spelled variable.

* Simplifies building an array of aliases.

* Does not export fetchAliases as default.

* Makes the code more readable by destructing results.

* Adds test for expected results and no results.
2018-11-02 09:14:23 -04:00
Søren Louv-Jansen
e689afa7b3
[APM] Fix missing parent issue (#25029) 2018-11-02 11:08:47 +01:00
CJ Cenizal
6e63be54ef
Return wrapped unknown errors from rollup CRUD API. (#25032) 2018-11-01 18:35:36 -07:00
Catherine Liu
ffe24a8318
Fixes font picker when using custom fonts (#24937)
* Adds custom font as option in font picker

* Adjusted font sizes in ecommerce sample worpad

* Adjusted font sizes in sample flight workpad

* Adjusted font sizes in smaple web logs workpad
2018-11-01 14:16:26 -07:00
Brian Gaddis
8efd352912 Add png output to reports 65 (#24759)
* Changes for new PNG image output for reports

Change PNG button name from Download to Generate

Changes for new PNG image output for reports

Change PNG button name from Download to Generate

Remove compatabilityShim from PNG and move to PDF folders

Changed API parameters to contain only required parameters

Added test cases for PNG reporting and added title back into the PNG API call

Merge of security changes for PNG reporting

Fixed issues with test cases for both PDF and PNG

Updated test snapshots for PNG and PDF test changes

* Adding new security changes made for PDF into new PNG code

* Removed commented out lines that were not needed
2018-11-01 16:28:00 -04:00
CJ Cenizal
2a85ed492d
[Rollups] Disable deletion of started rollup jobs (#24878)
* Disable deletion of started rollup jobs.
* Update empty prompt icon.
* Add isUpdating selector and display a spinner instead of the action button when jobs are being updated.
* Localize Navigation component.
* Add noticeable delay of 300ms show spinner displays and doesn't flicker.
2018-11-01 09:49:14 -07:00
James Gowdy
38e200f11f
[ML] Fix for check for enabled xpack features (#24986) 2018-11-01 16:46:57 +00:00
Larry Gregory
e0b8cdf859
User management - email and name should be optional (#24842)
Fixes #17952
2018-11-01 08:58:01 -04:00
Brandon Kobel
8cbafdf5fe
Adding "Successfully logged out" page (#23890)
* Adding very basic place for the logged out page

* Redirecting to logged_out when we aren't using SLO

* Basing styles on the login styles

* Fixing linting errors

* Responding to PR feedback

* Fixing issue with the basepath and the login link

* Adding proper i18n prefix

* Updating unit tests
2018-11-01 05:33:32 -07:00
Brandon Kobel
70f1a4094e
Using Joi.object when configuring route validation (#24596)
* Using Joi.object when configuring route validation

* Adding forgotten API

* Fixing test
2018-11-01 05:32:12 -07:00
Maryia Lapata
157477a2d7 Fix/react intl testing helper functions (#24527)
update testing helper functions for react-intl

now we use real intl object passed by IntlProvider via context instead of mocking intl object.
so now data(strings, JSX) passed to FormattedMessage component via values are compiled and
are inserted in the output of FormattedMessage component
2018-11-01 13:54:22 +03:00
Søren Louv-Jansen
704cf6182f
[APM] Discover links with quoted values and use default 24h as time range (#24900)
* [APM] Discover links with quoted values

* Use 24h as default time range
2018-11-01 11:25:07 +01:00
Oliver Gupte
f05bb942fa
[APM] Fix divide by 0 bug in percentage duration (#24675)
* [APM] Fixes #40165 by consolidating logic where total duration could be 0 and handling it with a fallback value

* [APM] renamed file from .js to .ts and defined a default value for fallback

* [APM] Add type definitions for apm formatters

* [APM] add basic type definition for imported @elastic/numeral module

* [APM] rename getDurationPercent to asPercent

* [APM] Update tests with the renamed formatter function

* [APM] Pr feedback & typescript cleanup

* [APM] fix bucket & chart point type errors

* Fix typescript issue

* [APM] last minute code cleanup
2018-10-31 23:52:23 -07:00
Jen Huang
8491b2ee8e
[Rollups] Mark beta in rollup index pattern creation (#24805)
* Add beta UI tags to rollup index pattern creation

* Add test, update snapshots

* Address feedback, adjust copy, and localize rollup index pattern creation
2018-10-31 17:53:13 -07:00
Brandon Kobel
6c95237e89
Reverting 22816, upgrading mocha is breaking the custom reporter (#24951) 2018-10-31 17:41:07 -07:00
Ryan Keairns
a55dfd0536
add css grid style to prevent calendar bounce (#24913) 2018-10-31 14:29:37 -05:00
Bhavya RM
dfd4917b3d
Disabling es lint for 3 of the canvas files (#24902)
disabling eslint for Canvas because we are adding in jsx-a11y rules to eslint and adding a missing copyright header
2018-10-31 15:23:38 -04:00
Bhavya RM
21bec215dd
adding alt tag with empty text to fix jsx-a11y errors (#24922) 2018-10-31 15:04:33 -04:00
Jen Huang
9527e0e7c7
[Rollups] Re-enable rollup support (#24888)
* Re-enable rollup support extension points

* [Rollups] Hide rollups consumption behind a feature flag in Advanced Settings. (#24698)
2018-10-31 11:54:37 -07:00
James Gowdy
62f82c96f6
[ML] Fixing issues when trying to import non-timestamp data (#24894)
* [ML] Fixing issues when trying to import non-timestamp data

* making results link time range optional

* small cleanup after fixing merge conflict
2018-10-31 18:06:49 +00:00
James Gowdy
fea42bada6
[ML] Fix for delimited data with whitespace in fields (#24899)
* [ML] Fix for delimted data with whitespace in fields

* rewriting to use papaparse transform function
2018-10-31 17:07:43 +00:00
Walter Rafelsberger
cc89c1ee03
[ML] Fixes bug with category filtering flag for rare/population charts. (#24901)
Fixes a bug where the filtering limit of categories for the rare chart was actually applied to the population chart variant.
2018-10-31 17:16:24 +01:00
Oliver Gupte
a0927f4bea
[APM] fixes #23808 by adding docs links for user/tags transaction apis for the java agent (#24869) 2018-10-31 08:38:12 -07:00
Felix Stürmer
c8b2e673fc
[InfraOps] Preserve time values when navigating from the waffle map to the logs and details pages (#24666)
This adds `time` and `from`/`to` parameters to the metrics and logs links of node context menu in the waffle map.
2018-10-31 15:57:53 +01:00
Walter Rafelsberger
6ac9a2fd23
[ML] Display a ordinal y axis for low cardinality rare charts. (#24852)
Introduces a categorical/ordinal y axis for rare charts with a cardinality of <= 10. This also adds unit tests for the rare/population chart which are the bulk of the PR.
2018-10-31 15:57:27 +01:00
Nox911
f8d0604050 Translations for Dev Tools (#23951)
translate dev-tools-console
2018-10-31 17:54:31 +03:00
Jason Rhodes
e13e47fc4e Fixes APM snapshot for CSS value (#24898) 2018-10-31 13:07:59 +01:00
Walter Rafelsberger
e97b019815
[ML] Set new index pattern as default one if no default index pattern exists yet. (#24337)
This replicates the behaviour of the management UI: If there's no default index pattern, the one created via file visualizer's import will be set as the default index pattern.
2018-10-31 12:04:23 +01:00
Søren Louv-Jansen
8f4b0e9bf8
[APM] Hoist loading of waterfall and flatten it (#24651)
* [APM] Hoist loading of waterfall and flatten it

Remove unused test

Convert to typescript

* Address feedback

* Make `totalDuration` optional

* Renamed rootTransaction to traceRoot

* [APM] Only show relevant service legends

* Adds services label to the service legend

* [APM] Clock skew fix

Only skew child spans from the same service

Take parent skew into account when finding diff

# Conflicts:
#	x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/waterfall_helpers/__snapshots__/waterfall_helpers.test.ts.snap
#	x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/waterfall_helpers/waterfall_helpers.test.ts
#	x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/waterfall_helpers/waterfall_helpers.ts

* Use switch statement
2018-10-31 10:27:57 +01:00
Jason Rhodes
be34592e68
Design clean-up for 6.5, Part Deux (#24862)
* Fixes active tab state

* Removes beta labels from ML and search bar

* Reverts visual regression with right-to-left timeline fix

* Creates space for agent marks beneath tick marks

* Fixes ordering problem with timeline transaction icons

* Updates string 0 to be an integer instead for CSS bottom value
2018-10-30 22:33:33 -04:00
Oliver Gupte
57d0e1d22a
[APM] fixes #24563 by de-duping the column field id 'sample' (#24690)
* [APM] fixes #24563 by replacing de-duping the twice-used column field id

* [APM] fixed issue with service column not sorting in ManagedTable

* [APM] make render field on ITableColumn optional and allowing it to use EUI's default value
2018-10-30 16:31:30 -07:00
CJ Cenizal
05bf7cd4d4
[Rollups] Fix i18n bugs (#23848)
* Internationalize job details tabs and wrap instances in EuiErrorBoundary to visually localize the error.
* Localize no default index pattern message.
* Localize es interval errors.
* Localize job action menu and confirm delete modal.
* Remove unnecessary use of injectI18n from tabs.
* Localize job status.
* Localize steps.
* Remove template literals from FormattedMessages.
2018-10-30 14:13:08 -07:00
Matt Apperson
8702792673
[BeatsCM] Change Index template name (#24835)
* [BeatsCM] Change Index template name

* Update x-pack/plugins/beats_management/server/management_server.ts

* Update x-pack/plugins/beats_management/server/lib/adapters/database/__tests__/test_contract.ts
2018-10-30 15:35:10 -04:00
CJ Cenizal
04568fcca6
Re-initialize Rollup Management userHasLeftApp state to fix bug with clearing URLjob deep-link when detail panel is closed. (#24841) 2018-10-30 11:06:15 -07:00
Chris Roberson
b80ab1cd83
Add onBrush functionality to APM monitoring ui graphs (#24840) 2018-10-30 12:25:34 -04:00
Walter Rafelsberger
a86998a0fc
[ML] Fixes missing y-axis description for rare chart. (#24823)
Fixes the missing y-axis description for rare charts in the form of y-axis event distribution split by {{fieldName}}. The intention is to briefly clarify that the type of chart is different than the other ones which have a count or metric based y-axis. This text is in addition to the text provided (but hidden without hovering) in the info icon tooltip.
2018-10-30 14:19:19 +01:00
Casper Hübertz
863cfb79ce
[APM] Added line-height to table cell (#24768)
Improved reading of the contents, especially in the Transaction Flyout.
2018-10-30 11:25:38 +01:00
James Gowdy
d400a797d3
[ML] Reducing risk of upload timeouts (#24677)
* [ML] Reducing risk of upload timeouts

* function rename

* removing hardcoded number

* fixing typo

* updating comment
2018-10-30 09:16:40 +00:00
James Gowdy
4201555a1d
[ML] Removing new ML job link in basic license (#24676) 2018-10-30 09:16:18 +00:00
Walter Rafelsberger
8b2ce42f3f
[ML] Fix a call stack size exception triggered by a negative tickInterval. (#24742)
In certain cases tickInterval mistakenly could end up being negative which made getTickValues() run into a call stack size exception. This PR fixes it by a) adding a check to getTickValues() that interval must not be 0 or smaller and b) changing the way the tickInterval is determined in the Anomaly Explorer Charts.
2018-10-30 09:31:15 +01:00
Catherine Liu
0c0444cd6e
Fixes unauthorized error in es datasources (#24624)
* Fixes check for security plugin

* Cleaned up security check logic. Fixed tests for create_handlers. Added TODOs

* Updated comment

* Added tests

* Updated variable names
2018-10-29 20:21:55 -07:00
Jason Rhodes
b7b853abfe
[APM] Removes action menus (#24748)
* Removes infra links and replaces context menu with single discover links for now

* Changes discover links to use empty button style
2018-10-29 23:07:07 -04:00
Spencer
ce0cae64bd
[yarn] bump elasticsearch-js and makelogs (#24767)
In order to support esjs apiVersion 6.5 we need to upgrade to the newly released version of elasticsearch-js. Bumping makelogs allowed us to keep only one version of the elasticsearch module installed.
2018-10-29 18:16:10 -07:00
Jen Huang
fd4e63c5a9
[Rollups] Fix time field not being recognized due to ordering of aggs (#24783)
* Fix time field not being recognized due to ordering of aggs

* Clean up UI whitespace

* Update snapshot
2018-10-29 17:20:37 -07:00
Brandon Kobel
9f1cdac12b
Reporting cookies 2 (#24752)
* Revert "Reporting cookies (#24177)"

This reverts commit 9f4ec18000.

* Take 2

* Adding comment

* Better escaping and encoding for use in eval

* Checking for an empty string also

* Fixing session test
2018-10-29 15:54:45 -07:00
CJ Cenizal
0429a54c28
[Rollups] Copy improvements (#24528) 2018-10-29 15:15:11 -07:00
Josh Dover
69d25d8e50
Return promise in reporting jobs API (#24769) 2018-10-29 17:14:27 -05:00
Chris Roberson
460a297bc9
[Monitoring] Use the cluster name from metadata if it exists (#24495)
* Use the cluster name from metadata if it exists

* PR comments
2018-10-29 15:41:03 -04:00
Sébastien Loix
1018947c3f
refactor(Watcher): Reword translation id for missing property on objects (#24753) 2018-10-29 20:14:24 +01:00
Bill McConaghy
f7782a9722
[Console] Add ccr apis to console autocomplete (#24739)
* fixing issue with doc link paths

* dding ccr API endpoints to autocomplet

* fixing issue with documentation links

* fixing generated specs {indices} -> {index}
2018-10-29 14:04:21 -04:00
Sébastien Loix
adf8830549
fix(watch): Add WatchErrors to capture invalid watches (#23887)
Instead of immediately throwing an error if a watch Action is invalid (an email for example), there is now an `option` object that we can pass to the `fromUpstreamJson()` method and receive back any error that might exist in a Watch.
The Watch has a new "watchErrors" property to display configuration error in the UI.

fixes #20305
fixes #20970
2018-10-29 16:13:16 +01:00
Jason Rhodes
32f3d0f0d7
[APM] Fixes rare cases where KibanaLink is loaded outside of React context (#24705)
* Fixes rare cases where KibanaLink will be loaded outside of React context and requires no redux connect dependency

* Fixes tests for updated Kibana link component

* Removes obsolete snapshot
2018-10-29 09:58:20 -04:00
Ryan Keairns
06b0e74341
center content in fullscreen mode, hide K7 top nav (#24589) 2018-10-29 08:21:52 -05:00
tibmt
cff438faf9 Translate security/users component (#23940)
Translate security/users
2018-10-29 15:59:31 +03:00
Walter Rafelsberger
75ce0c4fa2
[ML] Remove obsolete sentence from info tooltip. (#24716) 2018-10-29 13:49:12 +01:00
Pete Harverson
4cc49be704 [ML] Change file data visualizer JSON format label to NDJSON (#24643)
* [ML] Change file datavisualizer JSON format label to NDJSON
* [ML] Update edit flyout overrides snapshot
2018-10-29 10:07:46 +01:00
Matt Apperson
9a158c1454
[BeatsCM] Beats without tags should return an empty array via the config API (#24665) 2018-10-28 20:56:11 -04:00
Catherine Liu
5df9747f5a
Fixed label position on progress elements (#24623) 2018-10-26 13:24:50 -07:00
Jason Rhodes
3a2db6e38f
Polish 6.5 (#24556)
* Updates waterfall item design for timeline rows

* Adjusts span and tx flyouts and updates tooltips to EUI

* Heading size fixes and clean up

* Updates tooltip snapshots

* Review tweaks and snapshot updates

* Revert experiment :)

Co-Authored-By: jasonrhodes <jason.matthew.rhodes@gmail.com>

* Fixes bug with v1 waterfall state

* Fixes bug with timeline bar height

* Updates snapshot tests

* Updated test so it doesn't mount and rely on EUI makeId() which is non-deterministic per test run
2018-10-26 14:56:20 -04:00
Joe Fleming
b8b0229fd6
Feat/expression threading (#24598)
Replaces https://github.com/elastic/kibana/pull/23301
Closes https://github.com/elastic/kibana/issues/23080

---

This is a minimal threading implementation for Canvas. There's still a lot to be done to make this concept great, but this is a start. 

What it does:
- Creates a server side abstraction on top of the interpreter
- Determines where to send the expression by checking the first function to be run
- Loads common functions in a separate worker thread on the server. 
- Routes to a single forked worker (thread), the main thread (server), or the browser (browser), in that order
- Defers back to the router when a function isn't found. Fails if the function isn't found in any of the above 3 environments
- Times out the worker if it takes too long, and respawns it as needed.
- Simplifies the error dialog to remove the stack. 

What is does not.:
- Round robin a pool of workers
- Queue. If one expression in the threaded env fails then anything sent to it in the meantime will fail. The upstream environment handles managing timeouts. I think this would only make sense todo with a pool.
- Client side. This doesn't implement web workers, but we could use roughly the same architecture. 
- Implement a specific, pluggable `worker` environment on the server. Right now it's just common functions, so plugin authors will always end up in a thread if they put their function in the common directory.

What I don't like:
- The socketProvider code. This was reused across the server & browser, but now that it's only used in the browser there's no good reason for the abstraction
- The serialize/deserialize stuff feels messy. Do we really need serialization?
2018-10-26 09:49:46 -07:00
Chris Roberson
a0543b1aec
Skip this test until snapshots are updated (#24650) 2018-10-26 11:32:50 -04:00
Pete Harverson
afbc9d7476
[ML] Hides File Data Vizualizer field name overrides if empty list (#24576) 2018-10-26 12:08:24 +01:00
James Gowdy
47fb27f0a8
[ML] Fixing results for unknown fields (#24577)
* [Ml] Fixing results for known fields

* renaming known-type to unknown

* correcting comments

* tiny refactor
2018-10-26 11:13:26 +02:00
Catherine Liu
3b0cc4e886
Upgrades Tinymath (#24457)
* Bumped tinymath to v1.0.0

* Bumped tinymath version to 1.1.0
2018-10-25 14:18:15 -07:00
Catherine Liu
f3dc3b6198
Fix: select field updates on change (#24288)
* Replace defaultValue with value

Added default value for size in text_style_picker

Made page_config select compressed

Added default values for props in appearance_form

Switched select to superselect in border_form

Refactored datacolumn

refactored simple_math_function

Fixed page_config

* Added an euispacer to border form
2018-10-25 14:12:14 -07:00
Josh Dover
27e5406d7a
Upgrade Hapi in legacy platform to v17 (#21707)
* Disable even-better monitoring

* Upgrade to Hapi v15

* Upgrade to Hapi v16

* Handle optional req params correctly

* Update http and kbnServer

* Get mocha tests passing

* Convert `reply` usages [wip]

* Fix Joi and Plugin incompatibilities

* Get server up and running

* Get basic logging working

* Fix optimizer

* Fix recent route handlers

* Various fixes

* Fix recent routes

* Upgrade wreck for async/await

* Fix mocha tests

* Fix joi issues

* Fix xpack jest tests

* Fix recent routes

* Fix tests

* Fix index setup

* Decouple monitoring stats collection from good plugin

* Update reload logging test to work

* Reimplement logging with updated good plugin

* Fix unit tests

* Fix getConnections back

* Make LegacyLoggingServer compatible with Hapi v17

* Update joi types

* Fix x-pack unit tests

* Remove stray debugger

* Remove hapi-compat

* Fix API integrations

* Upgrade boom

* Fix security plugin

* Misc fixes

* bump

* Fix licensePreRoutingFactory

* Fix failing integration tests

* Remove unnecessary test change

* Remove hapi-latest package

* fx

* Various cleanup

* Fix race condition in oppsy events

* Use elastic/good fork

* Fix boom.wrap and hapi-latest changes

* Simplify LegacyLoggingServer updates

* package.json cleanup + test fix

* yarn.lock cleanup

* Change good tag

* Fixes

* Change return err -> throw err in routes

* Fix await returns

* Fix new load_data test

* Make cookie security flags consistent

* tmp doc

* Fix types

* Fix tests

* Upgrade canvas plugin

* Move good package to published @elastic/good one

* Fix SO test

* Fix logging reloading

* Update APM apis

* Fix error logging

* Fix logging test

* Convert spaces plugin

* Add validation error shim

* Remove 7.0 release notes

* Await renderApp

* Fix ccr routes

* Prevent header popovers from scrolling with page content (#23850)

* Fix spaces test

* new yarn.lock-s

* Fix spaces tests

* Remove h2o2-latest

* Fix @types/hapi

* Upgrade InfraOps plugin

* Fix package.json

* Add back isSameSite: false

* Upgrade beats_management plugin

* Update snapshot

* Fix InfraOps

* Upgrade kql_telemetry

* Merge upstream/master

* Upgrade apm and ml

* Put snapshot test back

* Fx beats

* Upgrade rollups

* Update boom usages in new plugins
2018-10-25 16:01:12 -05:00
Alex Seriachenko
ab776d4577 Fixes #23641 (#24197) 2018-10-25 12:44:38 -04:00
Chris Roberson
af3e62131d
[Monitoring] Rename ccr fields based on changes in ES (#24519)
* Rename ccr fields based on changes in ES

* More renames

* Update archive data

* Update snapshot

* Skip the api integration tests for now
2018-10-25 12:30:58 -04:00
Felix Stürmer
d3e61e6380
[InfraOps] Remove broken links to APM (#24568)
This removes the links from the waffle map to APM, which did not pass the correct filter in most cases.

fixes #24565 for now
2018-10-25 15:28:14 +02:00
Catherine Liu
567576a724 Fixes loading element icon color (#24551)
* Fixed loading element icon color

* Fixed package.json

* Fixed loading component test

* Revert "Fixed package.json"

This reverts commit 033fc8477d.
2018-10-25 12:00:40 +02:00
CJ Cenizal
f74f633920
[Rollups] Rollup support in Kibana, phase 1 (#21117)
Enabled:
- View/Manage/Create rollup jobs

Disabled:
- Create a rollup index pattern
- Create rollup visualizations
- Add rollup visualizations to dashboards
- View raw rollup documents in Discover
2018-10-24 17:41:45 -07:00
Catherine Liu
fb5b2291ba
Enable canvas functional tests (#24450) 2018-10-24 15:59:49 -07:00
Catherine Liu
3ce182c33c
Fixes shape element with NaN viewBox (#24470)
* Fixes shape viewbox calculations

* Fixed border

* Cleaned up viewbox calculations
2018-10-24 15:59:08 -07:00
Pete Harverson
d9ffa07547
[ML] Edits to the text on the Data Visualizer landing pages (#24518) 2018-10-24 23:45:34 +01:00
Josh Dover
3af1b2109f
Disable unused beats_management tests (#24543) 2018-10-24 16:57:14 -05:00
Catherine Liu
35c325230b
Switches to dashed border style (#24538) 2018-10-24 13:49:02 -07:00
Catherine Liu
21d8ec4b45
Clears timeout for done handler (#24471) 2018-10-24 13:14:35 -07:00
James Gowdy
3fed832c8e
[ML] Fix semi structured text last line issue (#24520) 2018-10-24 21:14:20 +01:00
Ryan Keairns
03d7294c47
[WIP] Adds 'upload data from file' to Kibana home page (#24226)
* adds upload file and functionbeat to home

* removes functionbeat, adds ml file upload href

* remove functionbeat callout, add ml file url

* fix tests for basepath

* less caveman sounding

* update code editor snapshot

* make link conditional, copy changes

* update ml link

* move mlEnabled to ml plugin

* copy edits
2018-10-24 14:10:57 -05:00
Felix Stürmer
4077a1b8a4
[InfraOps] Add button to check again for log message if previously exhausted (#24500)
This PR adds a "load again" button to the exhaustion message in the log view.

fixes #23869
2018-10-24 19:22:11 +02:00
Caroline Horn
d114a85d24
Remove wrapper around manage spaces button in menu (#24506)
Fixes #23544
2018-10-24 13:20:58 -04:00
Oliver Gupte
0a602489d3
[APM] Add contextual docs links for PropertiesTable with no data #22755 (#24181)
* [APM] Add contextual docs links for PropertiesTable with no data #22755

* [APM] tweak style of table info header according to PR feedback #22755

* [APM] fix StickeyProperties style regression in ErrorGroupDetails

* [APM] update the layout of the StickeyProperties in ErrorDetails
2018-10-24 10:15:50 -07:00
Chris Roberson
d834f620c1
[Monitoring] Add handles graph for beats (#24265)
* Add handles graph

* Add limits in the UI

* Remove debug

* Update api tests

* Fix tests

* Fix snapshots

* Skip this test for now

* Fix this test and re-enable it
2018-10-24 13:06:38 -04:00
CJ Cenizal
1db075512d
Add repositionOnScroll to popovers within the Inspector and the Index Management detail panel. (#23856) 2018-10-24 09:12:11 -07:00
Walter Rafelsberger
2c7caee273
[ML] Improve sampling and normalization of population chart. (#24402)
This optimizes how contextual data is fetched for the population analysis chart.
2018-10-24 17:37:28 +02:00
Matt Apperson
f53541d0d5
[BeatsCM] Fix bad merge that created dupe UI (#24491) 2018-10-24 11:15:19 -04:00
Jason Rhodes
f6b0d7a714
Adds beta messages to traces overview and timeline (#24447)
* Adds beta messages to traces overview and timeline

* Left over formatting fix

* Fixes bug with inaccurate types for transaction.context.system

* Updates TraceLink to be called TransactionLink more accurately

* Updated learn more about DT link

* Snapshot update for number format change

* Updates to asDecimal to preserve decimal place significance in service list
2018-10-24 11:09:41 -04:00
Tim Sullivan
6084acc8b6
[Reporting] queue.pollEnabled setting adds ability to disable polling for idle jobs (#24295)
* [Reporting] New queue.pollEnabled setting adds ability to disable polling for idle jobs

* add an info log line

* note in docs
2018-10-24 08:03:54 -07:00
Tim Sullivan
5079e3d052
[Reporting/Fix] Improve text of pending status in job listing (#24300)
* [Reporting/Fix] Improve text of pending status in job listing

* status message change from feedback
2018-10-24 08:03:07 -07:00
Pete Harverson
e900879cc3
[ML] Fixes labels in datafeed time range selector modal (#24489) 2018-10-24 15:50:56 +01:00
Caroline Horn
7a90b326b6
Spaces selector screen graphics and other cleanups (#24442) 2018-10-24 10:48:54 -04:00
Pete Harverson
05b5ea7368
[ML] Adds experimental badge labels to the File Data Visualizer (#24485) 2018-10-24 14:10:55 +01:00
Stacey Gammon
08aa4140cb
bump the hacky timeout (#24392) 2018-10-24 08:44:50 -04:00
Matt Apperson
c690e4a0d6
[BeatsCM]This PR adds a role checks (#24405)
* add permissions check to API

* Add UI check to display error when user lacess access privlages

* prettier fix
2018-10-24 05:34:59 -04:00
Felix Stürmer
c4e7b2f5b5
[Infra UI] Add tests for the log entries and summary api (#24354) 2018-10-24 11:03:57 +02:00
Matt Apperson
a5ea1c6de2
[BeatsCM] fix keyed config saving rendering (#24379)
* Fix config issues, move all config formatting to lib, add tests

* remove config transform from config

* add comments
2018-10-23 23:41:40 -04:00
James Gowdy
c240d609f6
[ML] Improving file data visualizer navigation (#24438) 2018-10-24 02:23:33 +01:00
Matt Apperson
f0d6208a94
[BeatsCM] Re-add tag removal, tags default color is now a random EUI vis color (#24443)
* random default tag color

* re-add delete controls to tags table
2018-10-23 20:37:18 -04:00
Joe Fleming
7d96e671c1
Fix: Plugin loading in the build (#24426)
* fix: correctly wait on server plugins

* fix: correctly resolve canvas plugins in build
2018-10-23 17:25:33 -07:00
Joe Fleming
5009efde13
Fix: Canvas socket auth (#24094)
## Summary

Closes https://github.com/elastic/kibana/issues/23303 ~(@cqliu1 can you confirm this too?)~ confirmed

Fixes the way we capture the request info when configuring the socket and providing it to plugins via `callWithRequest`. Instead of exposing a route that returns the info, simply use the request object that comes back from `server.inject`.

Also adds a check in the `elasticsearchClient` handler exposed to plugins to ensure the session is still valid because using `callWithRequest`.

![screenshot 2018-10-16 10 37 56](https://user-images.githubusercontent.com/404731/47036828-32768c00-d132-11e8-81a0-122b5e83c7ef.png)
*Note:* the actual error message is a bit different, but this is how the failure is exposed to the user
2018-10-23 17:19:32 -07:00
kobelb
ee335d86bb Fixing Spaces nav control popover snapshot 2018-10-23 17:17:52 -07:00
Justin Kambic
e08373d93c
Update tag creation page to disallow the creation of tags with multiple uniqueness-enforced configuration blocks. (#24224) 2018-10-23 19:27:08 -04:00
Nathan Reese
60bb49853e
Canvas saved objects for sample data (#24347)
* Canvas saved objects for sample data

* fix line break in MACHINE element

* store canvas saved objects in json files instead of js files to avoid build problems

* remove logging statement

* set canvas-workpad timestamps to current time so they are displayed at top of list when sorted by date
2018-10-23 17:38:33 -04:00
Matt Apperson
b1c7d93152
Add dynamic breadcrumbs components (also fix outputs data, dont remove stuff) (#24364) 2018-10-23 17:25:30 -04:00
Brandon Kobel
8acf04b417
Rendering the space selector in either the header or the globalnav (#23845)
* Rendering the space selector in either the header or the globalnav

* Adding link title

* Doing it the React way

* Updating snapshots

* Adding withTitle prop
2018-10-23 13:36:49 -07:00
Søren Louv-Jansen
3151da280b [APM] Distributed Tracing (#24062)
* Adds traces overview with mock data (#22628)
* Updates service overview snapshots
* Adds tests for ManagedTable and ImpactBar
* Refactored transaction overview to use new managed table component
* Removed jsconfig file in apm
* [APM] Distributed tracing - Trace details (waterfall) (#22763)
* [APM] Add typescript to waterfall (#23635)
* [APM] Migrate get_trace and constants to Typescript (#23634)
* [APM] Add types for setup_request (#23762)
* [APM] Adds trace overview queries and some refactoring (#23605)
* ImpactBar component to align EuiProgress usage for impact bars
* Sharing some logic between transaction and trace queries
* Typescript support
* Quick fix ‘banana’
* [APM] Ensure backwards compatibility for v1 and v2 (#23636)
* Make interfaces versioned
* Rename eventType to docType
* Fixes trace links on traces overview (#24089)
* [APM] use react-redux-request (#24117)
* Updated yarn lockfile for new yarn version
* Updated dependency issues for react-router-dom types
* [APM] Display transaction info on span flyout (#24189)
* [APM] Display transaction info on span flyout
* Brings in real location and url param data for transaction flyout
* Converts flyout to TS
* Adds query param state for flyouts with ts support
* Updates styles and uses EuiTabs for transaction flyout
* [APM] Transaction flyout
* [APM] Minor docs cleanup (#24325)
* [APM] Minor docs cleanup
* [APM] Fix issues with v1 spans (#24332)
* [APM] Add agent marks (#24361)
* [APM] Typescript migration for the transaction endpoints (#24397)
* [APM] DT transaction sample header (#24294)

Transaction sample header completed
* Fixes link target for traces overview to include trans/trace ids as query params
* Converts Transaction index file to TS
* Adds trace link to sample section
* Refactors the trace link and applies it to two usages
* Implements transaction sample action context menu
* Calculates and implements duration percentage
* Re-typed how transaction groups work
* Fixes transaction flyout links and context menu
* Removes unnecessary ms multiplication
* Removes unused commented code
* Finalizes infra links
* Fixes some type shenanigans
2018-10-23 16:34:23 -04:00
James Gowdy
25d35fac27
[ML] Adds File Data Visualizer feature (#24423)
* [ML] File datavisualizer initial commit (#22828)

* [ML] File datavisualizer initial commit

* removing mocked data and adding initial stats

* adding card styling to fields

* Revert "". accidentally added with no commit message

This reverts commit d762d20b706e6a770e631f863b9e7d8879bb7ee6.

* adding date type to timestamp field

* renaming FileStats to FieldsStats

* code clean up

* changes based on review

* changes to error handling

* [ML] Adding file datavisualizer overrides (#23194)

* [ML] Adding file datavisualizer overrides

* improvements to overrides

* removing comment

* small refactor

* removing accidentally added file

* updates based on review

* fixing broken test

* adding missing grok pattern override

* fixing test

* [ML] Refactoring override option lists (#23424)

* [ML] Refactoring override option lists

* moving lists out of class

* updating test snapshot

* [ML] Fixing field editing (#23500)

* [ML] Changes to timestamp formats (#23498)

* [ML] Changes to timestamp formats

* updating test snapshot

* [ML] Allow Datavisualizer use on basic license (#23748)

* [ML] Allow ML use on basic license

* removing timeout change

* adding permission checks

* updating tests

* removing unnecessary checks

* [ML] Adds new page for choosing file or index based data visualizer (#23763)

* [ML] Adding license check to datavisualizer landing page (#23809)

* [ML] Adding license check to datavisualizer landing page

* removing comments

* updating redirect to landing page

* [ML] Adding ability to upload data to elasticsearch from datavisualizer  (#24042)

* [ML] Initial work for delimited file upload

* adding results links cards

* adding nav menu

* removing accidental debugger

* initial work for importing semi structured text

* using ingest pipeline for import

* adding json importer and better error reporting

* better progress steps

* time range added to results links

* first import only creates index and pipeline

* adding status constants

* using status constants

* adding explanation comment

* updating yarn.lock

* changes based on review

* fixing space

* fixing space again, stort it out git

* removing oversized background container causing constant scrollbar

* [ML] Adding basic license check when loading privileges (#24173)

* [ML] Adding basic license check

* missing import

* [ML] Adds an About panel to the file data visualizer landing page (#24260)

* [ML] Adds an About panel to the file data visualizer landing page

* [ML] Remove unnecessary style from file data visualizer scss

* [ML] Adding better error reporting for reading and importing data (#24269)

* [ML] Adding better error reporting for reading and importing data

* changes to endpoint errors

* displaying errors

* step logic refactor

* removing log statements

* [ML] Switch file data visualizer to use Papa Parse for CSV parsing (#24329)

* [ML] Fixes layout of Data Visualizer selector page for IE (#24387)

* [ML] Adding ability to override various settings when importing data (#24346)

* [ML] Adding ability to override various settings when importing data

* second commit with most of the outstanding code

* improving index pattern name validation

* better index pattern matching

* adding comments

* adding empty index pattern check

* changes based on review

* fixing test
2018-10-23 20:58:05 +01:00
Larry Gregory
b981546290
Always enable the login button (#24407)
The login button should always be enabled, to account for password managers that will auto-fill the form fields.
2018-10-23 15:57:03 -04:00
Chris Cowan
3a6a3eadd6
[Infra UI] Adding time ranges to detail links (#24237)
* [Infra UI] Adding time ranges to detail links

- Adds timeranges to hosts, containers, and pods links
- Fixes #24228 - Typos and what not prevented urls from working

* remove argument hard coded formatting

* Cleaning up query arg generation

* Adding missing file

* removing rison hard coded string
2018-10-23 11:39:59 -07:00
Nicolas Ruflin
e8451ad40a
Add latency to index and node Elasticsearch stats (#22625)
Closes https://github.com/elastic/kibana/issues/22503
2018-10-23 19:26:30 +02:00
Walter Rafelsberger
836b1a16d2
[ML] Fixes check for lower memory limit. (#24323)
- Fixes the job validation for the lower bound of the model memory limit. Previously the check was against zero, now it's again less than 1MB, which is the same as the backend expects.
- If the user entered model memory limit is less than half the value of the estimated model memory limit, a warning type message gets triggered. If the user entered model memory limit is more than half the value but less then the actual value of the estimated model memory limit, then the already existing info type message is shown. The unit tests have been updated to reflect that behavior.
2018-10-23 19:03:04 +02:00