Commit graph

26745 commits

Author SHA1 Message Date
WangQianliang 7d02e25c72
fix(code/frontend): folding icon position when line hilighted (#45865) (#46107) 2019-09-19 16:56:21 +08:00
Joe Reuter 3e47dc220a
fix scope digest issue with new button in discover (#45913) (#45993) (#46105) 2019-09-19 10:49:04 +02:00
Matthias Wilhelm a4ef4a3130
De-angularize discover doc (#44660) (#46106)
* Add react component

* Remove angular

* Refactor component data fetching

* Add tests

* Remove translation that need to be retranslated
2019-09-19 10:32:52 +02:00
Peter Pisljar dfb754564d
removes vislib_vis_type (#45874) (#46103) 2019-09-19 09:20:53 +02:00
Mike Place c8a0a3f48e
[7.x] Respect xpack.monitoring.show_license_expiration (#45537) (#45878) 2019-09-19 06:44:51 +00:00
Joe Reuter 1493c890c4
[Graph] Type and reactify venn diagram (#45770) (#46031) 2019-09-19 08:38:36 +02:00
Peter Pisljar 209a447fa2
adding get to visulization.types (#45869) (#46035) 2019-09-19 07:36:56 +02:00
Justin Kambic bf9f9f1e1a
[7.x] [Uptime] Add Kuery Bar (#43621) (#45859)
* [Uptime] Add Kuery Bar (#43621)

* Add saved objects provider, auto-creation of index pattern.

* Fix outdated import.

* Add KueryBar component to Uptime app.

* Extract module helper function to higher scope for greater reuse.

* Reduce nesting in URL hook.

* Update client usage of previously-moved helper function.

* Add export for helper function to helper directory.

* Add index pattern adapter to client lib.

* Add KueryBar to Overview Page.

* Add KueryBar and new filter group.

* Move new components to appropriate directory.

* Fix overview page import.

* Delete status filter helper functions.

* Remove  from list of recommended fields.

* Update domain files to use status filter.

* Update GraphQL queries to use status filter.

* Update GraphQL endpoint to accept status filter.

* Delete obsolete component and associated files.

* Add custom filter components.

* Delete unneeded code.

* Update adapters to accept statusFilter parameter.

* Remove obsolete code.

* Alphabetize object declaration.

* Add index pattern helper function.

* Update Overview handling of filters/user search.

* Update GraphQL inferred types.

* Delete obsolete component.

* Update outdated unit test for stringify_url_params.

* Add index file to new adapter directory.

* Update test framework files to satisfy new typing requirements.

* Update test snapshot for useUrlParams.

* Update JSDoc comment in pings adapter.

* Update pings adapter tests to use new `statusFilter` parameter.

* Delete tests and fixtures for obsolete endpoints.

* Update outdated fixture.

* Update status filter usages for snapshot query tests.

* Delete obsolete imports from index file.

* Delete obsolete monitor list getter.

* Update supported URL params for new param keys.

* Remove unused prop reference.

* Improve naming in new filter components.

* Clean up function body.

* Internationalize filter components.

* Update internationalization key.

* Add test for new helper function.

* Extract function to dedicated file, add tests.

* Add tests for filter popover.

* Move FilterStatusButton to appropriate directory.

* Add test for FilterStatusButton.

* Add tests for getIndexPattern helper.

* Extract helper function to dedicated file.

* Add tests to combineFiltersAndUserSearch helper function.

* Extract inline JSX to new component and add tests.

* Remove obsolete code, update index pattern getter, and add tests.

* Add filter clause helper function and tests.

* Replace custom filter formatting code with calls to new helper function.

* Move filter components to dedicated directory.

* Rename filter files.

* Delete obsolete snapshot.

* Fix broken import in test file.

* Update a comment.

* Simplify index pattern loading in KueryBar.

* Delete unused prop.

* Extract toggle handler to external function and write tests.

* Delete obsolete int'l labels and reuse existing ones in current code.

* Delete remaining unused translation key.

* Rename a file.

* Handle numeric values for filters. Position KueryBar and FilterGroup on same line.

* Remove ID's and URL's from FilterGroup.

* Remove unneeded onOutsideClick handler from styled component to silence warning.

* Escape colons in filters.

* Escape colons in filters.

* Fix bug in snapshot code - calculate total after filtering by status.

* Add specific message to MonitorList when filters are active.

* Introduce missing prop to unit tests.

* Delete unused translation keys.

* Undo filter-related changes to snapshot adapter function.

* Remove unnecessary spread.

* Update filter popover to trap focus and improve keyboard experience.

* Update broken test snapshots.

* Update snap.
2019-09-18 21:58:23 -04:00
Ryland Herrick ddb5d6f17b
[Code] New SearchPage layout (#45821) (#45975)
* Remove now-unused ScopeTabs component

The new layout does not include these tabs; their utility is redundant
with the ScopeSelector dropdown in the search bar.

* Remove unused style

Randomly found this orphaned rule while in here. The consuming component
was deleted in a previous commit (ef8d7ea9).

* Use consistent block names in our BEM classes

Others in this component already use codeQueryBar, so...

* Move the Search bar above both the sidebar and main content

* Align the search dropdown's RHS with the search sidebar

This required a little coordination between the two components
through a couple of sass variables.

* Remove erroneous width rule

This was incorrect for two reasons:

* You need to interpolate the sass variable within calc
* This is the same as width: auto and can be deleted

* Copy: Search Filter -> Advanced Filter

Also removes some odd spacing surrounding the text; that should be done
with CSS instead.

* Space out badge with margin, not nbsp

The copy previously had a leading space; using margin is a better
approach. The class that was replaced was unused.

* Fix alignment of Filters flyout badge

This tweaks the pink badge to be aligned with the text on the flyout
title.

Also removes a now-obsolete className (code-flyout-title).

* Adjust layout of Search filter sidebar

* Indents facets below the filter's title
* Adjusts spacing to be more consistent, removes use of EuiSpacer

NB there's a bit of a hack for the indentation itself: we use an empty,
fixed-width div for the facet's icon prop.

* Fix newline errors

These were introduced by some default vscode settings, which have now
been resolved.

* Update snapshots following markup changes

* Less hacky way of indenting facet buttons

Rather than use an empty, fixed-width div as an icon, just give it some
margin-left.

* Swap hardcoded rem values for equivalent eui vars

* One more eui var replacement

* Remove unused import

* Remove unused translations

These existed in the ScopeTabs component which has been deleted.
2019-09-18 19:21:32 -05:00
Lee Drengenberg 51ef46fdbb
use correct id in setting default index pattern in dashboard tests (#45601) (#46011)
* replace guid with logstash-* in data for default index pattern

* revert change to data archive, instead fix index pattern id
2019-09-18 18:30:28 -05:00
spalger da666a5599 disable flaky suite (#46085)
(cherry picked from commit 22e15b8bcc)
2019-09-18 14:26:32 -07:00
spalger 105b4fc05a disable flaky suite (#38137)
(cherry picked from commit eb36519d9b)
2019-09-18 14:09:48 -07:00
Chris Cowan 7eeef31363
[Infra UI] Limit Metric Explorer fields (#43322) (#46051)
* [Infra UI] Limit Metric Explorer fields

- Closes #41090
- Closes #39613
- Adds allowed list for ECS, Promehteus, Kubernetes, and Docker fields
- Filters "graph pre" fields by selected metrics
- Only displays allowed fields for metric selection, graph per, and
Kquery bar

* Fixing test

* Changing all caps to camel case

* Fixing logic to be more clear and handle null use cases

* Changing to singular
2019-09-18 13:21:17 -07:00
Chris Cowan d226c8c298
[Infra UI] Display non-metric details on Node Detail page (#43551) (#46049)
* [Infra UI] Display non-metric details on Node Detail page

- Closes #42689
- Adds NodeDetails component

* clean things up a bit

* Change hook order

* Start of docs changes

* Making expand button more consitent

* Update docs for this minor change

* Changing handleClick to toggleIsOpen

* Optimizing fields slice
2019-09-18 13:20:55 -07:00
Chris Cowan e832c80137
[Infra UI] Load initial page state into the URL when empty for Metrics Explorer (#45683) (#46048)
* [Infra UI] Load inital page state into the URL when empty for Metrics Explorer

* Initializing incoming empty url state with the URL state provided
2019-09-18 13:20:34 -07:00
Dmitry Lemeshko 5282c9f3a9
Fix/tsvb functional tests (#45868) (#46047)
* [page_objects/visual_builder_page] increase timeout & remove FF sleep

* unskip flaky test suites

* run ciGroup6 12x times

* fix tsvb_markdown tests

* skip aggs test

* fix waiting

* run FF tests 8x times

* Revert "run FF tests 8x times"

This reverts commit 75ef2ced46.

* Revert "run ciGroup6 12x times"

This reverts commit 217dbb818c.

* Update test/functional/page_objects/visual_builder_page.ts

review fix

Co-Authored-By: Spencer <email@spalger.com>
2019-09-18 22:12:56 +02:00
Søren Louv-Jansen 08690f48ca
[APM] Use POST instead of implicit GET (#45903) (#45930) 2019-09-18 21:51:51 +02:00
Ahmad Bamieh 291fdf95db
[7.x] [i18n] sync from 7.4 latest translations (#45823) (#46064) 2019-09-18 22:39:11 +03:00
Kaarina Tungseth b99d37bb5f
[DOCS] Changes name to host (#45798) (#45908) 2019-09-18 13:58:55 -05:00
Larry Gregory 0318460b5d
[7.x] Spaces NP Migration - Moving server to the LegacyAPI mod… (#46045) 2019-09-18 14:46:54 -04:00
Dmitry Lemeshko 4b3e0b057d
Update chromedriver to 77 (#45614) (#46025)
* bump chromedriver to v77

* fix file import
2019-09-18 20:41:25 +02:00
Lisa Cawley fcf27baef1
[DOCS] Move Graph in Kibana TOC (#45957) (#46058) 2019-09-18 11:06:10 -07:00
Brian Seeders e8659817d2
[7.x] Run pipeline scripts with runbld (#45844) (#46020)
Change how runbld is invoked, and skip junit processing by default
2019-09-18 13:17:09 -04:00
Lisa Cawley 1cb8098c16
[DOCS] Updates data frame transform terminology (#45967) 2019-09-18 10:05:59 -07:00
Larry Gregory 45cc8d2aa5
[7.x] Custom space avatar images (#45148) (#46019)
* First changes for avatar images

* Added the ability to have custom images for space avatars

* Partial changes as requested by reviewers

* Final commit for space avatar images PR

* Wrapping avatar file name

* Colour picker always enabled, to allow background change for transparent svgs

* All the changes requested in the last review

* Fixes the type_check test errors

* Fixing the rendering errors for space pages

* Another batch of changes as requested by review

* Some more snapshot tests

* Last batch of changes

* Fixed the type_check test

* API doc updates

* Removed comment

* Removed imageUrl from state


Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-09-18 12:56:17 -04:00
gchaps 927204cda9
[DOCS] Fixes to install and plugin docs (#45917) (#46037)
* [DOCS] Fixes to install and plugin docs

* [DOCS] Adds links to references in code
2019-09-18 09:26:21 -07:00
Kaarina Tungseth 7fb9d01739
[DOCS] Updated API experimental notes (#46008) (#46032) 2019-09-18 11:02:27 -05:00
Peter Pisljar c9f3d1f2b4
moving agg_config and agg_configs to ui/agg_types (#45877) (#46009) 2019-09-18 18:02:20 +02:00
Aaron Caldwell 0f9a984df8
[skip-ci][Maps][File upload] Geojson indexing and styling docs (#41394) (#45898)
* Mostly complete, first pass on file upload getting started

* More edits. Add supporting images

* Change name to 'indexing'

* Review feedback

* Update integrated example text per review feedback

* Rename integrated example -> data tutorial

* Add back accidentally deleted Select Source image file

* Review feedback

* Review feedback

* Move tutorial before troubleshooting

* Review feedback
2019-09-18 09:55:27 -06:00
Josh Dover 7c29e26926
[7.x] Move ui/notify banners to New Platform (#43610) (#45956)
* Move ui/notify banners to New Platform (#43610)

* Fix Lens component
2019-09-18 10:38:25 -05:00
Gidi Meir Morris c78d976dc2
[Task Manager] Treats all tasks as a single unit of work (#45504) (#46004)
Treat all tasks as a single unit of work, removing the numWorker configuration.
2019-09-18 16:35:07 +01:00
spalger ad431aa86a skip flaky suite (#31379)
(cherry picked from commit 8057cb06a8)
2019-09-18 07:57:40 -07:00
Dmitrii 49fa492699
[7.x] [ML] Enhance job id error message (#45349) (#45882)
* [ML] Enhance job id error message (#45349)

[ML] Enhance job id error message

* fix i18n
2019-09-18 16:47:27 +02:00
Brian Seeders 63003d7a81
[7.x] Use unique junit report filenames again (#45897) (#45944)
Fix disappearing test results in pipelines
2019-09-18 10:37:09 -04:00
Devin W. Hurley 39930ef918
[SIEM] Enables no-param-reassign Eslint Rule (#45776) (#45972)
* enables no-param-reassign eslint rule

* replace some if statements with ternary operators

* remove dead code + fix logic on category of details query thankfully we were not using category on the UI

* adds test and minor logic update for regex replacer function. Also updates logic in events e' elasticsearch adapter for bug fix with field category and adds relevant test.

* remove unused resolvers and remove failing test I added because the type checker didn't like it.

* adds test cases and updates type definition for parts in regex replacer
2019-09-18 09:03:19 -04:00
Shahzad bd52cc0cdf
[Uptime] Fix/issue 48 integration popup closes after refresh (#45759) (#45999)
* integrate redux into uptime app

* update integrations popup handling

* keep popover open after page refresh

* updated unit test snaps

* update unit tests

* fixed types
2019-09-18 17:49:19 +05:00
James Rodewig dba7db7acd
[DOCS] Update CCR links (#44012) (#45951) 2019-09-18 08:19:53 -04:00
Angela Chuang 5ddc355198
remove setTimeoue for state change (#45853) (#45893) 2019-09-18 13:12:22 +01:00
Yulong 00df5d2388
merge changes (#45985) 2019-09-18 19:55:46 +08:00
Aleh Zasypkin 8053d97253
[7.x] Do not restart server if TypeScript tests change. (#45997) 2019-09-18 13:47:23 +02:00
spalger 3dc5517360 disable flaky test (#45970)
(cherry picked from commit dc774b30d6)
2019-09-18 04:40:04 -07:00
Joe Reuter c3464bb63b
[Graph] Restructure folders and add readme (#45782) (#45889) 2019-09-18 12:49:26 +02:00
spalger e1d5f65d78 disable flaky suite (#45983) (#45884)
(cherry picked from commit b0188e02d1)
2019-09-18 03:29:47 -07:00
Shahzad e143103f3f
[Uptime] Fix/issue 41924 show permission warning if no right for uptime (#44968) (#45994)
* add not found page

* update error handling and 404 page

* update unit tests snaps

* reverted a small change

* Resolved formatting issues

* update unit tests
2019-09-18 15:27:55 +05:00
Shahzad cfff718f8c
removed unused breadcrumb code !! (#44564) (#45992) 2019-09-18 15:26:39 +05:00
Shahzad 2e6c37b726
[Uptime]removed extra slash from integeration urls (#44469) (#45989)
* removed extra slash from integeration urls

* update test snaps
2019-09-18 15:18:37 +05:00
Robert Oskamp d198fff9e1
[ML] Add population job wizard test (#45765) (#45906)
This PR adds functional UI tests to create a machine learning job using the population wizard.
2019-09-18 06:25:00 +02:00
Andrew Goldstein a81a178066
[SIEM] Timeline flyout z-index / Search or Filter EuiSuperSelect width (#45971) (#45977)
##  Summary

- Fixes [#45830](https://github.com/elastic/kibana/issues/45830), an issue where the timeline flyout button has lower z-index than the search bar (screenshots below)

- A recent change to EUI added a fixed width to the `EuiSuperSelect` popover, such that it matches the width of its parent, which caused the Timeline `Filter / Search` super select content to get cut off. This PR overrides that styling to restore the previous (7.3) behavior (screenshots below)

Tested in dark and light mode in:

- Chrome 77.0.3865.75
- Firefox 69.0
- Safari 12.1.2

### Screenshots

### Flyout - (before)

<img width="1503" alt="flyout-before" src="https://user-images.githubusercontent.com/4459398/65085256-db44f100-d96a-11e9-8660-185045e1ea0a.png">

### Flyout - Chrome / Light (after)

<img width="1680" alt="flyout-chrome-light-after" src="https://user-images.githubusercontent.com/4459398/65085404-3d9df180-d96b-11e9-8f37-cc28b6fdf857.png">

### Flyout - Chrome / Dark (after)

<img width="1680" alt="flyout-chorme-dark-after" src="https://user-images.githubusercontent.com/4459398/65085415-468ec300-d96b-11e9-9435-5c2c4fc57517.png">

### Flyout - Firefox / Light (after)

<img width="1680" alt="flyout-firefox-light-after" src="https://user-images.githubusercontent.com/4459398/65085423-50182b00-d96b-11e9-8c3f-fa83b9241b6a.png">

### Flyout - Firefox / Dark (after)

<img width="1680" alt="flyout-firefox-dark-after" src="https://user-images.githubusercontent.com/4459398/65085427-55757580-d96b-11e9-9f87-eb0e0ecf199d.png">

### Flyout - Safari / Light (after)

<img width="1680" alt="flyout-safari-light-after" src="https://user-images.githubusercontent.com/4459398/65085436-5b6b5680-d96b-11e9-8a31-f1086c7086bf.png">

### Flyout - Safari / Dark (after)

<img width="1680" alt="flyout-safari-dark-after" src="https://user-images.githubusercontent.com/4459398/65085443-60300a80-d96b-11e9-8c41-21c699023fca.png">

### Search or Filter - (before)

<img width="1680" alt="search-or-filter-before-chrome" src="https://user-images.githubusercontent.com/4459398/65085454-69b97280-d96b-11e9-92ff-2f9aed740dae.png">

### Search or Filter - Chrome / Light (after)

<img width="1680" alt="search-or-filter-after-chrome-light" src="https://user-images.githubusercontent.com/4459398/65085465-7211ad80-d96b-11e9-8cee-8eb2879c1404.png">

### Search or Filter - Chrome / Dark (after)

<img width="1680" alt="search-or-filter-after-chrome-dark" src="https://user-images.githubusercontent.com/4459398/65085473-7938bb80-d96b-11e9-928a-136d1bff38aa.png">

### Search or Filter - Firefox / Light (after)

Note: this PR does _not_ address what appears to be a FF light-only focus issue with the latest EUI change:

<img width="1680" alt="search-or-filter-after-firefox-light" src="https://user-images.githubusercontent.com/4459398/65085492-83f35080-d96b-11e9-914c-23b2cd36166f.png">

### Search or Filter - Firefox / Dark (after)

<img width="1680" alt="search-or-filter-after-firefox-dark" src="https://user-images.githubusercontent.com/4459398/65085502-8f467c00-d96b-11e9-8255-f2a5124b10ff.png">

### Search or Filter - Safari / Light (after)

<img width="1680" alt="search-or-filter-after-safari-light" src="https://user-images.githubusercontent.com/4459398/65085527-ac7b4a80-d96b-11e9-8890-9706f185799b.png">

### Search or Filter - Safari / Dark (after)

<img width="1680" alt="search-or-filter-after-safari-dark" src="https://user-images.githubusercontent.com/4459398/65085545-bdc45700-d96b-11e9-9c14-2e5c8c1d005f.png">

https://github.com/elastic/kibana/issues/45830
2019-09-17 20:45:02 -06:00
Spencer 7c0acf05a4
[7.x] [ftr/savedObjects] add simple saved object api client to… (#45940)
* [ftr/savedObjects] add simple saved object api client to ftr services

* fix typo

* use consistent spacing

* fix types and TS-ify the rest of kibanaServer service

* expose server urls with better API

* tweak status api response types

* fix http body param name

* second arg to axios post is the post data

* use standardized error handling behavior

* Revert "use standardized error handling behavior"

This reverts commit 7e9a7f8dc5.

* revert unnecessary changes
2019-09-17 14:45:56 -07:00
Lisa Cawley fa968cc6d1
[DOCS] Move machine learning details out of Kibana Guide (#45855) (#45959) 2019-09-17 14:44:55 -07:00