Commit graph

24567 commits

Author SHA1 Message Date
Brandon Kobel e1c3903860
Upgrading handlebars to 4.0.14 (#35755) 2019-04-29 12:59:54 -07:00
Brandon Kobel 5ae5e3d8c6
Feature Controls - Read only badges (#35252)
* Adding readonly badge to the discover application

* Dashboard get a badge

* Visualize gets a badge

* Timelion gets a badge

* Canvas gets a badge

* Maps gets a badge

* Infra gets a badge

* Graph gets a badge

* Dev Tools gets a badge

* Index Patterns get badges

* Advanced Settings get badges

* Infra and i18n are super chill friends

* Using proper i18n prefix for xpack

* Adding badges to the uptime application

* APM gets a badge!

* Adding functional tests for the discover read-only badge

* Functional tests for everyone!

* Removing unused import

* Fixing chrome service mock

* Switching from ChromeBadge | null to ChromeBadge | undefined

* Fixing canvas badge assertst

* Fixing Logs ui capabilities

* More ChromeBrand | null to ChromeBrand | undefined related changes

* Using named badges

* Revert "Using named badges"

This reverts commit c0e341bee1.

* i18n'ing the uptime read-only badges

* Adding ChromeService tests for badges

* Starting to add tests for the legacy badge API

* Changing capitalization of "Read Only" to "Read only"

* Adjusting styles

* Adding $setupBadgeAutoClear tests

* Changing the badge tooltip

* Fixing timelion i18n prefix

* Changing where Canvas sets the breadcrumbs

* Using a read-only badge with an icon

* Update x-pack/plugins/canvas/public/angular/controllers/canvas.js

Co-Authored-By: kobelb <brandon.kobel@gmail.com>

* Update src/legacy/core_plugins/timelion/public/app.js

Co-Authored-By: kobelb <brandon.kobel@gmail.com>

* Changing discover's read-only verbiage

* Removing tests for code that moved to an untested part of Kibana

* Fixing issues introduced with the rebase

* Fixing priv ileges snapshot

* Adding back dropped docs

* Fixing plugin plugin doc

* Ensuring iconType is set as well

* Updating badge api, angular components moved

* graph to Graph

* Fixing linter

* Switching from aria-label to data-test-badge-label for testing

The tabIndex allows screenreaders to work properly

* Fixing eslint error

* Fixing more issues introduced by the merge from master

* APM updates badge in React hook

* Applying changes suggested by Aleh
2019-04-29 12:48:43 -07:00
Clint Andrew Hall 7aa698f522
[codemod][prereq] Convert Functions from arrow to function (#35749) 2019-04-29 14:07:53 -04:00
WangQianliang 6d45682c5c fix(code/frontend): fix highlight symbol (#35531) 2019-04-29 23:23:02 +08:00
Tiago Costa b0e2ab0de9
Relative cache loader (#35406)
* chore(NA): first efforts to enable cache-loader relative paths and disable babel-register cache. chore(NA): allow to use cache-loader results everywhere as a persistent cache.

* chore(NA): last change to support cache loader across envs.

* fix(NA): cache-loader config generator function scope.

* refact(NA): static cache config for dll compiler.

* chore(NA): support for force writable cache flag. use built assets for cache on distributable.

* chore(NA): update cache-loader to last version. fix(NA): logic bug with force writable cache flag.

* chore(NA): move optimize cache to built_assets.

* chore(NA): relative paths for sourcemap configurations.

* chore(NA): remove redudant check for process.env var.

* refact(NA): simplify double negated expression.

* chore(NA): remove webpack prefix from devtoolModuleFilenameTemplate.

* chore(NA): rename cache write force flag to KBN_CACHE_LOADER_WRITABLE.

* chore(NA): readd babel register cache.

* chore(NA): change .cache to .ui_bundles_cache

* chore(NA): change .ui_bundles_cache to cache/ui_bundles

* chore(NA): update gitignore with .babel_register_cache.json
2019-04-29 15:08:56 +01:00
Pete Harverson e597c065d7
[ML] Fixes URL of link to detector function reference docs (#35734) 2019-04-29 15:08:38 +01:00
Walter Rafelsberger 84ffaaec39
[ML] Adds a feature flag to disable cell actions in the source index preview table. (#35719) 2019-04-29 16:02:35 +02:00
Walter Rafelsberger 804a144ffd
[ML] Adds data frame cluster privileges. (#35722) 2019-04-29 16:00:22 +02:00
Søren Louv-Jansen c4823356af
[APM] Cleanup context providers and limit use of withRouter (#35644) 2019-04-29 15:39:37 +02:00
Walter Rafelsberger 3c3c9b2a15
[ML] Data Frame UI group by enhancements (#35491)
- Adds support for histogram and date_histogram aggregations for the data frame pivot wizard for group-by fields.
- Adds options to the list of group-by aggregation to let the user edit the interval where applicable.
- Adds unit tests and enzyme snapshots test files to files touched by this PR.
2019-04-29 14:07:29 +02:00
Maryia Lapata 4c3a366a1f
[Vis: Default editor] EUIficate number interval (#35478)
* EUIficate number interval

* Add type for EditorConfig

* Update functional tests

* Add placeholder

* Update placeholder

* Use FormattedMessage instead of i18n

* Set validity in the effect only

* Refactoring: add showValidation prop and remove isInvalid

* Update prop
2019-04-29 14:47:33 +03:00
WangQianliang 824563b48b
fix(code/frontend): show loading in directory view (#35720) 2019-04-29 19:31:32 +08:00
Pete Harverson 3577c43d90
[ML] Edit queries in Metricbeat module to use event.dataset field (#35653) 2019-04-29 11:09:16 +01:00
Mengwei Ding 7ad35347e9
[Code] Fix language servers management page (#35714) 2019-04-29 10:29:42 +08:00
WangQianliang 728c82ea86
[Code] fix typeahead highlight file (#35585)
* fix(code/frontend): should not collapse folder after click a breadcrumb

* fix(code/frontend): should highlight file when jump from typeahead

* separate to a independent test case
2019-04-28 18:19:44 +08:00
Henry Wong d145ddd933
[code] Fix typo in the error desciption. (#35712) 2019-04-28 17:31:57 +08:00
WangQianliang 7f1bf939b5
fix(code/frontend): should not collapse folder after click a breadcrumb (#35458) 2019-04-28 15:45:19 +08:00
Mengwei Ding 29067e1cdc
[Code] fix tests (#35572)
* [Code] fix tests

* [Code] update mocha tests
2019-04-28 14:55:21 +08:00
Spencer 11adac314f
Revert "Optimizing DLStest" (#35706)
This reverts commit c1a3fca006.
2019-04-27 08:14:42 -07:00
Shaunak Kashyap 0b92436383
Exclude usage stats when exclude_usage flag is specified (#35691)
* Exclude usage stats when `exclude_usage` flag is specified

* Entirely excluding the usage key altogether

* Adding API integration test

* Fixing param name in comment + adding more info to comment

* Fix API test copy-pasta

* Fixing test assertion syntax
2019-04-26 21:52:03 -07:00
Nathan Reese 8c687ed85a
[Maps] ignore global query layer setting (#35542)
* [Maps] ignore global query layer setting

* do not include index pattern id in query bar indexPatterns when applyGlobalQuery is disabled

* update how embeddable factory extracts indexPatterns so only queryable index patterns are included in list

* support applyGlobalQuery for heatmap and getBounds

* add functional tests to join layer

* show filter section when layer has join

* move checkbox to layer settings panel

* text review

* set checkbox to false when disabled

* do not trigger refetch when global query and global filter changes and applyGlobalQuery is disabled

* rename applyGlobalQuery to getApplyGlobalQuery

* throw error in map embeddable factory if layerListJSON can not be parsed

* remove extra space

* update zoom range slider label and remove nested EuiFormRow
2019-04-26 19:20:11 -06:00
Ahmad Bamieh 27de17abbb
Monitoring telemetry collection interval (#34609)
* Only collect usage data once a day from kibana monitoring

* isUsageCollector

* bulk uploader tests

* linting

* condition filter

* checkout yarn.lock from master

* update mappings for functional tests

* debugging for refactoring

* support legacy mappings

* self code review

* isUsageCollector

* fix mock

* live coding session with pickypg

* self code review

* Update x-pack/plugins/xpack_main/server/lib/telemetry/monitoring/get_high_level_stats.js

Co-Authored-By: Bamieh <ahmadbamieh@gmail.com>

* update mappings
2019-04-27 03:38:05 +03:00
Rashmi Kulkarni a20e6b9f86
optimized field level security test (#35678)
Removed createIndexPattern via UI and used ES Archiver for Field level security test ( functional)
2019-04-26 14:53:32 -07:00
Rashmi Kulkarni c1a3fca006
Optimizing DLStest (#35615)
*  dls optimize
Removed createIndexPattern via UI and used ES Archiver for document level test (functional)
2019-04-26 14:47:20 -07:00
Bill McConaghy 01c9e815f0
changing suggestion for number_of_shards to default (1) (#35657) 2019-04-26 13:02:49 -04:00
Justin Kambic e50e6eceeb
Change millisFromNow from UnsignedInteger to String. (#33746) 2019-04-26 12:25:08 -04:00
Davey Holler 59adbfc95e
Code 1150 match fonts to design (#35631)
* Modifying the font sizes to match the design mocks and improve the visual hierarchy in the directory view.

* Reducing the margin between directory list items.
2019-04-26 09:15:03 -07:00
Chandler Prall 352971eb3d
Force EUI's corejs to resolve to kibana's (#35600) 2019-04-26 09:41:53 -06:00
kaiyan-sheng b4b198966f
Fix Check data in metricbeat/filebeat home tutorial (#35589) 2019-04-26 08:05:40 -06:00
Justin Kambic 22ab31525d
[Uptime] Support URL parameters (#35375)
* WIP. Trying some things.

* Introduce useUrlParams hook to modify path.

* WIP code on setting/reading date range from url params.

* Create constants file for app defaults.

* Add functions for parsing supported URL parameters.

* Add index entry and update useUrlParams hook.

* Remove defaults and update application to store persisted state in the URL.

* More temp code.

* Support URL params and fix filters.

* Update Monitor page to accept URL parameters.

* Rename a test folder and add tests for new helper functions.

* Add functional test for filter query.

* Add missing prop to test component.

* Update breadcrumb functions to accept search parameters.

* Update app to support forwarding of search params in in-app links.

* Write snapshot for status bar test.

* Fix memory leak.
2019-04-26 09:02:44 -04:00
Artyom Gospodarsky feed82c0b8
Filter annotations by the last series timestamp (#35230)
* Filter annotations by the last series timestamp

* Move filter logic to get_annotations.js

* Move annotation handlers to a separate file

* Make some optimizations

* Optimize getLastSeriesTimestamp()

* Reorganize helpers
2019-04-26 10:56:44 +03:00
WangQianliang efb0e568b9
test(code/frontend): more history functional test cases (#35216) 2019-04-26 12:15:33 +08:00
Jason Rhodes 999c12fe1d
Fix saved object error detection (#35555)
* Fixes error detection in saved object installer

* Modify fix and add another similar fix based on review feedback
2019-04-25 22:19:53 -04:00
Tiago Costa 19a164a461
chore(NA): include type=text/css when linking stylesheets in order to avoid misleading mime identifications behind a proxy (#35546) 2019-04-26 02:53:25 +01:00
CJ Cenizal c55b0af584
Block requests to ui_metric API if telemetry is disabled (#35268)
* Block requests to ui_metric API if telemetry is disabled
- Export trackUiMetric helper method from ui_metric app.
- Remove createUiMetricUri helper.
- Add support for an array of metric types.
- Update README.
* Throw error if trackUiMetric is called with a string containing a colon.
2019-04-25 15:08:51 -07:00
Fuyao Zhao 1230748a18
[Code] Remove download installation type and the flaky test not in use (#35626) 2019-04-25 14:43:41 -07:00
Rashid Khan 445436b742 Fix/canvas bad context check (#35621) 2019-04-25 13:30:05 -07:00
Sarah Hersh 71e61fa5ad
adds note on matching multiple wildcards (#35351) 2019-04-25 15:15:56 -04:00
Spencer 46bff941f0
[master] [Code] Skip all jest tests for code (#35576) (#35617)
* [Code] Skip all jest tests for code

* run the x-pack-intake job 40 times

* more regex

* Revert "run the x-pack-intake job 40 times"

This reverts commit 9057cf8a2e.

(cherry picked from commit 4a154fb998)
2019-04-25 11:59:36 -07:00
igoristic d405d0c96b
Added uiCapabilities.logs check (#35562)
* Added uiCapabilities.logs check

* Fixed unit tests
2019-04-25 14:17:26 -04:00
Aaron Caldwell 6daaff1021
Fix map embeddable test (#34648)
* Remove skip for testing on server. Unable to repro locally

* run kibana-ciGroup2 40 times per build

* Temporarily skip 'geo map' check

* Left out 'Rendering Test: ' in filter string

* Revert "run kibana-ciGroup2 40 times per build"

This reverts commit 103a5c9c6e.

* Review feedback. Remove 'Flaky' test ref
2019-04-25 11:42:26 -06:00
Tiago Costa 81d77d6b29 chore(NA): remove empty stylesheet for statspage. (#35540) 2019-04-25 10:19:50 -07:00
Fuyao Zhao 5da1b9446b
[Code] fix nodegit patch script (#35588) 2019-04-25 09:48:30 -07:00
Chris Cowan e0cf6436f7
Fixes #34606 - Adjust CSS to fix scrolling bug in Waffle Map (#34881) 2019-04-25 09:39:23 -07:00
Pete Harverson d5390a4b08
[ML] Removes check for forecast duration is no more than 8 weeks (#35583)
* [ML] Removes check for forecast duration is no more than 8 weeks

* [ML] Edit to translations file for removal of duration limit text
2019-04-25 17:06:04 +01:00
Larry Gregory e18bfc1497
Feature Controls - Allow telemetry to be toggled with advancedSettings feature privilege (#35250)
* Allow telemetry to be toggled with feature privileges
2019-04-25 11:43:42 -04:00
Pete Harverson 43b9c7ad89
[ML] Adds Metricbeat System data recognizer module (#35580)
* [ML] Adds Metricbeat System data recognizer module

* [ML] Edit description of Metricbeat System module
2019-04-25 16:24:39 +01:00
Sébastien Loix 63975b84ca
Convert testBed to Typescript + refactor client integration tests (#34981) 2019-04-25 08:28:17 +02:00
igoristic b2dfcc4ba1
Showing node name instead of uid in breadcrumbs (#35553) 2019-04-24 19:48:44 -04:00
Matt Bargar 539bc6f3a2
Improve KQL error messages (#34900)
Attempts to make KQL syntax errors more sensical to the average user.

I initially tried to use a similar solution to the one we used for detecting usage of old lucene syntax. In other words, I tried to create rules in the grammar that would match strings containing common mistakes the user might make and throw custom error messages for each situation. This proved to be more difficult for detecting errors in the regular language. While the Lucene rules could be completely separated from the main grammar, the KQL error rules had to be mixed into the main grammar which made it much more complex and had a lot of unintended side effects.

So instead I decided to lean more heavily on PEG's built in error reporting. Giving certain rules human readable names allows the parser to use those names in the error reporting instead of auto generating a long list of possible characters that might be expected based on the matching rules. Since the PEG errors contain location information I was also able to add ascii art that points the user to exactly where the error occurred in their query string. While this approach is not quite as nice as bespoke error messages that tell the user exactly what is wrong in plain English, it's much more maintainable and I think it still results in much better error messages compared to what we have today.

I've also removed the old original kuery grammar (for queries like is(response, 200)). We were only using it to display an error if I user was still using the old syntax. This version of kuery hasn't existed since 6.3 and we've had error messages telling users this since then. I think it's safe to remove the legacy parser at this point, which greatly reduces the complexity of our error reporting.
2019-04-24 16:40:38 -04:00