Commit graph

23583 commits

Author SHA1 Message Date
spalger 971533a29d capture geckodriver in packer cache 2019-03-29 15:12:32 -07:00
CJ Cenizal 4e51ab863a
Fix docs typo sniffOnConectionFault -> sniffOnConnectionFault. (#34189) 2019-03-29 12:50:06 -07:00
Mikhail Shustov 5534249ea4
[New platform] Export types from root levels (#33973)
* export flatten types from the root

* add Chrome prefix for chrome types

* export types for server services

* remove comment

* cleanup CoreSetup types

* rename to setup

* Apply @eliperelman suggestions from code review

Co-Authored-By: restrry <restrry@gmail.com>
2019-03-29 19:22:31 +01:00
CJ Cenizal 8d64071d7f
Clarify rules for which files are run as Jest integration tests (#33869)
* Add RESERVED_DIR_JEST_INTEGRATION_TESTS to src/dev/constants to aid discoverability of which directory names are reserved.
* Add negation rules so the Jest integration tests script ignores test files inside of __jest__/integration_tests dirs.
2019-03-29 10:34:09 -07:00
Brandon Kobel b21f048df9
Upgrading less to ^2.7.3 (#34168) 2019-03-29 10:21:39 -07:00
Brandon Kobel 5aa05de480
Updating merge to 1.2.1 (#34167) 2019-03-29 10:17:53 -07:00
Melissa Alvarez 8cc60c2460
[ML] Anomaly Explorer - filter addition should be cumulative with existing selectedCells data (#33753)
* Update view by for filter if no selected cells

* keep timerange reference in overview swimlane for filter

* remove obsolete comments

* If AND filter set view by to jobID as others have no results

* clear cellSelection from appstate as well when clearing filter
2019-03-29 11:32:39 -04:00
Jonathan Budzenski 28f4bfabf8
remove useUTC deprecation, set default timezone to local (#22696)
* remove useUTC deprecation, set default timezone to local

* no-unused-vars

* rm set, unset import
2019-03-29 10:29:07 -05:00
Pete Harverson cd087e04f3
[ML] Fixes line wrap for jobs list timestamp cell in Firefox (#34150) 2019-03-29 14:37:27 +00:00
Pete Harverson e00dae7405
[ML] Extends support for anomaly charts when model plot is enabled (#34079)
* [ML] Extends support for anomaly charts when model plot is enabled

* [ML] Edits to util functions following review
2019-03-29 14:12:54 +00:00
Søren Louv-Jansen 979c8a750c
[APM] Fix transaction sample on error page (#34048) 2019-03-29 09:06:12 +01:00
Mikhail Shustov 2489180999
[New platform] Restrict import from core&plugin internals for js files (#33697)
* restrict import from core&plugin internals

* Fork import/no-restricted-paths and add allowSameFolder option

Our use case requires to restrict imports from plugin folders, which names are unknown for us yet. We cannot use 'import/no-restricted-paths' in the current state, because if we define 'from: plugins/*/server/' the rule will report all relative imports in the same folder as well. To fix this problem we added another option 'allowSameFolder' that makes the rule to ignore imports in the same folder.

* update notices

* add basePath option

* support glob pattern instead of reagexp

* remove @notice, make basePath required
2019-03-29 08:48:32 +01:00
Spencer eefa2a54af
[kbn/es] print first 500 bytes of invalid content (#34133)
We added checksum verification to `@kbn/es` in https://github.com/elastic/kibana/pull/33893, which is working, and in turn proves that using the Artifact API to download snapshots wasn't enough to fix the issues we've been seeing. In https://kibana-ci.elastic.co/job/elastic+kibana+7.0/412/JOB=kibana-ciGroup8,node=immutable/console we see:

```
00:14:20.762  │ info Installing from snapshot
00:14:20.763      │ info version: 7.0.0
00:14:20.763      │ info install path: /var/lib/jenkins/workspace/elastic+kibana+7.0/JOB/kibana-ciGroup8/node/immutable/kibana/.es/test-97zzlri1nyb
00:14:20.764      │ info license: oss
00:14:20.764      │ info downloading artifact info from https://artifacts-api.elastic.co/v1/versions/7.0.0-SNAPSHOT/builds/latest/projects/elasticsearch
00:14:20.852      │ info downloading artifact from https://snapshots.elastic.co/7.0.0-ea741e68/downloads/elasticsearch/elasticsearch-oss-7.0.0-SNAPSHOT-linux-x86_64.tar.gz
00:14:22.765      │ info downloading artifact checksum from https://snapshots.elastic.co/7.0.0-ea741e68/downloads/elasticsearch/elasticsearch-oss-7.0.0-SNAPSHOT-linux-x86_64.tar.gz
00:14:22.818 
00:14:22.818 artifact downloaded from https://snapshots.elastic.co/7.0.0-ea741e68/downloads/elasticsearch/elasticsearch-oss-7.0.0-SNAPSHOT-linux-x86_64.tar.gz does not match expected checksum
00:14:22.819   expected: 1e5188c1410e0299777dd1cb9638aa12de4067ea80a77ff6723986746bbc7b1a35d580023f605e6e1ae84887e675ba10184032da80240a42289ee6c5d5361c66
00:14:22.820   received: 7630553ab83828196931917aa15f17bf1f31d541fd11e0f1c82d89f294fbe47dca7be99d96da5baa0a9545712e3c9340f9b3d989e5056a3f9471f43bb582becc
```

The new logging shows that we used the explicit URL for the artifact `https://snapshots.elastic.co/7.0.0-ea741e68/downloads/elasticsearch/elasticsearch-oss-7.0.0-SNAPSHOT-linux-x86_64.tar.gz` and still got invalid data, which confirms our suspicion that something funky is happening with the CDN. In order to understand more about what's going on here this PR adds a buffer that caches the first 500 bytes from the artifact response and will log it in utf8 format if the checksum doesn't match. I'm hoping we're going to see some HTML or something that will help explain what's happening.
2019-03-28 19:41:07 -07:00
spalger 179b9be6bb disable flaky test (#33468) 2019-03-28 19:21:34 -07:00
Joe Fleming 65a5d528b1
Test: element filter expressions (#33908)
* test: add more filter elements

* test: add getGlobalFilterExpression test

* chore: only iterate filter elements once
2019-03-28 15:03:32 -07:00
Aleh Zasypkin 7420e2ee65
Use credentials: same-origin when we fetch translations JSON. (#34036) 2019-03-28 22:56:59 +01:00
Spencer 8be6c3415f
fix path to @kbn/expect (#34114) 2019-03-28 14:31:08 -07:00
Spencer bedf74faf2
[kbn/es] use artifact api to determine snapshot url (#33893)
* [kbn/es] use artifact api to determine snapshot url

* actually use AbortController

* [kbn/es] handle optional os and jdk indicators in artifact name
2019-03-28 14:29:39 -07:00
Lukas Olson 518f10d4e1
[Courier] Remove unused merge duplicate request logic (#33907)
* Remove unused courier logic to merge duplicate requests

* Remove unused courier logic to merge duplicate requests

* Remove accidental console log

* Revert change to filter aborted statuses

* Revert other change

* Revert other change

* Remove space

* Fix test

* Move ngMock back to where it belongs
2019-03-28 13:49:50 -07:00
Josh Dover 283fd2e4a6
Fix regex to select paths correctly. (#34106) 2019-03-28 15:02:17 -05:00
Christiane (Tina) Heiligers fd3535fdcf
Remove dangerously set inner html (#33976)
Fixes #24781
Replaces dangerouslySetInnerHtml with JSX using FormattedMessage for i18n.
2019-03-28 12:56:36 -07:00
Rudolf Meijering 5f511fcd83
Remove ui/jquery (#33855) 2019-03-28 20:53:07 +01:00
spalger 980d736c04 disable flaky test 2019-03-28 12:36:48 -07:00
dave.snider@gmail.com d2c077ae59
eui 9.7.1 (#34098) 2019-03-28 12:27:35 -07:00
Chris Roberson bbb21b1c85
[Monitoring] Address shard allocation color mismatch (#34086)
* Address mismatch and add a couple starter tests

* More tests and fixing a bug
2019-03-28 14:57:14 -04:00
Matt Apperson 8ff80cb589
[BeatsCM] Move API to new return format (#31660)
* add and assign types

* move error management to the lib vs each route. More DRY and easier to test

* move more endpoints to the new format

* fix result for not-yet-pages beats list

* refine more endpoints

* move more routes to new format

* UI now propperly connected to the API

* uodate tests and documenting testing in readme
2019-03-28 13:54:46 -04:00
Nathan Reese d6eb59179f
[Maps] apply filters to join SearchSource request (#34072)
* [Maps] apply filters to join SearchSource request

* add functional test verify filter applied  to join in dashboard
2019-03-28 11:38:33 -06:00
Lisa Cawley 1d2fbf827c
[DOCS] Fixes anchor in ordered list (#34092) 2019-03-28 10:17:35 -07:00
Sarah Hersh edbc3d49a7
[DOCS]Update UI names in Reporting doc (#34073) 2019-03-28 13:16:28 -04:00
Lukas Olson b4bafa5ff6
Allow negative values for custom ranges in metric and gauge visualizations (#33814)
* Fix inequality directives to handle negative values

* Fix test
2019-03-28 10:13:10 -07:00
Walter Rafelsberger 9d60ad3831
[ML] Reverts completely resetting explorer state on job selection change. (#34084) 2019-03-28 17:57:46 +01:00
Aleh Zasypkin 2073a6f165
Typesciptify Basic Authentication provider and move its tests to Jest. (#34045) 2019-03-28 17:22:44 +01:00
Philipp B 7e43afaad0
(Accessibility) "Add" buttons provide no context on Sample Data page. (#33769)
* aria described by for sample button
2019-03-28 17:59:19 +03:00
Søren Louv-Jansen 30c63f57fd
[APM] useFetcher: Replace react-redux-request with hooks and Context API (#33392) 2019-03-28 14:56:56 +01:00
Nathan Reese a7062883d2
[Maps] Add clone layer to layer actions (#33853)
* [Maps] Add clone layer to layer actions

* remove console statement

* do not show clone action when isReadOnly

* clean up

* combine getLayerList uses into single getLayerById function

* update jest snapshots
2019-03-28 07:42:05 -06:00
Justin Kambic 062cfc7efe
Remove crosshair synchronization to avoid display bug. (#33660)
Fix broken snapshot.

Fix busted type.
2019-03-28 09:13:17 -04:00
Peter Pisljar 06d7ebef8f
moving interpreter functions to their appropriate plugins (#33552) 2019-03-28 13:40:31 +01:00
Nathan Reese 7ab080a97c
[Maps] store mapCenter in embeddable config (#33902)
* embeddable config

* set embeddableConfig when map center changes

* remove console statement

* add functional test for embeddable state
2019-03-28 06:39:36 -06:00
Tim Roes 0b7268f5b3
Remove geo_centroid/geo_bounds from nested metrics (#34042) 2019-03-28 13:15:21 +01:00
Liza Katz 8fa81b7fdc
New platform cleanup autoload - step 1 (#33765)
* Explicit dependencies to doc_title

* Explicit dependencies to
    - kbn_top_nav
    - saved_object_save_as_checkbox

* Explicit dependencies to filter_bar

* Explicit dependency to query_bar

* Removed modules from autoloades that never
used implicitly:
- bound_to_config_obj
- debounce
- filter_manager
- index_patterns
- parse_query
- persisted_log
- timefilter

* Removed modules from autoload (never used implicitly)
- events

* Explicit dependency to bind + typo fix

* Explicit dependency to fancy_forms

* Explicit dependency to $listen

* Explicit dependency to timepicker

* Moved kbn-infinite-scroll directive to doc_table

* Explicit dependency on directives
- css truncate
- inequality

* Explicit dependecy to input_focus directive

* Explicit dependency to json-input directive

* Explicit dependency on directives:
 - input_focus
 - paginate

* Explicit dependency on paginated-selectable-list directive

* Explicit dependency on saved-object-finder directive

* Moved validate_json directive into agg_types

* Don't include directives implicitly
2019-03-28 13:53:10 +02:00
Maryia Lapata b03f6c3eae
[Vis: Default editor] EUIficate agg-select (#31892)
* EUIficate agg-select

* Improve validation; update TS

* Apply styles for helpLink

* Fix unit test

* Update functional tests

* Adjust comboBox service to chose the item where the text mates exactly

* Update vis page object

* Add default value for agg

* Move aggs grouping function to a separate file

* Use labelAppend prop for help link node

* Add watcher for aggType to manage to discard changes

* Add default value for agg type title

* Fix defining selected option when aggType is defined

* Fix validation issues

* Remove a bootstrap specific class

* Change css selector in test

* Update according to SASS guidelines

* Update functinal comboBox service

* Added check for undefined

* Add jsdoc for groupAggregationsBy function

* Add unit tests for groupAggregationsBy

* Move setValidity invocation to DefaultEditorAggSelect component

* Wrap setValidity into useEffect due to react warning when select is cleaned at the first time

* Move help link definition to select component
2019-03-28 13:02:34 +03:00
Joe Reuter 06a71e8676
Functional tests: prevent waiting longer than necessary for loading spinner to disappear (#33922) 2019-03-28 10:27:42 +01:00
Liza Katz 751524b673
Move tests from factories to their correct locations (#33851) 2019-03-28 10:58:02 +02:00
Maryia Lapata 508acd3065
[Vis: Default editor] EUIficate raw json control (#32888)
* EUIficate raw json control

* Remove unused validate-json directive

* Update tests

* Update styles

* Move validation logic down to control

* Fix type
2019-03-28 11:40:40 +03:00
Philipp B 424edafdfd
(Accessibility) Viz type selection button should read more clearly in screenreader #29475 (#33434)
* popover announces itself, button gives predictable behavior; menutitems
* drops incorrect button aria label
* replace aria-describedby with translated label
2019-03-28 09:58:20 +03:00
CJ Cenizal 7a4b3ced60
Update copy to refer to Cross-Cluster Search/Replication. (#33872) 2019-03-27 19:53:19 -07:00
dave.snider@gmail.com 786423a85a
EUI@9.7.0 (#34011) 2019-03-27 16:21:40 -07:00
Lukas Olson a848840501
Remove segmented fetch (#33453)
* Remove segmented fetch

* Fix namespace

* Remove unused translations
2019-03-27 14:14:01 -07:00
Greg Thompson 3acebd9d57 Upgrade EUI to 9.6.0 (#33873)
* eui to 9.6.0

* update snapshots related to onClick
2019-03-27 13:49:52 -07:00
Josh Dover 049723da8a
Fix missed start -> setup renames (#33967) 2019-03-27 15:35:16 -05:00