Commit graph

40095 commits

Author SHA1 Message Date
Jonathan Budzenski
62a4266ab6 skip "Should pass the query language to the language switcher". #89603 2021-01-28 13:13:56 -06:00
Wylie Conlon
ac39321fc5
Tinymath is now a Kibana package (#89383)
* Tinymath is now a Kibana package

* Rename to @kbn/tinymath

* Update import style

* Update README

* Use commonjs import syntax

* Fix to commonjs export

* More commonjs fixes
2021-01-28 13:58:37 -05:00
Scotty Bollinger
af88e024fa
[Workplace Search] Add i18n sources components (#89571)
* Refactor Cancel button constant to shared

* Add i18n for DisplaySettings section

* Moves more shared constants to correct files

Also fixes duplicate text in ConnectInstance (was left alongside translated text below it)

* Add source overview i18n

* More refactoring of shared constants

* Add i18n to remaining shared sources components

* Fix failing test

* Fix duplicate i18n id

* Remove unused translations
2021-01-28 12:55:29 -06:00
Mike Côté
da8ce374cf
Make xpack.actions.rejectUnauthorized setting work (#88690)
* Remove ActionsConfigType due to being a duplicate

* Fix rejectUnauthorized not being configured

* Move proxySettings to configurationUtilities

* Fix isAxiosError check to code

* Add functional test

* Remove comment

* Close webhook server

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-28 13:44:25 -05:00
Candace Park
074003d4b4
[Security Solution][Endpoint][Admin] Ransomware card (#87945)
* [Security Solution][Endpoint][Admin] Ransomware card, package policy 7.12 migration
2021-01-28 13:35:06 -05:00
Jonathan Budzenski
5c709bb6cc Revert "[CI] Combines Jest test jobs (#85850)"
This reverts commit 46ac4ed7a2.
2021-01-28 12:15:45 -06:00
Jonathan Budzenski
99d1760324 Revert "[CI] Decrease number of Jest workers (#89504)"
This reverts commit b2d4412146.
2021-01-28 12:14:52 -06:00
Vadim Dalecky
10e6354d77
Expose anonymous access through a switch in sharing menu (#86965)
* feat: 🎸 add "Public URL" switch

* feat: 🎸 add url subtitle

* feat: 🎸 add public URL toggle state

* feat: 🎸 allow to dynamically enable anonymous access switch

* feat: 🎸 add anon access url parameters to share url

* fix: 🐛 correctly add params to url

* fix: 🐛 correctly add anon access to saved object URL

* fix: 🐛 don't generate anon access urls twice

* feat: 🎸 add ability to check anonymous user capabilities

* feat: 🎸 add capability checks to Discover and Visualize apps

* refactor: 💡 use early return

* test: 💍 use security_oss mocks

* feat: 🎸 add anon access url params to short url

* test: 💍 fix jest snapshots

* perf: ️ make capabilities check synchronous

* style: 💄 add stylistic review changes

* perf: ️ don't fetch anon user capabilities if anon not enabled

* fix: 🐛 in discover app check if discover exists in capabilities

* test: 💍 add tests for discover sharing check

* test: 💍 add tests for showPublicUrlSwitch checks

* feat: 🎸 make visualize capabilities props required

* style: 💄 remove unused import

* feat: 🎸 improve tooltip copy
2021-01-28 18:46:14 +01:00
Frank Hassanabad
c73000f644
Fixes one liner where the UI was not setting the threat_filters (#89519)
## Summary

Fixes: https://github.com/elastic/kibana/issues/89507

* One liner was missed on the front end to persist this
* I fixed some type script issues in the tests which lead to a few missing types in the `DefineStepRuleJson` section
* Adds a unit test for this.

Test instructions:
1. Go to manage detections
2. Create a new rule for Indicator matches
3. Add a filter and click save.
4. Re-load the rule and it should be saved now.

Repeat the steps for edit and it should also be saved there.

You should see this after a reload of the rule after a save for example:

<img width="1038" alt="Screen Shot 2021-01-27 at 4 28 51 PM" src="https://user-images.githubusercontent.com/1151048/106072458-77d1e400-60c5-11eb-8169-fcdadf0f03e7.png">

And this if you have two filters saved in the definition section of the UI:
<img width="1106" alt="Screen Shot 2021-01-27 at 4 30 10 PM" src="https://user-images.githubusercontent.com/1151048/106072539-9a63fd00-60c5-11eb-9c77-bf8224c90016.png">

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-01-28 09:55:45 -07:00
Dario Gieselaar
cd9c79bec0
[APM] Add skip() method to registry.when (#89572)
Closes #89431.
2021-01-28 17:43:51 +01:00
Aaron Caldwell
80b720da11
[Maps] Geo containment latency and concurrent containment fix (#86980) 2021-01-28 09:18:59 -07:00
Thomas Neirynck
7593cf7ea5
[Vega] use %type% in docs (#89453) 2021-01-28 11:04:23 -05:00
ncheckin
caed606fbd
Update redirects.asciidoc (#84719)
* Update redirects.asciidoc

* Update docs/redirects.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/redirects.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/redirects.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/redirects.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/redirects.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/redirects.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/redirects.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update redirects.asciidoc

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2021-01-28 09:19:18 -06:00
Jonathan Budzenski
b9fd79a9e0 skip query string input render. #85715 2021-01-28 09:07:08 -06:00
Dmitry
45eae10e36
update chromedriver dependency to 88 (#89539) 2021-01-28 15:44:29 +01:00
Juan Álvarez
77f8e62d07
update central config to include Go agent (#89445) 2021-01-28 08:42:33 -06:00
Christiane (Tina) Heiligers
681b2397c6
Migrates license_management to a TS project ref (#89472) 2021-01-28 07:39:21 -07:00
Tiago Costa
ecf7dd4628
chore(NA): add ignore and rc files for bazel (#89524)
* chore(NA): add bazel related ignore rules

* chore(NA): add bazelrc files setup

* chore(NA): reword on bazelrc comment

* chore(NA): update .eslintignore

Co-authored-by: Tyler Smalley <tylersmalley@me.com>

* chore(NA): rename .bazelrc into .bazelrc-ci

* chore(NA): update .gitignore

Co-authored-by: Tyler Smalley <tylersmalley@me.com>

Co-authored-by: Tyler Smalley <tylersmalley@me.com>
2021-01-28 14:26:01 +00:00
Stratoula Kalafateli
b4931e6f5e
Enable right click on visualizations and dashboards listings (#88936)
* Enable right-click on visualizations listing page

* Make it simpler

* Enable right click to the dashboard listing

* Add unit tests

* Fix link on dashboard

* Fix visualize link

* Fix PR comments

* Fix functional test failure

* Use kbnUrlStateStorage instead

* Change method to getDashboardListItemLink

* Change method to getVisualizeListItemLink

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-28 15:42:47 +02:00
Rudolf Meijering
8534faf7ee
migrations v2: fix snapshot builds (#89541)
* migrations v2: fix snapshot builds

* Revert "Fix sharing saved objects phase 2 CI (#89056)"

This reverts commit 8263d47d37.
2021-01-28 14:05:54 +01:00
Pierre Gayvallet
ec8738a060
add synchronous config access API (#88981)
* add synchronous config accessor

* add `config.get` to plugin context and add tsdoc

* remove useless markAsHandled calls

* fix mocks

* update generated docs

* fix unit tests

* add sync accessor for legacy config
2021-01-28 11:52:38 +01:00
Gidi Meir Morris
f3fba95955
[Task Manager] ignore version conflicts that exceed max_docs in the claiming process (#89415)
This is a first step in attempting to address the over zealous shifting we've identified in TM.

It [turns out](https://github.com/elastic/elasticsearch/issues/63671) `version_conflicts` don't always count against `max_docs`, so in this PR we correct the `version_conflicts` returned by updateByQuery in TaskManager to only count the conflicts that _may_ have counted against `max_docs`.
This correction isn't necessarily accurate, but it will ensure we don't shift if we are in fact managing to claim tasks.
2021-01-28 10:14:28 +00:00
Matthias Wilhelm
457f011151
[Discover] Add grid flyout jest test (#89088) 2021-01-28 10:16:39 +01:00
Anton Dosov
07b210e42d
[Search Sessions] Improve session restoration back button (#87635) 2021-01-28 09:54:26 +01:00
Alexey Antonov
9c410b81ca
[TSVB] Remove vis_type_timeseries_enhanced plugin (#89274)
* [TSVB] get rid of vis_type_timeseries_enhanced

* add search strategy should be called from setup hook

* remove vis_type_timeseries_enhanced from CODEOWNERS

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-28 11:10:15 +03:00
Patryk Kopyciński
d7028e1a5f
[Security Solution] Init Osquery plugin (#87109) 2021-01-28 08:24:55 +01:00
Nicolas Chaulet
9b5e41a9c5
[Fleet] Do not defined aliases inside datastream template (#89512)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-01-27 20:59:33 -07:00
spalger
4fc49ece4d skip flaky suite (#86950) 2021-01-27 20:02:12 -07:00
Tiago Costa
cf3c746eca
chore(NA): bazel machinery installation on kbn bootstrap (#89469)
* chore(NA): bazel machinery installation on kbn bootstrap

* refact(NA): simplify install logic

* chore(NA): update kbn pm with last changes
2021-01-28 00:51:01 +00:00
Jonathan Budzenski
2572cd291b
[build/docker] Add support for centos ARM builds (#84831)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-01-27 18:25:46 -06:00
CJ Cenizal
fd2e9d0821
Convert default_watch.json to a JS object in order to avoid TS complaints (#89488)
* Remove unused defaultWatchJson static member from public JsonWatch model.
2021-01-27 16:21:30 -08:00
Tyler Smalley
b2d4412146
[CI] Decrease number of Jest workers (#89504)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-01-27 16:15:28 -08:00
Nathan Reese
f2aa5bcd95
[Maps] remove maps_oss TS project (#89502) 2021-01-27 16:54:03 -07:00
Tyler Smalley
511c9913b3
Adds migration settings to Docker (#89501)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-01-27 15:48:36 -08:00
Wylie Conlon
445cb2ef87
[Lens] Fix crash in transition from unique count to last value (#88916)
* [Lens] Fix transition from unique count to last value

* Fix test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-27 18:44:17 -05:00
Brian Seeders
5ce916b308
[kbn-es] Always use bundled JDK when starting Elasticsearch (#89437) 2021-01-27 16:26:45 -05:00
Lee Drengenberg
8f3e1cf7fc
unskip getting_started/shakespeare test elasticsearch 64016 (#89346)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-27 14:55:00 -06:00
Nathan Reese
1ff4256d64
[Maps] migrate maps, maps_file_upload, and maps_legacy_licensing to TS projects (#89439)
* [Maps] migrate maps, maps_file_upload, and maps_legacy_licensing to TS projects

* include types to avoid rison import errors

* add mappings to tsconfig include
2021-01-27 13:38:16 -07:00
spalger
4499f62dcb skip flaky suite (#89478) 2021-01-27 13:08:09 -07:00
spalger
44b8333141 skip flaky suite (#89476) 2021-01-27 13:07:12 -07:00
spalger
27d9a9ddaa skip flaky suite (#89477) 2021-01-27 13:04:11 -07:00
spalger
c8ef36ab12 skip flaky suite (#89475) 2021-01-27 13:03:00 -07:00
Ryland Herrick
740155e214
Address intermittent test failure (#89367)
After observing the conditions when this test fails, it appears that
some (but not all) signals are available. As these signals are generated by a
rule via a bulk create, the odds of us retrieving signals in the middle
of that bulk creation is very slim (but not impossible).

The crux of the error here was: we wait for signals to be generated, but
not the ones that we need. Specifically, we are waiting for a single
signal to be available, but since we are asserting on sequences of
signals, we need several to be available to us.

While not perfect (because the signals we receive are not technically
guaranteed to be sequence signals), increasing the number of signals
that we wait for before proceeding should be sufficient to prevent this
failure state. In debugging, it was observed that every test returning
9-10 signals succeeded, while it was possible for the test to return
only one signal and fail.
2021-01-27 13:08:53 -06:00
Spencer
3c604438b8
[kbn/pm] throw an error if package doesn't have a script (#89438)
* [kbn/pm] throw an error if package doesn't have a script

* actually add the kbn/es build script 🤦‍♂️

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-01-27 11:22:26 -07:00
Devon Thomson
96e4bdc8ae
Dashboard - Hide Short URL Option (#89338)
* fix typo from sub-feature privileges
2021-01-27 13:06:22 -05:00
Kerry Gallagher
42a9490e7b
[Logs UI] Display category in anomalies table (#88677)
* Add category pattern to anomalies table
2021-01-27 17:58:06 +00:00
Quynh Nguyen
da9ad2ade4
[ML] Add embedded map to geo_point fields for Data Visualizer (#88880) 2021-01-27 11:39:50 -06:00
Kent Marten
723dd32693
[maps] Update point to point docs with use cases (#89246)
Co-authored-by: Kent Marten <kmartastic@users.noreply.github.com>
2021-01-27 09:34:03 -08:00
Yuliia Naumenko
466334529c
[Alerts][Actions][Telemetry] Fix mappings for Kibana actions and alert types telemetry. (#88532)
* [Alerts][Actions][Telemetry] Fix mappings for Kibana actions and alert types telemetry.

* fixed count_active_by_type for actions

* fixed tests

* Fixed due to comments.

* Fixed due to comments.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-27 09:00:50 -08:00
Yulia Čech
d931ed61e4
[ILM] Policy phases redesign (#88671)
* Phases redesign

* Title and name field layout

* Active highlight wip

* Copy comments

* Updated data allocation dropdown

* Min age error message

* Fixed tests

* Fixed edit policy integration tests

* Fixed more tests

* Cleaned up test files

* Use hotProperty instead of a string

* Clean up in phase component

* Fixed i18n files

* Updated optional fields

* Updated aria attributes after running axe tests

* Added review suggestions

* Reversed data allocation field changes

* Fixed type error

* Reversed on/off label and prepend input label

* Deleted property consts from phases components

* Removed not needed i18n consts and added i18n where missing

* Fixed merge conflicts with master

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-27 17:59:44 +01:00