Commit graph

32203 commits

Author SHA1 Message Date
James Gowdy
3d9cdffb4a
[ML] Fix expanded row bug when job has no datafeed (#68074) (#68092) 2020-06-03 17:10:31 +01:00
Justin Kambic
c9b1b782be
[Uptime] Create new atomic params type for status alerts (#67720) (#68083)
* Create new atomic params type for status alerts.

* Update executor params typing to support both alert params types.

* Update snapshot for alert factory function.

* Fix broken types and refresh snapshots.

* Clean up naming of action/selector.

* Fix a bug and add tests.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-03 11:47:01 -04:00
Joe Reuter
7d14667ec5
relax color rule validation (#67759) (#68079) 2020-06-03 16:57:05 +02:00
Justin Kambic
0883783019
[Uptime] Switch from EuiFieldNumber to EuiFieldText on settings page (#66425) (#68044)
* Switch from `EuiFieldNumber` to `EuiFieldText` on settings page.

* Add unit tests for cert form fields.

* Improve validation.

* Add additional server-side settings check with tests.

* Only create number object for validation when value is string.

* Clean up validation function.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-03 09:51:13 -04:00
Joe Reuter
884c162c0e
TSVB: handle division by zero in math agg (#67111) (#68069) 2020-06-03 15:31:15 +02:00
Joe Reuter
945a0e3c00
Deprecate kibana.defaultAppId setting (#67635) (#68070) 2020-06-03 15:31:04 +02:00
Kaarina Tungseth
6e9aaa7d9f
[7.x] [DOCS] 7.7.1 Release Notes (#67502) (#67951)
* [DOCS] 7.7.1 Release Notes

* Adds missing bug fixes
2020-06-03 08:10:30 -05:00
Joe Reuter
a1d0aa0fc9
Lens editor auto refresh (#65868) (#68061) 2020-06-03 13:15:07 +02:00
Dmitry Lemeshko
ba95e54098
[7.x] [test/functional/services] convert dashboard and pie-chart to ts (#66703) (#68025)
* [test/functional/services] convert dashboard and pie-chart to ts (#66703)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

* fix lint error

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-03 12:07:07 +02:00
Matthias Wilhelm
eb06e9867c
[Discover] Fix missing histogram time range update when query is refreshed (#67582) (#68048) 2020-06-03 11:49:11 +02:00
Liza Katz
8f1cdca8c8
Add error if filter index pattern is missing (#66979) (#68050)
* add error if filter index pattern is gone

* docs change - why?

* Fix i18n

* Added a functional test for broken filters (field + index pattern)

* Clarify readme

* Moved readme

* New warning status

* Remove getAll

* git pull upstream master

* Fix translation files

* Fix merge

* added filterbar texts

* disabled correction

* Disable check in maps test until #64861 is resolved

* Fix tests, warning state is not disabled.

* Adjust warning filter - ignore filters from "foreign" index pattern, that are still applicable

* Add an additional unrelaeted filter test

* Update src/plugins/data/public/ui/filter_bar/_global_filter_item.scss

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>

* Update src/plugins/data/public/ui/filter_bar/_global_filter_item.scss

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>

* Fixed test data

* Revert mapping

* Update data with missing test

* Update test to match data

* Code review

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-03 11:31:00 +03:00
Alejandro Fernández
0891964ce7
[7.x] [Logs UI] Ensure live stream always gets latest entries (#67935) (#67973)
LogPositionState doesn't always reevaluate the value of `endTimestamp`
when live stream is on. The [dependencies][1] for it to change rely on the
scroll position to update. If there's less than one scroll page or the
previous API call didn't return any entries, the `endTimestamp` would
not update.

We force `Date.now()` as an `endTimestamp` on the API call to ensure it
always gets the latest entries possible, regardless of the state. This
introduces some inconsistency that will be fixed once work beings on #65493.

[1]: fe4c164681/x-pack/plugins/infra/public/containers/logs/log_position/log_position_state.ts (L160-L173)
2020-06-03 09:36:57 +02:00
Christos Nasikas
15119ec713
[7.x] [SIEM] Update cypress to 4.5.0 (#67961) (#67997) 2020-06-03 09:57:50 +03:00
spalger
9a9aef648e skip flaky suite (#53749)
(cherry picked from commit fdd0c47e75)
2020-06-02 19:42:44 -07:00
Spencer
f338ef2348
[7.x] share core bundle with plugins (#67892) (#68023)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-06-02 16:00:03 -07:00
Spencer
a5d71d4b08
[7.x] [scripts/type_check] increase memory limit for all x-pack* projects (#68007) (#68016)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-06-02 15:39:01 -07:00
Ryland Herrick
11d4616c7b
[SIEM][Detections] Allow synchronous rule actions to be updated via PATCH (#67914) (#67988)
* Update synchronous actions in patchRules

This method was typed to accept actions, but it was not doing anything
with them. This was mainly a "bug by omission" so I'm simply adding
unit tests for regression purposes.

* Allow synchronous actions to be patched either individually or in bulk

Now that patchRules uses this field, we simply need to pass it.

Co-authored-by: Garrett Spong <spong@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Garrett Spong <spong@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-02 14:18:43 -05:00
Shahzad
9a39b6dd2c
[7.x] [Uptime] Fix ping io ts type (#66926) (#67993)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-02 21:06:19 +02:00
Pierre Gayvallet
0cc8aaa467
Move application.applications$ to public contract (#67463) (#67947)
* expose applications$ on public contract

* review comments
2020-06-02 20:48:40 +02:00
Chris Roberson
13346e4214
Ensure we query for more than 10 (#67172) (#67957) 2020-06-02 13:02:18 -04:00
Andrew Goldstein
f8fb57c6ce
[SIEM] Fixes column drag and drop in timeline-based views (#67799) (#67965)
## Summary

Fixes a bug in timeline-based views, (e.g. the Host Events table), where a column would revert back to it's original position after being dragged and dropped to a new position.

Only timeline-based views were effected, not the timeline itself.

To reproduce:

1) On the SIEM Overview page, click the `View events` button

2) Drag and drop any column in the Events table to a new position

**Expected Result**

- The column is relocated to the position where it was dropped

**Actual Result**

- The column reverts to it's original position

## Testing

- This PR adds a Cypress test for this scenario
  - The new test was successfully run (at least) 10 times via `node x-pack/plugins/siem/scripts/loop_cypress_tests.js`

- This fix was desk tested in:
  - Chrome `83.0.4103.61`
  - Firefox `76.0.1`
  - Safari `13.1`
2020-06-02 10:47:51 -06:00
Nathan Reese
d383ffd75b
[Maps] fix mapbox glyphs error when EMS access is turned off (#67427) (#67956)
* [Maps] fix mapbox glyphs error when EMS access is turned off

* santize range parameter

* add api test

* clean up mapbox view

* add jest test for getGlyphsUrl

* add license file

* remove unneeded font files

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-02 10:33:18 -06:00
Joe Portner
0e1fc4b98d
Fix authentication loop when upgrading Kibana from 6.8 to 7.7+ (#67687) 2020-06-02 12:19:00 -04:00
Victor Martinez
c16be20e8e
[7.x] ci(jenkins): use APM e2e in the CI (#61803) #67948 2020-06-02 16:48:05 +01:00
Sandra Gonzales
2d22ab8881
install default packages in parallel (#67893) (#67941) 2020-06-02 10:20:06 -04:00
Yuliia Naumenko
3e90efa659
Changed alerting API endpoints urls, bodies and params to follow Kibana STYLEGUIDE (#66838) (#67919)
* Changed alerting API endpoints urls, bodies and params to follow Kibana STYLEGUIDE

* Changed alerting REST API to keep the pattern 'alerts/alert/{id}'

* fixed tests

* fixed tests

* Fixed jest tests

* Renamed plugin from alerting to alerts

* fixed tests

* fixed tests

* Fixed alert type check error

* Fixed find api

* fixed type checks

* fixed tests security issues

* Fixed view in app

* -

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	.github/CODEOWNERS
#	rfcs/text/0003_handler_interface.md
2020-06-02 07:12:52 -07:00
Mariana Dima
b23972906b
[7.x] Add IIS metrics tutorial for logs in Kibana Home/ Add data area #66918 (#67934)
* add IIS home (#66918)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 15cd65896b)

* remove listing of azureLogsSpecsProvider
2020-06-02 16:04:09 +02:00
Josh Dover
61d89506a3
[7.x] Fix typos (#66984) (#67550)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Ryder Timberlake <wrtimberlake@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-02 07:57:55 -06:00
Stratoula Kalafateli
35699d188c
Fix bug in tsvb metric add color rules (#67763) (#67929)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-02 16:26:44 +03:00
Dario Gieselaar
8dbd3af63b
[7.x] [APM] Correctly format url when linking to apps (#67446) (#67752)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-02 14:25:59 +02:00
Mariana Dima
6b4abb8338
add azure logs home (#66910) (#67933)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 9d84a866be)
2020-06-02 14:00:52 +02:00
Mariana Dima
65728e1b9c
Fix Azure metrics tutorial inside the App Home/ Add data area (#66901) (#67928)
* fix azure metrics home data

* fix translations

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 7dc3da4177)
2020-06-02 14:00:16 +02:00
Shahzad
a5468d0c48
[7.x] [Uptime] Use date histogram in monitor states (#67558) (#67890)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-02 13:30:41 +02:00
patrykkopycinski
fce84b7a7e
[SIEM] Fix draft timeline can be attached to a case (#67844) (#67927) 2020-06-02 13:30:06 +02:00
MadameSheema
27cadbb16a
[SIEM] Covers 'Import query from saved timeline' functionality with Cypress (#67459) (#67820)
* modifies 'Creates and activates a new custom rule' test to cover 'import query from saved timeline' functionality

* adds missing files

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-02 11:54:43 +02:00
Mikhail Shustov
c1edded639
Deprecate es API exposed from setup contract (#67596) (#67924)
* move elasticsearch client under legacy namespace

* update mocks and tests

* update platform code

* update legacy code

* update plugins using elasticsearch setup API

* update request handler context

* update docs

* rename remaining places

* address comments

* fix merge conflict error
2020-06-02 11:18:08 +02:00
Jean-Louis Leysens
8e2a34f9d9
Added autocompletion for update by query (#67741) (#67849)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-02 10:11:11 +02:00
Quynh Nguyen
cae18314b2
[7.x] [ML] Add ability to delete target index & index pattern when deleting DFA job (#66934) (#67875)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-01 23:05:44 -05:00
Joel Griffith
0347989933
[7.x] [Reporting]: Move router + license checks to new platform (#66331) (#67818)
* [Reporting]: Move router + license checks to new platform (#66331)

* WIP: Move routes to new API, license and other checks inbound

* Move license checks over to np licensing observable

* Fix license checks + remove older modules

* Fixing check_license tests, move to TS/Jest

* Fix licensing setup for mocks

* Move job.test.ts over to np

* WIP: move user checks to higher-order func

* Move more handler logic over to Response factory vs Boom

* Major refactor to consolidate types, remove facades, and udpate helpers

* Fix validation for dates in immediate exports

* Linter fix on check license test

* Fix job generation tests

* Move deps => setupDeps

* fix api test

* fix jobs test

* authorized_user_pre_routing and tests

* Fixing duplicate identifiers

* Fix licensing implementation changes

* WIP: Moving license over to async/observables

* Fix disabled-security case

* finish auth_user_pre_routing cleanup - no more license check

* WIP: Fixing final api tests

* Trying to get schema differences in alignment

* Reverting back to previous generation handler

* Fix final API tests

* Final API test fixes, few more hardening tests and better error messages

* Simplify lower-level module implementation (core only interface) + test updates

* Push some core logic into plugin

* Move some core logic up to plugin

* Marking private setupDeps + downstream fixes

* revert logger as a param

Co-authored-by: Timothy Sullivan <tsullivan@elastic.co>
# Conflicts:
#	x-pack/legacy/plugins/reporting/export_types/printable_pdf/server/create_job/index.ts
#	x-pack/legacy/plugins/reporting/server/routes/generation.ts

* Add back in legacy /viz /search and /dashboard routes

* Add back in and fix compatibility shim/tests
2020-06-01 18:09:01 -07:00
Frank Hassanabad
3ea33a3b6d
[SEIM][Detection Engine] Moves the io-ts schemas to the common folder from the server side (#67913)
## Summary

This moves the io-ts schemas from the common folder from the server side up to the common folder.

### Checklist

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
2020-06-01 18:24:14 -06:00
Lisa Cawley
bf6fbf5105
[DOCS] Replace docdir attribute with kib-repo-dir (#67907) (#67910) 2020-06-01 15:51:19 -07:00
Tiago Costa
454be99b5a
skip flaky suite (#67821)
(cherry picked from commit 071f7ef20b)
2020-06-01 22:58:43 +01:00
Wylie Conlon
6fd42d2615
[Lens] Warn if leaving with unsaved visualization (#67689) (#67900)
* [Lens] Warn if leaving with unsaved visualization

* Made confirmation logic more robust and add title

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-01 17:54:26 -04:00
Corey Robertson
e7d747bd69
[Canvas] Reduce Bundle Size (#66099) (#67866)
* Move some code around to reduce bundle size

* prettier

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-01 17:11:35 -04:00
Spencer
586e174785
[7.x] [kbn/optimizer] update public path before imports (#67561) (#67807)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-06-01 13:51:26 -07:00
Quynh Nguyen
5b0cfad3f5
[7.x] [ML] Add minor refresh button to DFA and AD Job Messages tabs (#67750) (#67877)
* [ML] Add minor refresh button to DFA and AD Job Messages tabs

* [ML] Update refresh logic for DFA

[ML] Update refresh logic for DFA

* [ML] Update fetchMessages callback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-01 15:31:27 -05:00
Yara Tercero
4d50aac3d6
[SIEM][Exceptions] - Update exceptions hooks to include _find filtering (#67435) (#67888)
### Summary 

- Updates exception list hooks to include filtering options and updates corresponding unit tests.
- Adds refreshList callback to hook that fetches the list and its items
- Updates hooks tests to test onError callback
- Updates tests to use type checking more effectively per feedback from @FrankHassanabad (thanks!)
2020-06-01 16:30:52 -04:00
Wylie Conlon
e6894eeb9e
[Lens] Allow visualizations to provide a dimension editor (#67560) (#67885)
* [Lens] Allow visualizations to provide a dimension editor

* Update to tab style

* Remove table update

* Update class name

* typecheck fix

* Add test

* Require each dimension group to enable editor

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>
2020-06-01 15:37:05 -04:00
Brandon Kobel
3e2a52acc3
Updating the licensed feature usage API response format (#67712) (#67880)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-01 12:11:31 -07:00
Sandra Gonzales
fb192e262c
[Ingest Manager] Optimize installation of integration (#67708) (#67868)
* call getArchiveInfo once first, pass paths to template

* pass paths to installPreBuiltTemplates

* pass paths to installILMPolicy

* pass paths to ingest pipeline creation

* use correct package key for cache

* pass paths to kibana assets

* cache other installed packages

* create function for ensuring packages are cached

* remove unused imports

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-01 13:41:10 -04:00