Commit graph

38724 commits

Author SHA1 Message Date
Scotty Bollinger
235f786c3e
[Workplace Search] Migrate Sources Schema tree (#84847)
* Initial copy/paste of component tree

Only does linting changes and:
- lodash imports
- Replace unescaped apostrophes with '
- Fix ternary function call to if block:

 if (isAdding) {
  actions.onSchemaSetFormErrors(errors);
} else {
  actions.onSchemaSetError({ flashMessages: { error: errors } });
}

* Remove local flash messages from component

* Update paths

- Adds getReindexJobRoute method to routes
- Repalces legacy Rails routes helper with hard-coded paths

* Add types and constants

* Update paths

* Replace local flash message logic with gobal

* Update with newly added types

Added here: https://github.com/elastic/kibana/pull/84822

* Update server routes

* Replace Rails http with kibana http

* Set percentage to 0 when updating

Without this, the IndexingStatus never shows.

* Fix route paths

* Fix server route validation

The empty object was breaking the UI since `schema.object({})` is actually an empty object. This is more explicit and correct.

* Add i18n

* Make sure i18n key is unique

* Lint
2020-12-03 10:13:22 -06:00
Joe Portner
c39d14fef4
Disable checking for conflicts when copying saved objects (#83575) 2020-12-03 11:08:25 -05:00
Kevin Logan
ac71d2e941
[SECURITY_SOLUTION] delete advanced Policy fields when they are empty (#84368) 2020-12-03 10:57:27 -05:00
Joe Portner
0bd928184c
y18n 4.0.0 -> 4.0.1 (#84905) 2020-12-03 10:56:41 -05:00
Luke Elmers
d2fc976b09
[data.search][data.indexPatterns] Expose esaggs + indexPatternLoad on the server. (#84590) 2020-12-03 08:28:50 -07:00
Gidi Meir Morris
eb0569b1ff
[Alerting][Event Log] ensures we wait for the right number of events in test (#84189)
Keeps the exact same assertions, but ensures the retry loop waits for them to complete so we don't assert too soon.
2020-12-03 15:13:59 +00:00
Luke Elmers
7393c230a4
[data.search.searchSource] Update SearchSource to use Fields API. (#82383) 2020-12-03 08:09:23 -07:00
Sébastien Loix
e83bbfd289
[Runtime fields] Add support in index template (#84184)
Co-authored-by: Adam Locke <adam.locke@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-03 15:59:20 +01:00
Tiago Costa
43dd4876f2
skip flaky suite (#84906) 2020-12-03 14:50:00 +00:00
Matthias Wilhelm
95f8d9d1dd
[Discover] New responsive layout using EUI components (#83633)
Co-authored-by: Andrea Del Rio <delrio.andre@gmail.com>
Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Michail Yasonik <michail.yasonik@elastic.co>
Co-authored-by: Dave Snider <dave.snider@gmail.com>
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>
2020-12-03 15:42:45 +01:00
Brandon Kobel
f9ade905a2
Deprecate reporting.index setting (#84005)
* Deprecating `xpack.reporting.index` setting

* Adding unit test

* Now with more standard deprecation messages

* Updating the xpack.reporting.index docs

* Fixing tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-03 06:42:32 -08:00
Marta Bondyra
145c0a5128
Revert "[Lens] (Accessibility) Focus mistakenly stops on righthand form (#84519)" (#84866)
This reverts commit a9845c6fc2.
2020-12-03 14:12:14 +01:00
Marta Bondyra
487eb2e4e4
[Lens] accessibility screen reader issues (#84395)
* [Lens] accessibility screen reader issues

* fix i18n

* fix: no aria-label on divs

* cr fixes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-03 13:28:41 +01:00
Felix Stürmer
3cb26ebe8d
[Logs UI] Fetch single log entries via a search strategy (#81710)
This replaces the log item API with a single-log-entry search strategy. This is used to fetch the data for display in the details flyout. There should be no significant visual difference to the user.
2020-12-03 13:05:15 +01:00
Vadim Dalecky
bb76989582
fix: 🐛 don't add separator befor group on no main items (#83166)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-03 11:51:56 +01:00
MadameSheema
37e907078c
[Security Solution][Detections] Implements indicator match rule cypress test (#84323)
* implemnts indicator match rule cypress test

* fixes merge issue

* fixes type check issues

* fixes mapping

* simplifies data

* fixes excpetions flakiness

* fixes alerts test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-03 11:48:40 +01:00
eyalkoren
f5fb14f07a
[APM] Add APM agent config options (#84678) 2020-12-03 12:22:38 +02:00
Yulia Čech
bec33426eb
Fixed a11y issue on rollup jobs table selection (#84567)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-03 11:21:04 +01:00
Matthias Wilhelm
ae463cf1d7
[Discover] Refactor getContextUrl to separate file (#84503) 2020-12-03 11:13:55 +01:00
Marco Liberati
17d986e499
[Embeddable] Export CSV action for Lens embeddables in dashboard (#83654)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-03 10:46:51 +01:00
Alexey Antonov
f1495eda1f
[TSVB] [Cleanup] Remove extra dateFormat props (#84749) 2020-12-03 12:34:31 +03:00
Joe Reuter
9041ea5478
[Lens] Migrate legacy es client and remove total hits as int (#84340) 2020-12-03 09:41:45 +01:00
Thomas Watson
3ae73653ff
Improve logging pipeline in @kbn/legacy-logging (#84629) 2020-12-03 09:34:45 +01:00
Thomas Watson
770a00530d
Catch @hapi/podium errors (#84575) 2020-12-03 09:33:48 +01:00
Matthias Wilhelm
155d150a08
[Discover] Unskip date histogram test (#84727) 2020-12-03 09:23:14 +01:00
Mikhail Shustov
78123a109d
Rename server.xsrf.whitelist to server.xsrf.allowlist (#84791)
* rename xsrd.whitelist to xsrf.allowlist

* update docs

* update telemetry schema

* update kbn-config tests
2020-12-03 07:19:36 +01:00
Scotty Bollinger
9cbf971427
[Enterprise Search] Fix schema errors button (#84842)
* Fix schema errors button

When migrated, the button was wrapping the link and it should be the other way around. This caused a blue link color.

* Remove redundant true value

* TIL EuiButtonTo
2020-12-02 21:19:52 -06:00
Tyler Smalley
401047e9b1
[APM] Removes react-sticky dependency in favor of using CSS (#84589)
Closes #84521

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-12-02 16:55:58 -08:00
Thomas Neirynck
65cbe4c393
[Maps] Always initialize routes on server-startup (#84806) 2020-12-02 18:44:17 -05:00
Sandra Gonzales
a5dd5b6998
[Fleet] EPM support to handle uploaded file paths (#84708)
* modify file route to handle uploaded packge file paths

* update messaging

* improve tests

* fix bug and add test to check the version of the uploaded package before failing

* fix similar bug for getting package info from registry when a different version is uploaded
2020-12-02 18:33:27 -05:00
Alison Goryachev
23dccb7c1c
[Snapshot Restore] Fix initial policy form state (#83928) 2020-12-02 17:41:19 -05:00
Thomas Watson
fb48e903d5
Upgrade Node.js to version 14 (#83425) 2020-12-02 23:40:06 +01:00
Dan Panzarella
e1944342af
[Security Solution] Keep Endpoint policies up to date with license changes (#83992) 2020-12-02 17:30:44 -05:00
Marshall Main
d47c70cd53
[Security Solution][Exceptions] Implement exceptions for ML rules (#84006)
* Implement exceptions for ML rules

* Remove unused import

* Better implicit types

* Retrieve ML rule index pattern for exception field suggestions and autocomplete

* Add ML job logic to edit exception modal

* Remove unnecessary logic change

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-02 17:14:19 -05:00
Scotty Bollinger
4f3d72b413
[Enterprise Search] Move schema types to shared (#84822)
* Move schema types to shared

We use the Schema types in Workplace Search as well, so moving these to shared. Also, we have a component called IndexingStatus so reverting to the prefixed IIndexingStatus interface name

* Fix misspelled interface
2020-12-02 15:34:19 -06:00
Tyler Smalley
b593781009
Jest multi-project configuration (#77894)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-12-02 11:42:23 -08:00
Paul Tavares
2ffdf75b6e
[SECURITY_SOLUTION] Enable usage of the Endpoint Policy form from Fleet (#84684)
* Endpoint: add `withSecurityContext` HOC + refactor endpoint policy edit lazy component to use it
* Endpoint: refactor Policy Details to separate form from view
* Endpoint: Enable the Redux store for the Policy form when displayed via Fleet
* Fleet: Allow partial package policy updates to be sent via `onChange()`
2020-12-02 14:37:36 -05:00
Quynh Nguyen
0e43beed4f
[ML] Fix prediction probability text for classification (#84593)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-02 13:35:38 -06:00
Scotty Bollinger
b6913a3d2e
[Enterprise Search] Convert IndexingStatus to use logic for fetching (#84710)
* Add IndexingStatusLogic

* Replace IndexingStatusFetcher with logic

* Refactor out unnecessary conditional

onComplete is not optional so these if blocks can be consolidated

* Misc styling - destructuring and typing

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

* Misc styling - imports

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

* Remove div

* Refactor test

* Replace method with string for statusPath

In ent-search, we use Rails helpers to generate paths. These were in the form of routes.whateverPath(). We passed these method to the IndexingStatus component to generate the app-specific rotues in the shared component.

In Kibana, we will not have these generators and should instead pass the path strings directly

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2020-12-02 13:34:07 -06:00
Mikhail Shustov
88359b742a
Improve ui settings performance (#84513)
* remove unused parameter in "read" function

* add cache for uiSettings client

* add tests for ui_settings client caching

* address comments

* do not mutate ui_settings_client cache
2020-12-02 20:15:25 +01:00
Marta Bondyra
6900ce2b96
[Lens] Provide single-value functions to show the "First" or "Last" value of some field (#83437) 2020-12-02 19:55:58 +01:00
Bohdan Tsymbala
7f969136a3
Added migration of policy for AV registration config. (#84779)
* Added migration of policy for AV registration config.

* Updated migration a bit to be more safe.
2020-12-02 18:55:08 +01:00
Spencer
b96b965387
[build/node] log url when downloading node shasum info (#84692)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-02 10:06:33 -07:00
Larry Gregory
a20709cce6
Deprecate disabling the spaces plugin (#83984)
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
2020-12-02 12:00:14 -05:00
ymao1
cbc61afcce
[Task Manager] Skip removed task types when claiming tasks (#84273)
* Checking if task type is in registered list

* Loading esArchiver data with removed task type for testing

* PR fixes
2020-12-02 11:49:24 -05:00
Mikhail Shustov
d990b27ab2
bump es-js version (#84770) 2020-12-02 17:28:46 +01:00
Wylie Conlon
c73de26773
[Lens] Refactor function selection invalid state (#84599)
* [Lens] Refactor function selection invalid state

* Fix types per review comment
2020-12-02 11:16:59 -05:00
Kaarina Tungseth
a38a9d3e03
[DOCS] Fix Creaxes Logstash pipeline API page (#84780) 2020-12-02 09:39:26 -06:00
Bhavya RM
d481adc75f
Test user assignment to embeddable maps tests (#84383) 2020-12-02 10:30:27 -05:00
Vadim Dalecky
cc341b3235
Telemetry for Dyanmic Actions (Drilldowns) (#84580)
* feat: 🎸 set up telemetry for UiActions

* feat: 🎸 improve ui_actions_enhanced collector

* feat: 🎸 namespace ui actions telemetry stats

* refactor: 💡 improve dynamic actions collector setup

* feat: 🎸 add tests for dynamicActionsCollector

* feat: 🎸 collect dynamic action trigger statistics

* refactor: 💡 standartize metric naming

* feat: 🎸 aggregate action x trigger counts

* test: 💍 add tests for factory stats

* docs: ✏️ add ui actions enhanced telemetry docs

* fix: 🐛 revert type change

* refactor: 💡 make dynamic action stats global

* refactor: 💡 use global telemetry stats in action factories
2020-12-02 16:06:18 +01:00