Commit graph

43825 commits

Author SHA1 Message Date
Peter Pisljar 9a1f5a4a7a
switching to peggy (#103169) 2021-06-24 12:23:41 +02:00
Ignacio Rivas 4c2449fd28
[Ingest pipelines] add extract_device_type to user agent processor (#100986)
* testing layouts

* fix copy for beta badge

* replace hardcoded text with i18n strings

* avoid updating types and just replace label

* Small cr changes

* get rid of style prop and just use a smaller badge
2021-06-24 11:55:28 +02:00
Joe Reuter 59d422394a
[Lens] Move empty string handling into field formatter (#102877) 2021-06-24 11:43:33 +02:00
Stratoula Kalafateli 1d2cebafd2
[VisTypePie] Use a different advanced setting for pie charts (#103049)
* Different switch for pie

* Remove unused translations

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 12:33:35 +03:00
Matthias Wilhelm 507ab0e8d0
[Discover] Add right permission for unmapped field test in cloud env (#102853) 2021-06-24 11:29:23 +02:00
Matthias Wilhelm 8298b78a62
[Discover] Unskip and improve sidebar filter functional test (#102986) 2021-06-24 11:23:41 +02:00
Robert Oskamp 6a1e4b8d4d
[ML] Functional tests - fix and re-enable close_jobs API tests (#103114)
This PR fixes and re-enables the close_jobs API tests after a backend change.
2021-06-24 10:58:18 +02:00
Liza Katz 01a486000e
[Search Sessions] Split tasks (#99967)
* cancel the previous session

* split to 3 tasks

* fixes

* cancellation

* updated tests

* split out and improve jest tests

* cleanup previous session properly

* don't fail delete and cancel if item was already cleaned up

* test

* test

* ignore resource_not_found_exception when deleting an already cleared \ expired async search

* jest

* update jest

* api int

* fix jest

* testssss

* Code review @dosant

* types

* remove any

* Fix merge

* type

* test

* jest

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 10:50:09 +03:00
Joe Reuter aee0585bc5
[Lens] Do not reset columns on incomplete switch before closing flyout (#102876) 2021-06-24 09:35:33 +02:00
Alexander Wert 2368e63668
Exploratory View Mobile: Renamed Latency and Throuput labels to align with metric names in APM (#102711) 2021-06-24 08:27:05 +02:00
Constance 91ca373000
Convert our full page Loading component to an Enterprise Search logo (#103189)
- while keeping our component-level LoadingOverlay to a spinner
2021-06-24 01:11:17 -04:00
Constance 023b163ae0
[App Search] Refactor empty engine polling to EngineLogic (#103041)
* Set up isEngineEmpty and isEngineSchemaEmpty selectors

+ update selector tests with mock engines to just an `engine` var (I saw Jason do this down below for `searchKey` and liked it, so I copied it)
+ update Documents & Search UI pages to new selectors

* Update EngineOverview to use isEngineEmpty + remove polling

- Per Casey, polling is primarily only needed to dynamically update from empty state to non-empty state, which we're going to handle at the engine level in the next commit

* Add empty engine polling behavior

- Now that both Engines Overview, Documents, and Search UI views have empty states that are hooked up to EngineLogic, this poll will update all of the above pages automatically when a new document comes in!

* [Misc UI polish] Add (+) icon to Index documents button

- to match other create page header buttons

* [PR feedback] Test improvements

Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>
2021-06-24 01:04:08 -04:00
Jason Stoltzfus da7cdb67b7
[App Search] Fixed Documents view for Editor and Analyst roles (#103113)
* Updated search-ui version

1.6.0 adds the ability to authenticate without a search key, which
we need for this fix.

* Updated Documents page to not use a search key

This change updates the page to rely on basic authentication rather
than a search key.

As part of that, we needed to create a proxy endpoint for search-ui
to post to, rather than going directly to the ent-search API.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 01:02:46 -04:00
Tiago Costa 17adfacb1b
chore(NA): moving @kbn/cli-dev-mode into bazel (#103067)
* chore(NA): moving @kbn/cli-dev-mode into bazel

* chore(NA): merge and solve conflicts with master
2021-06-23 23:50:49 -04:00
Tiago Costa 59423927cb
chore(NA): moving @kbn/plugin-helpers into bazel (#103181)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-23 23:49:04 -04:00
Tyler Smalley d5a760cfd9
[test] Migrates visualize esArchive to kbnArchiver (#102850)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-06-23 21:12:56 -04:00
Clint Andrew Hall 0669895137
[canvas] Reduce bundle size by co-locating strings with components (#103013) 2021-06-23 17:04:19 -05:00
Nathan Reese 1e7ef987be
[Maps] fix save to maps for by_value map embeddables (#102968)
* [Maps] fix save to maps for by_value map embeddables

* show the save as dialog with the option to update Panel on dashboard

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-23 14:24:24 -06:00
Greg Thompson 136d361703
Upgrade EUI to v34.3.0 (#101334)
* eui to v34.1.0

* styled-components types

* src snapshot updates

* x-pack snapshot updates

* eui to v34.2.0

* styled-components todo

* src snapshot updates

* x-pack snapshot updates

* jest test updates

* collapsible_nav

* Hard-code global nav width for bottom bar’s (for now)

* Update to eui v34.3.0

* flyout unmock

* src flyout snapshots

* remove duplicate euioverlaymask

* xpack flyout snapshots

* remove unused import

* sidenavprops

* attr updates

* trial: flyout ownfocus

* remove unused

* graph selector

* jest

* jest

* flyout ownFocus

* saved objects flyout

* console welcome flyout

* timeline flyout

* clean up

* visible

* colorpicker data-test-subj

* selectors

* selector

* ts

* selector

* snapshot

* Fix `use_security_solution_navigation` TS error

* cypress

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
2021-06-23 15:10:34 -05:00
Scotty Bollinger 2366683209
[Enterprise Search] Add shared Users components and enable RBAC functionality (#102826)
* Add RolesEmptyPrompt component

* Move constants to shared

Will be used in next commit so DRYing them out here

* Add UserAddedInfo component

* Add UsersEmptyPrompt component

* Add UserInvitationCallout component

* Add some shared types

* Add UserSelector component

* Fix imports from a previous commit

Refactored these to shared but missed updating the implementation. See e2d3ec2ca4aba3cb6f7e8e2d2d2da96aa6bedf1b

* Add UsersHeading component

* Add UserFlyout component

* Update UsersAndRolesRowActions with confirm modal

Design calls for using a custom call out instead of window.confirm

* Add pagination size and fix type

- email can be null on bult-in elasticsearch users

* Add UsersTable component

* Remove window.confirm from logic files

The UsersAndRolesRowActions component now uses an EUI prompt for this. Whitespace changes should be hidden for this commit

* Add routes for enabling RBAC

* Update App Search routes

https://github.com/elastic/ent-search/pull/3862

added the ‘/as’ prefix to App Search role mappings routes

* Add logic for enabling role-based access

* Pass docsLink as a prop to the heading component

* Add empty states to mappings landing pages

* Fix a couple of missed i18ns

* Remove unused translations

* Remove EuiOverlayMask

This was needed in ent-search because it uses an older EUI. The newer confirm modal has its own overlay

* Update RoleMappingsTable to use new design

Previously, we showed all engines/groups in the table but the new design calls for a truncated list with additional items so [‘foo’, ‘bar’, ‘baz’]  would display as “foo, bar + 1”

This is already in place for the users table

* Lint fix

* Another lint fix

* Fix test name

Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>

* Move test

Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>
2021-06-23 15:43:17 -04:00
Liza Katz 77fe1c1087
[Query] Use a minimal index pattern interface for es query (#102364)
* Move JSON utils to utils package

* Imports from tests

* delete

* split package

* docs

* test

* test

* imports

* minimal index pattern

* move some functions out and use miniaml ip in all es-kuery

* docs

* docs

* rename

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-23 22:40:56 +03:00
Steph Milovic 2dc1715a8a
[Security Solution] [Cases] Swimlane Connector for Cases (#100086)
Co-authored-by: Josh <josh.rickard@swimlane.com>
Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-23 22:14:43 +03:00
Jorge Sanz 1813d70b3d
[Maps] Duplicated EMS instructions for Elastic Cloud (#103124) 2021-06-23 21:12:05 +02:00
Tim Sullivan eb7e0fa5f1
Reporting: Check for pending jobs scheduled with ESQueue (#101447)
* Reporting: Check for pending jobs scheduled with ESQueue

* Update x-pack/plugins/reporting/server/lib/tasks/execute_report.ts

Co-authored-by: Vadim Dalecky <streamich@gmail.com>

* update test assertions, use more explicit types

* update comment

* Update x-pack/plugins/reporting/server/lib/store/store.ts

Co-authored-by: Vadim Dalecky <streamich@gmail.com>

* fix field mapping

* Update x-pack/plugins/reporting/server/lib/store/store.ts

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>

* Report also implements ReportDocumentHead

* the actual ID of the task is prefixed with `task:`

* remove pointless update to the report instance after failing

* comment clarification

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Vadim Dalecky <streamich@gmail.com>
Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
2021-06-23 12:06:23 -07:00
John Schulz bb7bff5c96
[Fleet] Add UI and mappings for agent policy unenroll_timeout (#102970)
## Summary

closes https://github.com/elastic/kibana/issues/100617

UI and mappings related to ephemeral agents

- [x] Adds mapping/type/schema definition for the new field in agent policy saved object
- [x] Shows input field labelled `Unenrollment timeout` in agent policy settings that reads/writes to the new field
- [x] Same input in `Advanced options` section of create agent flyout
- [x] `unenroll_timeout` can be set using preconfigured agent policies defined in `kibana.yml`
- [x] `unenroll_timeout` can be populated if the user has a preconfigured policy that _does not_ have this field initially, but then updates their `kibana.yml` later to include it

<details><summary>Screenshot - editing an existing agent policy</summary>

<img width="1251" alt="Screen Shot 2021-06-22 at 1 42 50 PM" src="https://user-images.githubusercontent.com/57655/122974924-d479b800-d360-11eb-8d37-306a6860f140.png">

</details>


<details><summary>Screenshots - adding a new agent policy</summary>
<img width="1258" alt="Screen Shot 2021-06-22 at 1 45 01 PM" src="https://user-images.githubusercontent.com/57655/122975141-0be86480-d361-11eb-9ccb-dde0cc44e438.png">
<img width="1257" alt="Screen Shot 2021-06-22 at 1 45 35 PM" src="https://user-images.githubusercontent.com/57655/122975139-0be86480-d361-11eb-90ae-3541dbbd68e6.png">
<img width="1258" alt="Screen Shot 2021-06-22 at 1 45 44 PM" src="https://user-images.githubusercontent.com/57655/122975138-0b4fce00-d361-11eb-8347-d6f0cb43ab91.png">
<img width="1254" alt="Screen Shot 2021-06-22 at 1 45 56 PM" src="https://user-images.githubusercontent.com/57655/122975136-0b4fce00-d361-11eb-9c51-ec7a9e52ea2b.png">
</details>

<details><summary>Using <code>kibana.dev.yml</code></summary>

<h3>No <code>unenroll_timeout</code></h3>

```yml
xpack.fleet.agentPolicies:
  - name: Preconfigured Policy From Config
    description: From kibana.dev.yml (no timeout given)
    id: 1
    namespace: test
    package_policies:
      - package:
          name: system
        name: System Integration
        inputs:
          - type: system/metrics
            enabled: true
            vars:
              - name: system.hostfs
                value: home/test
            streams:
              - data_stream:
                  dataset: system.core
                enabled: true
                vars:
                  - name: period
                    value: 20s
          - type: winlog
            enabled: false
```

<h4>UI (saved object)</h4>
<img width="1072" alt="Screen Shot 2021-06-23 at 10 28 03 AM" src="https://user-images.githubusercontent.com/57655/123117442-bf0f9700-d40f-11eb-8e8f-685fee3ccb4b.png">

<h4><code>fleet-policies</code>index</h4>
<img width="1690" alt="Screen Shot 2021-06-23 at 10 52 39 AM" src="https://user-images.githubusercontent.com/57655/123119430-883a8080-d411-11eb-990f-4953845a76b5.png">


<h4>Updated <code>kibana.dev.yml</code> to include <code>unenroll_timeout</code></h4>

```yml
xpack.fleet.agentPolicies:
  - name: Preconfigured Policy From Config
    description: From kibana.dev.yml (updated with timeout)
    id: 1
    namespace: test
    unenroll_timeout: 234
    package_policies:
      - package:
          name: system
        name: System Integration
        inputs:
          - type: system/metrics
            enabled: true
            vars:
              - name: system.hostfs
                value: home/test
            streams:
              - data_stream:
                  dataset: system.core
                enabled: true
                vars:
                  - name: period
                    value: 20s
          - type: winlog
            enabled: false
```

<h4>UI (saved object)</h4>
<img width="1073" alt="Screen Shot 2021-06-23 at 10 35 17 AM" src="https://user-images.githubusercontent.com/57655/123117444-bfa82d80-d40f-11eb-94a9-99d4ca4bed2a.png">

<h4><code>fleet-policies</code>index</h4>
<img width="1690" alt="Screen Shot 2021-06-23 at 10 35 41 AM" src="https://user-images.githubusercontent.com/57655/123117446-bfa82d80-d40f-11eb-9563-1add80f43f0e.png">

</details>

### Checklist
- [ ] [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-06-23 14:46:04 -04:00
ymao1 874dfc62f4
[Actions] Rename tls.* configs to ssl.* (#102902)
* Changing tls to ssl

* Changing tls to ssl

* Updating docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-23 14:37:31 -04:00
Quynh Nguyen 73382cebaf
[ML] Add Index Pattern Management to Index Data Visualizer (#101316)
* [ML] Add index pattern editor flyout

* [ML] Add indexPatternField editor plugin as opt dependency

* [ML] Remove lens from ML's dependency

* [ML] Fix custom display name cause field to be missing

* [ML] Add delete option

* [ML] Fix aggregatableFields logic

* [ML] Add functional tests

* [ML] Fix labels & consolidate addRuntimeFields

* [ML] Add tooltip to show or hide distributions

* Consolidate refreshPage

* [ML] Fix tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-23 13:36:26 -05:00
Constance 391d0eca27
[App Search] Remove external "Launch App Search" button (#100815)
* Remove markup

* Remove i18n translations

* Remove telemetry metric
2021-06-23 14:30:36 -04:00
Wylie Conlon 4d514c6db6
[Lens] Escape field names in formula (#102588)
* [Lens] Escape field names in formula

* Fix handling of partially typed fields with invalid chars

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-23 14:20:50 -04:00
Josh Dover 524401973f
Add timeouts and setup enforcement for custom plugins statuses (#77965) 2021-06-23 13:58:10 -04:00
Constance 045a32b054
[Enterprise Search] Support active nav links that have both subnav & non-subnav child routes (#103036)
* Update generateNavlink to take an `items` subNav and use it to determine isSelected

+ change getNavLinkActive to early returns
+ tweak tests for readability

* Update WS nav Sources link
- to show active on creation routes but not on single source routes

* Update AS nav Engines link
- should eventually show active on creation routes but not on single engine routes

* Update AS engine creation routing
- so that it correctly shows as a child route of the Engines link

+ update breadcrumbs
2021-06-23 10:22:04 -07:00
Nicolas Chaulet 3864fe1559
[Fleet] Add global component template to all fleet index templates (#102225) 2021-06-23 13:18:37 -04:00
Shahzad 293dc95f8a
[Exploratory view] Refactor code for multi series (#101157)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-23 19:07:57 +02:00
Tyler Smalley 52d5b9d51d
[docker] Removes setting with hyphen (#103085)
This setting is causing an error to be throw as it's being used in an environment variable.

Created https://github.com/elastic/kibana/issues/103084

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-06-23 12:58:51 -04:00
Thomas Neirynck 3c780a8505
[Maps] Use id-values from client-manifest to suggest layers (#102788) 2021-06-23 18:56:15 +02:00
Nathan Reese 81fe54109e
Mask timeslider (#102046)
* [Maps] timeslider feature mask

* create mask

* include timeField in documntes pulled from es

* fix edge case where timerange is different then timeslice

* tslint

* fix can_skip_fetch jest tests

* simplify source mock

* fix functional tests

* fix docvalue_fields functional test

* review feedback

* do not add method to IVectorLayer interface

* fix merge artifact

* review feedback

* review feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-23 10:33:57 -06:00
Devon Thomson 3dc59a30aa
Lens on Dashboard 7.12.1 Smoke Tests (#102667)
* added smoke tests for lens by value panels on dashboard
2021-06-23 12:32:11 -04:00
Jonathan Buttner 28162810ad
Fixing the generator to use bulk api to install endpoint package (#103094) 2021-06-23 12:30:12 -04:00
Pablo Machado 5b0d325d7e
Fix breadcrumbs path reopens timeline when timeline modal is open (#101568) 2021-06-23 12:27:55 -04:00
Alexey Antonov 12895d8bd0
[TSVB] fix tooltip on annotations with 's are not displayed correctly (#102892)
* [TSVB] tooltip on annotations with 's are not displayed correctly

Closes: #102631

* 'handlebars/dist/handlebars' -> 'handlebars'
2021-06-23 18:48:22 +03:00
Alexey Antonov fa5216fd79
[TSVB] Weird behavior after upgrading to 7.13.1 #101590 (#102942)
Closes: #101590
2021-06-23 18:46:43 +03:00
Matthias Wilhelm dbbfdbcbc0
[Discover] Dont trigger onChange when the same index pattern is selected (#102652) 2021-06-23 17:18:20 +02:00
Michael Olorunnisola 702661d34f
Implement new security solution wrapper (#100405)
Co-authored-by: cchaos <caroline.horn@elastic.co>
2021-06-23 11:00:29 -04:00
Matthias Wilhelm 77b5b236e5
[Discover] Unskip and improve empty results query functional test (#102995) 2021-06-23 16:52:49 +02:00
Stratoula Kalafateli a96eaa480f
[Visualize] Adds an info icon tip to the update button (#101469)
* [Visualize] Adds an info tooltip to the update button

* Add iconTip to the visEditor update button

* Move to the left and change the icon

* Update test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-23 17:52:15 +03:00
Nathan Reese 91295fddd7
[Maps] remove undefined from map embeddable by_value URL (#102949)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-23 08:45:02 -06:00
Dmitry Tomashevich 4fa939d9c9
[Discover] Improve flaky test - doc navigation (#102859)
* [Discover] test flakiness

* [Discover] wait for doc loaded

* [Discover] update related test

* [Discover] clean statement
2021-06-23 17:40:58 +03:00
Nathan Reese b4b17cfdec
[Maps] show radius when drawing distance filter (#102808)
* [Maps] show radius when drawing distance filter

* show more precision when radius is between 10km and 1km

* move radius display from line to left of cursor

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-23 08:37:15 -06:00
Nathan Reese dd907e5487
[maps] fix user has to click back button twice to navigate back to dashboard from create maps screen (#103002)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-23 08:36:46 -06:00
Christiane (Tina) Heiligers bb4e0cc1fc
Adds a versioned class name to a root DOM element (#102443) 2021-06-23 07:21:26 -07:00