Commit graph

320 commits

Author SHA1 Message Date
Marta Bondyra
78a7febbb6
[Lens] (Accessibility) Added focus state and accessible name to suggestions (#84653) (#85054)
* [Lens] (Accessibility) Added focus state and accessible name to suggestions

* Apply suggestions from code review

* Update x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_panel.tsx

padding oops

* cr
2020-12-05 18:55:03 +01:00
Thom Heymann
9ef4d22cf3
ECS audit events for alerting (#84113) (#85093)
* ECS audit events for alerts plugin

* added api changes

* fixed linting and testing errors

* fix test

* Fixed linting errors after prettier update

* Revert "Allow predefined ids for encrypted saved objects (#83482)"

This reverts commit 7d929fe903.

* Added suggestions from code review

* Fixed unit tests

* Added suggestions from code review

* Changed names of alert events

* Changed naming as suggested in code review

* Added suggestions from PR

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-05 12:05:46 +00:00
Wylie Conlon
12d316fd34
[Lens] Remove extra render when closing flyout with valid column (#84951) (#85037)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-04 13:10:07 -05:00
Marta Bondyra
59efe3c075
[Lens] allow drag and drop reorder on xyChart for y dimension (#84640) (#84937)
* [Lens] allow drag and drop on xyChart for y dimension

* wip

* tests

* dimension panel fix

* eslint

* fix test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-04 15:49:54 +01:00
Wylie Conlon
8af3242bea
[Lens] Fix error when selecting the current field again (#84817) (#84933) 2020-12-03 15:28:14 -05:00
Marco Liberati
896187eab8
[7.x] [Embeddable] Export CSV action for Lens embeddables in dashboard (#83654) (#84885)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-03 16:45:18 +01:00
Marta Bondyra
a2b98af354
Revert "[Lens] (Accessibility) Focus mistakenly stops on righthand form (#84519)" (#84866) (#84898)
This reverts commit a9845c6fc2.
2020-12-03 16:27:25 +01:00
Marta Bondyra
36a62c1f53
[Lens] accessibility screen reader issues (#84395) (#84894)
* [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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-03 15:37:31 +01:00
Joe Reuter
d3b0cfdc17
[Lens] Migrate legacy es client and remove total hits as int (#84340) (#84869) 2020-12-03 12:27:19 +01:00
Marta Bondyra
88f38a7e12
[Lens] Provide single-value functions to show the "First" or "Last" value of some field (#83437) (#84815) 2020-12-03 08:28:47 +01:00
Tyler Smalley
f9fd733a12
Jest multi-project configuration (#77894) (#84826)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
# Conflicts:
#	src/dev/code_coverage/ingest_coverage/integration_tests/team_assignment.test.js
#	src/plugins/console/jest.config.js
#	x-pack/plugins/canvas/scripts/jest.js
2020-12-02 14:02:21 -08:00
Wylie Conlon
742645238a
[Lens] Refactor function selection invalid state (#84599) (#84785)
* [Lens] Refactor function selection invalid state

* Fix types per review comment
2020-12-02 13:56:48 -05:00
Marta Bondyra
34d02789b3
[Lens] (Accessibility) Improve landmarks in Lens (#84511) (#84645) 2020-12-02 12:06:27 +01:00
Joe Reuter
d61e53d6ea
[Lens] Show color in flyout instead of auto (#84532) (#84739) 2020-12-02 11:52:16 +01:00
Joe Reuter
4eb6f4ecc0
[Lens] Use index pattern through service instead of reading saved object (#84432) (#84737) 2020-12-02 11:31:48 +01:00
Marta Bondyra
3a662a7c59
[Lens] (Accessibility) Focus mistakenly stops on righthand form (#84519) (#84644) 2020-12-01 17:15:36 +01:00
Marta Bondyra
d32d5bdb9f
[Lens] (Accessibility) add aria-label to chart type icon (#84493) (#84517) 2020-12-01 08:38:34 +01:00
Joe Reuter
91a2b6883c
[Lens] Time scale ui (#83904) (#84520) 2020-11-30 17:55:12 +01:00
Marco Liberati
a5974ac33d
[7.x] [Lens] CSV Export for Lens (#83430) (#84474)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-30 12:59:06 +01:00
Marco Liberati
1311372a83
[7.x] [Lens] Fix Treemap outer labels with transparent background (#84245) (#84467) 2020-11-30 12:36:18 +01:00
Joe Reuter
86bb03d6f9
[Lens] Calculation operations (#83789) (#84390) 2020-11-26 11:02:32 +01:00
Joe Reuter
0431706b53
add live region for field search (#84310) (#84342) 2020-11-26 08:35:21 +01:00
Wylie Conlon
6c2963f99e
[Lens] Implement types for reference-based operations (#83603) (#84290)
* [Lens] Implement types for reference-based operations

* Update from review feedback
2020-11-25 10:32:12 -05:00
Joe Reuter
9ecb41252a
[Lens] Fix label input debouncing (#84121) (#84315) 2020-11-25 13:55:48 +01:00
Joe Reuter
79fa876ffe
Expression: Add render mode and use it for canvas interactivity (#83559) (#84259) 2020-11-25 09:37:26 +01:00
Mikhail Shustov
e77769a9ac
[DX] Bump TS version to v4.1 (#83397) (#84234)
* bump version to 4.1.1-rc

* fix code to run kbn bootstrap

* fix errors

* DO NOT MERGE. mute errors and ping teams to fix them

* Address EuiSelectableProps configuration in discover sidebar

* use explicit type for EuiSelectable

* update to ts v4.1.2

* fix ts error in EuiSelectable

* update docs

* update prettier with ts version support

* Revert "update prettier with ts version support"

This reverts commit 3de48db3ec.

* address another new problem

Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
# Conflicts:
#	test/functional/services/remote/remote.ts
2020-11-24 18:56:21 +01:00
Pierre Gayvallet
0042d1241b
[7.x] [GS] add search syntax support (#83422) (#84186)
* [GS] add search syntax support (#83422)

* add search syntax parsing logic

* fix ts types

* use type filter in providers

* move search syntax logic to the searchbar

* fix test plugin types

* fix test plugin types again

* use `onSearch` prop to disable internal component search

* add tag filter support

* add FTR tests

* move away from CI group 7

* fix unit tests

* add unit tests

* remove the API test suite

* Add icons to the SO results

* add test for unknown type / tag

* nits

* ignore case for the `type` filter

* Add syntax help text

* remove unused import

* hide icon for non-application results

* add tsdoc on query utils

* coerce known filter values to string

Co-authored-by: Ryan Keairns <contactryank@gmail.com>

* fix mappings for 7.x

Co-authored-by: Ryan Keairns <contactryank@gmail.com>
2020-11-24 16:18:12 +01:00
Joe Reuter
30ca396a63
[Lens] Do not reset filter state on incoming app navigation (#83786) (#84204) 2020-11-24 15:46:56 +01:00
Joe Reuter
41966cb3b9
[Lens] Make incomplete switches possible (#83519) (#84179) 2020-11-24 13:26:37 +01:00
Mikhail Shustov
de6090c87b
[7.x] [DX] Prettier v2.2 (#83899) (#84114)
* [DX] Prettier v2.2 (#83899)

* update prettier with ts version support

* mute type-error

* run prettier on codebase

* fix examples

* fix errors after master merged
# Conflicts:
#	x-pack/plugins/index_management/public/application/components/mappings_editor/mappings_editor.tsx
#	x-pack/plugins/upgrade_assistant/server/lib/telemetry/usage_collector.ts

* fix add removed property
2020-11-23 21:24:39 +01:00
Joe Reuter
763c525db9
[Lens] Add unit tests for format_column expression function (#83424) (#84064) 2020-11-23 15:22:10 +01:00
Joe Reuter
078322fa6b
simplify time interval checking (#83545) (#83931) 2020-11-23 12:59:39 +01:00
Marta Bondyra
5e7e303f2d
[Lens] Remove background from lens embeddable (#83061) (#83251)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-20 11:42:08 +01:00
Marco Liberati
516392d813
[7.x] [Lens] Make the dimension flyout panel stay close on outside click (#83059) (#83669)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-19 09:59:50 +01:00
Mikhail Shustov
90f76994d2
Update typescript eslint to v4.8 (#83520) (#83677)
* update deps

* update rules

use type-aware @typescript-eslint/no-shadow instead of no-shadow. do not use no-undef, rely on TypeScript instead

* fix or mute all lint errors

* react-hooks eslint plugin fails on ? syntax

* fix wrong typings in viz

* remove React as a global type

* fix eslint errors

* update version to 4.8.1

* fix a new error
2020-11-18 20:50:46 +01:00
Marco Liberati
583f757d39
[7.x] [Lens] Avoid unnecessary data fetching on dimension flyout open (#82957) (#83538)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-17 15:20:02 +01:00
Joe Reuter
495fc8b8e2
[Lens] Color in dimension trigger (#76871) (#83524) 2020-11-17 12:05:27 +01:00
Joe Reuter
c0c398a185
create metric before bucket agg (#83432) (#83523) 2020-11-17 12:05:14 +01:00
Joe Reuter
6d3aff8879
[Lens] Add suffix formatter (#82852) (#83301) 2020-11-16 11:04:07 +01:00
Tyler Smalley
8c2976d847
Consolidates Jest configuration files and scripts (#82671) (#83362)
Jest tests are currently organized into main configuration files (src/dev/jest/config.js and x-pack/dev-tools/jest/create_jest_config.js). Both of these are similar, but very slightly due to  previously being in separate repositories. This change consolidates the scripts referenced in those configs and moves them to the `@kbn/test` project.

OSS contained an alias for `test_utils`. Those aliases have been removed in favor of importing these utilities from `@kbn/test/jest`

Blocker to #72569

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-13 13:25:06 -08:00
Thomas Watson
3c82fde4f7
Upgrade Node.js to version 12 (#61587) (#83343) 2020-11-13 10:07:13 +01:00
Joe Reuter
56b112cbc8
[Lens] Enable other bucket for top values operation (#82704) (#83187) 2020-11-12 09:45:35 +01:00
Nathan L Smith
fabfc546b0
Move Elasticsearch type definitions out of APM (#83081) (#83229)
...and into x-pack.

Also remove `PromiseReturnType` from APM and use the copy in observability everywhere.

All of the additional changes to APM imports are just automatic sorting.

This makes doing #77720 a little easier and removes some implicit circular dependencies for #80508.

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
# Conflicts:
#	x-pack/plugins/apm/public/utils/testHelpers.tsx
2020-11-11 22:32:56 -06:00
Marta Bondyra
3c8f8acee8
[Lens] Implement counter rate expression (#82948) (#83158) 2020-11-11 15:46:47 +01:00
Marta Bondyra
d29e503f48
[Lens] Functional tests for drag and drop (#82796) (#83155)
Co-authored-by: Wylie Conlon <william.conlon@elastic.co>
2020-11-11 15:46:26 +01:00
Wylie Conlon
afae7fb618
[Lens] Use entire layers, not specific columns (#82550) (#83088)
* [Lens] Use entire layers, not specific columns

* Fix types

* Move all of state_helpers over

* Fix tests

* Fix crash and add tests to prevent future issues

* Prevent users from dropping duplicate fields

* Respond to review feedback

* Fix review feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-10 17:25:58 -05:00
Marco Liberati
84611f0289
[7.x] [Lens] Performance refactoring for indexpattern fast lookup and Operation support matrix computation (#82829) (#83066)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-10 18:51:59 +01:00
Alexey Antonov
605126470c
[bundle optimization] fix imports of react-use lib (#82847) (#83053)
* [bundle optimization] fix imports of react-use lib

* add 2 more files

* add rule into eslintrc.js

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-10 19:42:15 +03:00
Marco Liberati
33fdc42ef3
[7.x] [Lens] Distinct icons for XY and pie chart value labels toolbar (#82927) (#83032) 2020-11-10 15:59:14 +01:00
Joe Reuter
61e2af3a71
[Lens] Do not reset formatting when switching between custom ranges and auto histogram (#82694) (#83034) 2020-11-10 14:07:22 +01:00
Luke Elmers
7b0ce9615c
Remove data <--> expressions circular dependencies. (#82685) (#83010) 2020-11-09 14:48:28 -07:00
Marco Liberati
773b77ce8f
[7.x] [Lens] Extend Datasource props validation with VisualizationGroups (#82607) (#82958)
*  First pass with visualization validation + error messages

* 🔥 Remove indexpattern error handling for now

* 🏷️ Fix type issues

*  Add getErrorMessage test for data table

*  Add tests for pie and metric error messages

* 🌐 Fix i18n checks issues

* 🐛 Fix last issue

*  Add more tests for the XY visualization validation code

* 👌 Included all feedback from first review

* ✏️ Off by one message

* 🌐 Fix i18n duplicate id

* 🌐 Fix last i18n issue

* 🐛 Fixed a hook reflow issue

* ♻️+ Reworked validation flow + tests

* 🏷️ Fix type issue

* 🐛 Improved XY corner cases validation logic

* 🐛 Fix empty datatable scenario

*  +  Improved error messages for invalid datasources + tests

* 🌐 Add missing i18n translation

* 🏷️ Fix type issues

* 🌐 Fix i18n issues

*  Filter out suggestions which fail to build

* 🚚 Migrate datatable validation logic to the building phase, handling it as building state

* 🏷️ Fix type issue

* ✏️ Add comment for future enhancements

* ✏️ Updated comment

* :world_with_meridians: Refactor axis labels

* 🌐 Reworked few validation messages

* 🐛 Fix break down validation + percentage charts

*  Align tests with new validation logic

* ♻️ Fix suggestion panel validation to match main panel

* 🌐 Fix i18n issues

* 🔧 Fix some refs for validation checks in suggestions

* 🐛 Fix missing key prop in multiple errors scenario

* 🐛 Fix swtich issue from XY to partition

* 🌐 Fix i18n messages and aligned tests

* 🐛 Fix suggestions switching bug

* :refactor: Add more validation + refactored validation logic in a single place

* ✏️ Add note about lint hooks disable rule

* 🚨 Fix linting issue

* 🏗️ Add infra API for datasource advanced validation

*  Align tests with new API

*  Fix type issues in tests

* 👌 Early exists added

*  Add layers groups to the API

*  Fix some broken test after the validation change

* 👌 Move to disctionary shape

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-09 19:16:08 +01:00
Marco Liberati
9af652ec43
[7.x] [Lens] New value labels config option for bar charts (#81776) (#82849)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-09 15:20:54 +01:00
Joe Reuter
e411757b11
[7.x] [Lens] Expose active data in some places (#79851) (#82856) 2020-11-09 14:46:30 +01:00
Joe Reuter
5c0c8bfa2c
[Lens] Implement time scaling function (#82104) (#82854) 2020-11-06 20:11:34 +01:00
Stratoula Kalafateli
73d2de6503
[Visualize] New visualization wizard (#79627) (#82858)
* [Visualizations] New vis wizard

* Update functional tests

* Create oss plugins for maps and lens and unregister alias function

* Add new plugins to .i18nrc.json

* Add readme and codeowners to the new plugins

* update docs

* fix tests

* fix types

* fixes

* Update development docs

* fix oss functional tests

* Fix jest and x-pack functional tests

* Fix functional test

* changes on the layout

* Cleanup and responsiveness

* cleanup unecessary code

* add common folder to the new OSS plugins

* remove unecessary translations

* Update limits.yml file

* Fix basic label

* Add experimental badge on controls vis

* Nice improvements

* fixes

* Improving styles

* Making modal go full height on smaller screens

* Fixing sass lint warning

* fix lint error

* fix internationalization error

* PR fixes

* PR changes

* Use useCallback where possible

* Remove translations that need to be translated again

* Lazy Load wizard modal

* Remove legacyMapVisualizationWarning

* Import the OSS plugins constants from the plugins

* Export constant from lensOss

* Change the new oss plugins from OSS to Oss

* Add a new line to the kibana.json files of the new plugins

* New nit fix

* Fix spaces

* Change the texts for the first step of the modal

* Fix test

* Fixes some of the PR comments

* Add onClick funtionality to the entire aggregation based card

* Cards description changes, introduce a copyFromRoot method to solve the problem of when disabling the x-pack plugic, to also disable the oss

* Create new FTR for testing the functionality of the wizard when both maps and lens apps are disabled

* fix eslint error

* Change groupTitles and descriptions

* Change input vis description

* Remove the copyFromRoot from the signature of the ConfigDeprecationFactory and export it from the main entrypoint

* Make the disabled cards badge clickable

* Changes from code review

* Fix functional tests failures

* Rename groupTitle to titleInWizard to be more specific

* Change vega vis note

* minor design changes

* fix problem with plugins list docs

* Retrieve maps and lens landing page from docs service and add tracking url param

* Fix funtional test for the new dashboard flow

* Fix logic in alias registry for removing the discardOnRegister alias

* no need to remove the alias entry from the discardOnRegister array

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: miukimiu <elizabet.oliveira@elastic.co>
# Conflicts:
#	.github/CODEOWNERS
#	docs/developer/plugin-list.asciidoc
#	packages/kbn-optimizer/limits.yml
#	x-pack/scripts/functional_tests.js
2020-11-06 20:49:10 +02:00
Wylie Conlon
7552c17763
[Lens] Fix bug in terms formatting (#82776) (#82842) 2020-11-06 11:59:47 -05:00
Marco Liberati
f461df25d7
[7.x] [Lens] Visualization validation and better error messages (#81439) (#82811)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-06 17:09:43 +01:00
Joe Reuter
65286b2b5f
fix underlying data drilldown for Lens (#82737) (#82818) 2020-11-06 14:11:07 +01:00
Devon Thomson
97164a7c00
[Time to Visualize] Embeddable Error Handling Without ReplacePanel (#82201) (#82742)
Fixed embeddable error handling so that fatal errors are caught and displayed with an errorEmbeddable no matter when they occur.
2020-11-05 12:56:49 -05:00
Joe Reuter
ba05688b35
[Lens] Remove visible title in workspace panel (#82234) (#82712) 2020-11-05 16:38:00 +01:00
Joe Reuter
0452f445cb
[Lens] Categorical color palettes (#75309) (#82586) 2020-11-04 14:10:35 +01:00
Marta Bondyra
2103911c6d
[Lens] Drag within dimension group to reorder (#80547) (#82500) 2020-11-04 09:21:54 +01:00
Joe Reuter
b36873cacb
[Lens] Reload on change via history object (#81753) (#82429) 2020-11-03 16:56:29 +01:00
Pierre Gayvallet
d449d8cbdb
[7.x] SavedObjects tagging MVP (#79096) (#82407)
* SavedObjects tagging MVP (#79096)

* create xpack plugin skeleton, start to implement management section

* add tag creation modal

* first implementation of the tags table

* use InMemoryTable

* add edit modal and delete action

* update plugin list

* add tag list, fix types

* add capabilities check on client-side

* add tag combo box component

* add missing i18n keys

* fix privilege FTR tests

* add base structure for FTR tests

* fix feature ftr test

* use string literals for i18n

* create savedObjectsTaggingOss plugin, move API types to oss plugin, start to wire to SO management page.

* update plugin list

* fix types

* allow to use `_find` with multiple references

* add FTR test for _find API on references fields

* add _find integration tests

* update generated doc

* start to implement tag filtering on SO management section

* update generated docs

* wire tagging API to dashboard listing page

* fix i18n namespace

* fix type & tests

* update dashboard listing snapshots

* adapt FTR listingTable service to search for parsable queries

* wite tagging API to visualize listing

* update tagging plugin limits

* add server-side and client-side validation for tag create/edit

* rename title field to name

* fix types

* fix types bis

* add removeReferencesTo API to SOR/SOC

* update generated doc

* add server-side unit test for `savedObjectsTagging` plugin

* move tagging API types to its own file

* add savedObjectsTaggingOss mock

* add tags_cache tests

* add tests for client-side tag client

* extract uiApi to distinct files

* various API improvements

* add more tests

* add link between tag and so management sections + add connection counts

* add base functional test suite for tagging

* add more FTR tests

* improve feature control func test

* update codeowners

* update generated doc

* fix access to proxy modal

* adapt SO save modal to allow to add tag field

* add SO decorator registry and tag implementation

* add unit tests for SO tag decorator

* add functional tests for visualize integration

* add tag SO read permission for vis/dash feature

* add RBAC api integ tests

* add API integration tests

* add test for getTagConnectionsUrl

* add SOM test suite

* add dashboard integration suite

* remove test line

* add missing unit tests

* improve API types doc

* fix create modal save button label

* remove console.log

* improve doc

* self review

* add refresh interval for tag cache

* improve page object doc

* minor cleanup

* address review comments

* small layout fixes

* add initial focus

* use lazy accessor for tag request handler context

* adapt SOM export and export route to handle references

* remove icon from feature config due to master changes

* fix SO table tests

* update generated docs

* sort tags by name in filter dropdown and listing component

* wire SO tagging to dashboard save modal

* fix types

* - add 'create tag' action in tag selector
- add notifications on update/create/delete from management
- delete modal wording

* add description max length validation

* remove real-time validation

* fix i18n bundle id

* update expected size of savedObjectsTagging plugin

* use own useIfMounted

* update limit again, contract components cannot be lazy loaded atm.

* math is hard

* remove single usage of lodash for bundle size

* add async imports for create/edit modal

* add FTR test for 'create tag' action from tag selector

* allow 'create new' option to prepopulate name field

* extract savedObjectToTag

* add advancedSettings read user for security api_integ suite

* add audit login for security client wrapper

* use import type when possible

* wire SO tagging to lens visualization

* fix lens jest test

* Fix `create tag` option being selected when closing the selector dropdown

* add sorting to tag column from getTableColumnDef

* address some of restrry comments

* rename tag selector's setSelected option to onTagsSelected

* fix audit logging even type for saved_object_remove_references

* update plugin size limit to current size

* adapt maxlength validation wording

* remove selection column until we have batch action menu

* remove connections link when user lack read privilege to savedObjectManagement

* forbid registering multiple SO decorators with the same priority

* add so decorator test

* extract getTagFindReferences and create API mock

* update audit-logging ascidoc

* doc nit

* throw conflict error if update returns any failure

* use refresh=true as default

* wording nits

* export: rename `references` to `hasReference`

* update generated doc

* set description max length to 100

* do not initialize tag cache on anonymous pages

* split fetchObjectsToExport into two distinct functions

* change tag client `delete` call order

* tsdoc nits

* more nits

* add README for oss plugin

* add oss plugin start tests

* SavedObject.find: rename `references` to `hasReference`

* change section description label

* remove url prefix constants

* last nits and comments

* update generated doc
# Conflicts:
#	.github/CODEOWNERS
#	packages/kbn-optimizer/limits.yml
#	x-pack/scripts/functional_tests.js

* fix FTR mapping files for 7.x
2020-11-03 14:35:43 +01:00
Marta Bondyra
b3ff73ea6d
[Lens] Fix console error by passing I18nProvider to metric vis (#82282) (#82337)
* [Lens] Fix console error by passing I18nProvider to metric vis

* Update expression.tsx
2020-11-03 10:01:30 +01:00
Nathan Reese
fcc12a609a
[lens] fix unhandled promise rejection when saving Lens with duplicate title (#82195) (#82342)
* [lens] fix unhandled promise rejection when saving Lens with duplicate title

* more clean up

* restore getDisplayName, used by return of checkForDuplicateTitle

* fix jest test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-02 13:20:28 -07:00
Devon Thomson
fc4a04bf61
[Time to Visualize] Small Attribute Service Fixes (#82072) (#82316)
* Removed some dashboard-centric wording from the Attribute Service & removed type argument from save method
2020-11-02 13:28:50 -05:00
Thomas Watson
df4f66b4ac
[7.x] Upgrade to hapi version 18 (#80468) (#82265) 2020-11-02 15:49:43 +01:00
Greg Thompson
df1f03155c
Upgrade EUI to v30.1.1 (#81499) (#82210)
* eui to v30.0.0

* removed unused RecentLinks component

* update compressed -> display prop

* euiformrow compressed -> display

* euipopover remove withtitle

* euibuttongroup prop updates

* remove euibuttontoggle

* src snapshot updates

* tutorial euibuttongroup update

* x-pack snapshot updates

* euibuttongroup test updates

* TODO

* misc. js file updates

* remove euinavdrawer scss references

* translation removals

* more x-pack snapshot updates

* update data-test-subj lookup

* icons logoAMP -> logoObservability

* cypress selector updates

* update euibuttontoggle onchange, test interaction

* Fix auto-update toggle in Visualize

* some more change -> click test updates

* idtoselectedmap change

* Fix feature table button group

* Remove empty SASS file

* Fix feature table button group II

* Using `compressed` to also dictate dual range row

* Fix a few security labels

* An ML fix

* Apply suggestions from code review

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

* remove unused translation

* update view_type_toggle snapshot

* more snapshot updates

* eui to 30.1.0

* undo temp ts-ignore

* more x-pack snapshot updates

* eui to 30.1.1

* update feature privilege text

* Update x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/feature_table/sub_feature_form.tsx

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>

* reuse i18n token

* Adapt log entry action button to new `minWidth` prop

* clean up label

* Combine auto apply strings into one

* ternary fix

* cases status useCallback

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>
2020-10-30 18:21:00 -06:00
Joe Reuter
ed03cb5907
fix Lens heading structure (#81752) (#82112) 2020-10-30 14:04:04 +01:00
Anton Dosov
ae055722b3
[Search] Use session service on a dashboard (#81297) (#82036) 2020-10-30 11:42:10 +01:00
Michael Marcialis
195b1cf5c7
[Lens] Adjust Lens Visualization Padding in Dashboards (#81911) (#82079)
* reduce padding on lens visualizations in dashboard

* tweak padding and axes title colors to match lens

* remove faux padding (border) to match lens padding

* update snapshots

* Revert "update snapshots"

This reverts commit c63cf2bf1c.

* update functional test baseline screenshot
2020-10-29 18:47:24 -04:00
Wylie Conlon
df94673a78
[Lens] Stop using multi-level metrics in Lens pie charts (#81523) (#82024)
* [Lens] Stop using multi-level metrics in Lens

* Fix linting

* Simplify even more
2020-10-29 15:33:28 -04:00
Joe Reuter
253a6b4a89
[Lens] Add loading indicator during debounce time (#80158) (#82028) 2020-10-29 17:42:16 +01:00
Marco Liberati
06278dcdec
[7.x] [Lens] Improved range formatter (#80132) (#81826)
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2020-10-28 12:23:31 +01:00
Joe Reuter
d16d005582
Log reason for 404 in field existence check (#81315) (#81743) 2020-10-28 10:11:37 +01:00
Joe Reuter
7f27785fbf
[Lens] Fix URL query loss on redirect (#81475) (#81744) 2020-10-27 14:30:27 +01:00
Joe Reuter
57c31e8cd3
fix flaky unit test (#81466) (#81496) 2020-10-22 18:58:28 +02:00
Stratoula Kalafateli
9b85df05c4
[Lens] Rename X/Y axis to horizontal/vertical (#80991) (#81459)
* [Lens] Rename x/y axis to horizontal/vertical ones

* Change configuratio

* Add unit tests to cover the change

* Change texts to follow EUI guidelines

* Fix the translations ids

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-22 14:51:22 +03:00
Gidi Meir Morris
831dbf9068
[Task Manager] Cleans up legacy plugin structure (#80381) (#81139)
This PR addresses a list of legacy code debt the plugin has incurred over the past year due to extensive changes in its internals and the adoption of the Kibana Platform.

It includes:
1. The `TaskManager` class has been split into several independent components: `TaskTypeDictionary`,  `TaskPollingLifecycle`,  `TaskScheduling`,  `Middleware`. This has made it easier to understand the roles of the different parts and makes it easier to plug them into the observability work.
2. The exposed `mocks` have been corrected to correctly express the Kibana Platform api
3. The lifecycle has been corrected to remove the need for  intermediary streames/promises which we're needed when we first introduced the `setup`/`start` lifecycle to support legacy.
4. The Logger mocks have been replaced with the platform's `coreMocks` implementation
5. The integration tests now test the plugin's actual public api (instead of the internals).
6. The Legacy Elasticsearch client has been replaced with the typed client in response to the deprecation notice.
7. Typing has been narrowed to prevent the `type` field from conflicting with the key in the `TaskDictionary`. This could have caused the displayed `type` on a task to differ from the `type` used in the Dictionary itself (this broke a test during refactoring and could have caused a bug in production code if left).
2020-10-20 15:56:49 +01:00
Marco Liberati
421fe04983
[7.x] [Lens] Remove Over time suggestions for numeric intervals (#78442) (#81117)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-20 15:55:39 +02:00
Joe Reuter
1bf85f314f
[Lens] Add toast notification when visualization is saved (#80788) (#81136) 2020-10-20 15:20:40 +02:00
Joe Reuter
ac0766153f
[Lens] Lazy load lens telementry and attribute service (#80479) (#81008) 2020-10-20 09:04:57 +02:00
Wylie Conlon
066fa9cb9c
[Lens] Split up dimension panel code (#80423) (#81030)
* [Lens] Split up dimension panel code

* Fix test failures

* Style updates

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-19 15:38:26 -04:00
Peter Pisljar
d25c84f6f4
removing kibana_datatable in favor of datatable (#80548) (#80875) 2020-10-16 20:59:39 +02:00
Joe Reuter
ee1ef74cd5
[Lens] Add median operation (#79453) (#80837) 2020-10-16 18:26:05 +02:00
Joe Reuter
1facf63c7d
[Lens] Custom labels for ranges (#79628) (#80497) 2020-10-14 16:04:09 +02:00
Joe Reuter
246edf8fcc
respect requested sub vis type for xy charts (#80297) (#80461) 2020-10-14 11:43:24 +02:00
Joe Reuter
40b990c8eb
[Lens] Leverage original http request error (#79831) (#80339) 2020-10-13 16:51:22 +02:00
Maja Grubic
cc3b7b2bae
[Refactor] Move AttributeService from Dashboard to Embeddable plugin (#79830) (#80177)
* [Refactor] Move AttributeService from Dashboard to Embeddable plugin

* Fix wrong import

* Fixing typescript errors

* Make Dashboard a required dependency

* Fixing circular dependency

* Fix label namespace

* Updating docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	docs/development/plugins/embeddable/public/kibana-plugin-plugins-embeddable-public.embeddablestart.md
#	docs/development/plugins/embeddable/public/kibana-plugin-plugins-embeddable-public.md
#	docs/development/plugins/embeddable/server/kibana-plugin-plugins-embeddable-server.embeddablesetup.md
#	src/plugins/embeddable/public/public.api.md
#	src/plugins/embeddable/server/server.api.md
2020-10-13 15:24:03 +01:00
Marta Bondyra
abb5c7463b
[Lens] fix empty callout for empty/meta fields accordion (#79429) (#79970) 2020-10-09 10:43:55 +02:00
Marco Liberati
67302d46db
[7.x] [Lens] Fix for Percentage and Metric suggestions/visualizations on 0 or empty vlaues (#79309) (#79826)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-07 18:31:32 +02:00
Marta Bondyra
5263295600
[Lens] Don't debounce visualization settings UI (#79625) (#79821)
* perf: don't debounce settings menu

* perf: fix performance for settings
2020-10-07 13:42:53 +02:00
Marta Bondyra
8a197916c4
[Lens] Improve unclear UI for bucket aggregation grouping order (#77331) (#79825) 2020-10-07 13:42:40 +02:00
Joe Reuter
eccf8a84bc
[Lens] Make histogram brushing possible (#79435) (#79823) 2020-10-07 12:02:42 +02:00
Joe Reuter
deb61f6a8c
[Lens] Add search to chart switcher (#77631) (#79709) 2020-10-06 22:39:44 +02:00
Wylie Conlon
8eb546c9fe
[Lens] Break long titles into multiple lines (#79580) (#79693) 2020-10-06 13:57:02 -04:00
Maja Grubic
5d33f62aae
Refactor attribute service (#78414) (#79621)
* Making saveMethod mandatory in attribute service

* Making unwrap method mandatory

* Making book embeddable respect new attribute service

* Remove savedObjectsClient from attribute service

* Add checkForDuplicateTitle method to book embeddable

* Make options mandatory on attribute service

* Changing Lens attribute service

* Somw more typescript fixes

* Fixing attribute service typescript and tests

* Fixing typescript errors

* Unsetting feature flag

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-06 14:53:09 +01:00
Marco Liberati
12f4eea96c
[7.x] [Lens] Fix open custom ranges saved issue (#78915) (#79319)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-06 12:38:53 +02:00