Commit graph

791 commits

Author SHA1 Message Date
Dmitry Tomashevich
0a9ddce98a
[8.2] [Discover] Fix modify the time range test (#130880) (#133621)
* [Discover] Fix modify the time range test (#130880)

* [Discover] unskip tests for check flakyness

* [Discover] fix the test

* [Discover] update expected string

* [Discover] open close full screen mode for data grid when needed

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit d5ae7f33b7)

* [Discover] remove redundant substring
2022-06-06 07:42:14 -07:00
Kibana Machine
e75a5ad6e9
Stabilize VisEditors tests by waiting for the chart to update (#131120) (#131136)
* add wait for chart calls

* move wait

* fix test

(cherry picked from commit 1fbf477afb)

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2022-04-28 05:08:24 -07:00
liza-mae
de2375213b
[8.2] Upgrade patch reporting issue, add more tests, reorganize files (#130839) (#131011)
* Upgrade patch reporting issue, add more tests, reorganize files (#130839)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 26217f3a7a)

* Update path

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-04-27 10:49:47 -07:00
Muhammad Ibragimov
4dd7ba0b21
[Console] Fix condition auto-completion for templates (#126881) (#130972)
* Fix condition autocompletion for templates

* Added block level matching logic

* Fix lint

* Fixed types

* Resolved comments

* Added a custom type guard

* Minor refactor

* Add type to type imports

* Add functional tests and comments

Co-authored-by: Muhammad Ibragimov <muhammad.ibragimov@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 6447923591)
2022-04-26 06:34:00 -07:00
Kibana Machine
f3f311e1c6
[Discover] Improve document explorer callout (#129972) (#130657)
* [Discover] improve document explorer callout

* [Discover] fix functional tests

* [Discover] try to fix functional

* [Discover] close callout when it needed

* [Discover] fix test subj label

* [Discover] fix test

* [Discover] fix functional test

* [Discover] another try

* [Discover] dismiss callout

* [Discover] add retry

* Improve data_grid.ts getHeaderFields code

- so it no longer fails when the header fields are rendered but not visible due to callout rendering

* Improve links

* Cleanup

* Improve getDocTableIndex code

* Fix functional

* Size, icon, and button tweaks

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
Co-authored-by: Ryan Keairns <contactryank@gmail.com>
(cherry picked from commit 0355c2e010)

Co-authored-by: Dmitry Tomashevich <39378793+Dmitriynj@users.noreply.github.com>
2022-04-20 05:03:33 -07:00
Kibana Machine
66df1c2291
[functional-tests] TimePicker optimizations (#130200) (#130506)
(cherry picked from commit fb87699eb8)

Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2022-04-18 14:40:02 -07:00
Kibana Machine
47a82c8509
[TSVB] Apply filter event is not working for formatted fields (#128228) (#129761)
* [WIP][TSVB] Apply filter event is not working for formatted fields

* Add termsSplitValue that might be as single string for terms as MultiFieldKey for multi terms, that allows to create filters for grouped by multi terms data

* Update tests and fix some nits

* Add couple of functional tests

* Remove flaky test

* Update test to fix flakiness

* Fix some nits

* Shorten a condition

* Fix import

* Wrap setting combo box values into retry.try to get rid of flakiness

* In functional test increase sleep a bit to make sure group by field has appeared

* Refactor some code

* Try again to update test coordinates

* Update test coordinates

* Fix condition for terms value

* Fix export of MultiFieldKey

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 3dc61c89d7)

Co-authored-by: Diana Derevyankina <54894989+DziyanaDzeraviankina@users.noreply.github.com>
2022-04-07 09:41:45 -07:00
Kibana Machine
a658a6f001
Launch sample data from home (#129146) (#129389)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 0e490e76b8)

Co-authored-by: liza-mae <liza-mae@users.noreply.github.com>
2022-04-04 12:09:53 -07:00
Kibana Machine
f9128552f1
Rendering imported dashboards in import saved objects between version tests and refactor of multi-space imports test (#129065) (#129345)
(cherry picked from commit e2e8dbb08f)

Co-authored-by: Bhavya RM <bhavya@elastic.co>
2022-04-04 07:53:28 -07:00
John Dorlus
3d7848f21e
Migrate Lens Smoke Test To Use CCS Remote (#127426) (#129272)
(cherry picked from commit 40fa6076b1)
2022-04-01 21:29:57 -07:00
Catherine Liu
ba6be79adb
[Controls] Range slider (#125584)
* Adds range slider control

Fix ts error

Fix ref type error

Extracted i18n strings

Fixed number rounding

Fixed missing i18n string

Add loading state to range slider control output

Remove unnecessary change

Fix i18n errors

Apply formatter to range slider tick labels

* Apply comment updates from code review

Co-authored-by: Devon Thomson <devon.thomson@elastic.co>

* Remove extra fetches

* set min width for panel

* Fix functional tests

* Fixed controls page object

Co-authored-by: Devon Thomson <devon.thomson@elastic.co>
Co-authored-by: andreadelrio <andrea.delrio@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-28 14:06:47 -07:00
Devon Thomson
d202b73da7
[Controls] Select Relevant Data View ID (#128440)
Get relevant data view id when creating control
2022-03-28 11:51:19 -04:00
Lee Drengenberg
b20de118cd
use format.utc instead of format (#128567)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-28 10:46:05 -05:00
Devon Thomson
82d4cd56dc
[Dashboard][Controls] Add Control Group Search Settings (#128090)
* Added ability to toggle hierarchical chaining, control validation, and query bar sync to the Control Group
2022-03-23 18:28:39 -04:00
Hannah Mudge
c9dfe16725
[Controls] Improve controls management UX (#127524)
* Move control type selection in to flyout

* Set default icon type if getIconType undefined

* Fix create control functional tests

* Fix factories for multiple types

* Show only selected type icon when editing

* Add optional tooltip support

* Rename promise variable

* Fix imports

* Fix nits

* Edit tooltip text for options list control
2022-03-21 13:59:54 -07:00
Maja Grubic
bd76573764
[Data View Editor] Replace EmptyIndexPattern component (#127941)
* [Data View Editor] Replace EmptyIndexPattern component

* Fix i18n & functional tests

* Remove lazy loading

* Fix settings page

* Position component centrally

* Applying Clint's comments

* Fix flyout scroll

* Remove unnecessary flex wrappers

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: cchaos <caroline.horn@elastic.co>
2022-03-21 20:17:09 +01:00
Hannah Mudge
fe34af7bc0
[Controls] Conditionally hide settings that only make sense when at least one control (#127932)
* Make some settings conditional on control count

* Add functional tests for control group settings

* Remove unnecessary string
2022-03-18 14:02:02 -06:00
John Dorlus
a70e7ebdf7
Fixed test to use CCS saved object instead of local. (#126970)
* Fixed test to use CCS saved object.

* Removed retry and replaced with explicit waits. Also left a note as to why the test is written.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-10 11:29:45 -05:00
Matthew Kime
c7734bc945
[data view mgmt] fix data view name wrap (#127319)
* use EuiLink instead of EuiButton

* better tag positions

* fix rendering and text

* lint fixes
2022-03-09 22:56:30 -06:00
Hannah Mudge
b2cd94df7b
[Controls] Improve controls empty state (#125728)
* Add controls button to toolbar

* Add dismiss button

* Add style to toolbar controls button

* Clean up unnecessary isControlsEnabled check

* Make toolbar controls button conditional once callout dismissed

* Move add and edit controls to toolbar dropdown

* Remove icon buttons

* Add each control seperately to toolbar dropdown

* Remove unused code

* Fix close popover on click

* Remove unnecessary dark theme check

* Make closePopover optional for creating controls

* Fix control group strings

* Fix alignment of toolbar popover items

* Functional tests - create controls from new menu button

* Hide controls callout for empty dashboards

* Add tooltips to control types + i18n support.

* Move callout render logic to dashboard viewport

* Add controls callout functional tests

* Fix bundle size by lazy importing controls callout

* Get create control button in callout via passed function

* Fix mobile view of callout

* Add documentation and cleaned code based on Devon's feedback

* Moved the 'add to library' and 'controls' buttons in to extra
2022-03-09 12:04:27 -07:00
Devon Thomson
ed4c19c692
Use debounce instead of async url update to remove app state from URL (#127083) 2022-03-08 11:04:28 -05:00
Matthew Kime
8b82657d46
[data views] functional tests to typescript (#126977)
js => ts
2022-03-07 07:24:39 -06:00
Matthew Kime
0adb328a9a
[data views] Reenable data view validation functional test (#125892)
* reenable test
2022-03-07 07:24:14 -06:00
Rashmi Kulkarni
f8586a87d0
fix for a skipped test _scripted_fields_filter (#126866)
* fix for a skipped test

* cleanup
2022-03-04 14:02:09 -08:00
Muhammad Ibragimov
77ac1d822f
Unskip flaky tests (#126743)
Co-authored-by: Muhammad Ibragimov <muhammad.ibragimov@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-04 13:01:46 +05:00
Alexey Antonov
efcdbb66dd
[TSVB] Multi-field group by (#126015)
* fieldSelect

* activate multifield support for table

* update table>pivot request_processor

* fix some tests

* apply some changes

* fix JEST

* push initial logic for series request_processor

* fix some broken cases for Table tab

* update convert_series_to_datatable / convert_series_to_vars

* add some logic

* fix table/terms

* do some logic

* fix some issues

* push some logic

* navigation to Lens

* fix CI

* add excludedFieldFormatsIds param into excludedFieldFormatsIds

* fix ci

* fix translations

* fix some comments

* fix series_agg label

* update labels in lens

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-03 15:04:04 +03:00
Muhammad Ibragimov
45a003fa06
[Console] unskip flaky tests (#124783)
* Unskip flaky console tests

Co-authored-by: Muhammad Ibragimov <muhammad.ibragimov@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-25 10:03:53 +05:00
Hannah Mudge
6f1a963d1d
[Dashboard] Fix time range and filter state comparisons for dashboard-to-dashboard drilldowns (#124278)
* Remove deprecated references.

* Add timeRange to DashboardState and timeRestore to DashboardContainerInput

* Ignore filters.$state during dashboard diff

* Undo remove deprecated references.

* Conditionally exclude filter state from comparison

* Inject filter.$state for context filters

* Trigger apply filters

* Add save to functional tests

* Remove unused variable

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-22 10:30:03 -07:00
Matthias Wilhelm
4137dd8de3
[Discover] Enable document explorer as default document table (#125485)
* Enable document explorer in Discover as default document table
* Fix lots of functional tests
2022-02-16 18:33:26 +01:00
Yaroslav Kuznietsov
54de36f85a
[PieVis] PartitionVis integration to Lens. (#123937)
* Removed pie/donut/mosaic/treemap expressions from lens

* Replaced pie/donut/mosaic/treemap expressions with expressions from expression_partition_vis

* Fixed bug with __other__ labels.

* Cleaned up not used fields at Lens.

* Added support of empty results for multiple chart types.]

* Refactored visualization_noresults.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-14 16:55:57 +02:00
Joe Reuter
cbca869e8f
retry tab change (#125260) 2022-02-10 18:59:39 +01:00
Joe Reuter
ec7f2f3d8c
click slower in timepicker (#125264) 2022-02-10 18:59:15 +01:00
Christiane (Tina) Heiligers
ea9255342e
Disabled import button while no file is attached (#125180) 2022-02-10 10:43:30 -07:00
Shivindera Singh
01d479108b
allow filtering index pattern UI for runtime fields (#124114)
* allow filtering index pattern UI for runtime fields

* fix namespace error

* add multi select filters

* add fix for failing tests

* test fixes
2022-02-09 10:13:59 +01:00
Maja Grubic
9b20c4f035
[Discover] Create data view from sidebar (#123391)
* [Discover] Create data view from sidebar

* Fix failing unit test

* Fix invalid import

* Addressing PR comments

* Add horizontal separator

* Design tweaks

* Update unit test

* Remove double declaration

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Ryan Keairns <contactryank@gmail.com>
2022-01-31 16:03:22 +01:00
Muhammad Ibragimov
17134697a0
[Console] Fix autocomplete inserting comma in triple quotes (#123572)
* Fix autocomplete inserting comma in triple quotes

* Fix inserting commas and flaky test

* Fixed problems on triple quotes and single quotes replacement.

* Fixed cursor position after adding a comma to the prefix.

* Final generic solution for multiple edge cases.

Co-authored-by: Muhammad Ibragimov <muhammad.ibragimov@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Yaroslav Kuznietsov <kuznetsov.yaroslav.yk@gmail.com>
2022-01-31 11:58:13 +02:00
Diana Derevyankina
110dc8b7cb
[TSVB] Add more functional tests for Timeseries Annotations (#123906)
* [TSVB] Add more functional tests for Timeseries Annotations

* Move common code to beforeEach block

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-01-29 00:29:04 +03:00
Greg Thompson
e84f370ef0
Upgrade EUI to v46.1.0 (#123652)
* eui to 46.1.0

* use optimize build

* dataGridWrapper -> euiDataGridBody

* remove unused dep from bazel

* use column-index and row-index attrs

* datagrid test fixes

* prevent duplicate global styles

* snapshot updates

* rendering_service test

* update comment

* clean up

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-01-28 08:53:36 -06:00
Nick Partridge
71e9c609fc
Upgrade elastic charts v43.1.1 (#121593) 2022-01-27 12:15:33 +01:00
vladpro25
df163c63f6
[Kibana][Dev Console][Autocomplete] Autocomplete missing comma on correct location (#121611)
* Fix autocomplete missing comma on the correct location

* Add a test case


Co-authored-by: Muhammad Ibragimov <muhammad.ibragimov@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-01-20 09:11:50 +05:00
Diana Derevyankina
a9ec1be357
Combine visualizations and visualize plugins (#121550)
* [WIP] Combine visualizations and visualize plugins

* Revert some changes and do some refactoring

* Refactor some code

* Fix some tests

* Fix functional tests and some jest test cases

* Update telemetry

* Fix get_visualization_instance.test and plugin-list.asciidoc

* Refactor some code

* fix CI

* Add visualizations to vis_default_editor tsconfig

* Revert changes related to telemetry and permissions

* Add dashboard to timeseries tsconfig.json

* Update limits file

* Update translation keys

* Add capabilitiesProvider back to server and replace visEditorsRegistry getter and setter with service

* Update mocks.ts

* Revert changes related to visEditorsRegistry

* Get rid of visEditorsRegistry getter and setter

* Remove dashboard from timeseries/tsconfig.json

* Return back dashboard dependency to timeseries/tsconfig.json, rename applicaion folder to visualize_app and APP_NAME to VISUALIZE_APP_NAME, revert types.ts

* Remove comma in .i18nrc.json

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2022-01-12 16:49:22 +03:00
Devon Thomson
825ea5b919
[Controls] Move Controls To Their Own Plugin (#121668)
* Moved controls out of Presentation Util and into their own plugin
2022-01-06 13:33:52 -05:00
Alexey Antonov
31b805a314
[TSVB] Fix the broken "aggregate function" in TSVB table (#119967)
* [TSVB] Fix the broken "aggregate function" in TSVB table

Closes: #91149

* [TSVB] Table series filter and aggregation function applied at the same time cause an error

# Conflicts:
#	src/plugins/vis_types/timeseries/server/lib/vis_data/request_processors/table/split_by_everything.ts
#	src/plugins/vis_types/timeseries/server/lib/vis_data/request_processors/table/split_by_terms.ts

* some work

* filter terms columns

* fix error message on no pivot_id

* fix CI

* enable aggregation function for entire timerange

* fix PR comments

* update check_aggs

* fix series aggs for table

* unify error messages

* fix pr comment: restrictions: UIRestrictions = DEFAULT_UI_RESTRICTION

* fix i18n translation error

* fixes translations

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-01-04 15:27:46 +03:00
Greg Thompson
604409b3de
Upgrade EUI to v43.1.1 (#120935)
* eui to v43.0.0

* update themeprovider types

* update sass import location

* storyshots

* snapshots

* jest

* jest

* timepicker functional test helpers

* snapshots

* timepicker functional test helpers

* invert checked logic

* fix i18n token

* snapshots

* handle new refresh interval operations order

* refactor refresh interval logic, test

* jest

* timepicker popover order

* eui to v43.1.0

* jest

* jest

* jest

* euicode selector

* jest

* functional tests

* functional tests

* timepicker

* bump timeout

* conditional click to close

* clean up

* eui to v43.1.1

* clean up

* loading background

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-20 10:48:36 -06:00
Hannah Mudge
b6013d14f7
[Dashboard] Fix blank panel save and display issue. (#120815)
* Added special case to panel comparison.

* Fixed panel title behaviour when linking/unlinking to/from the library.

* Added panel title test suite.

* Made the injection of the 'savedSearchId' key conditional on if it is defined when unlinking.

* Adjusted use of 'setValue()' based on feedback from @dmlemeshko

* Refractor test suite.

* Improved code for removal of title on library link.
2021-12-14 17:42:42 -07:00
Trevor Pierce
34dd8964e3
Bumping EUI to v41.2.2 (#119205)
* Bumping EUI to v41.2.0

* Updating translations for EUI Super Select.

* Bumping to v41.2.1 for an EUI fix.

* Updating ten Jest snapshots

* Removing reference to packaged datepicker now in EUI.

* Final removal of packaged Datepicker reference.

* Updating snapshots and datagrid test defaults.

* Fixing last functional test for data grid

* Reverting data source to upstream example for one test.

* Adding a fix for _data_table.ts test.

* Adding a fix for _data_table)notimeindex_filters.ts

* Bumping to 41.2.2 patch fix

* Removing unneeded test code and updating comment

* Bumping to 41.2.3 for bug fix.

* Adding a missed file.

* Adjusting test for tooltip overlap assertion.

* Updating two tests in Security Solution Platform.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-08 14:23:48 -06:00
Devon Thomson
bf2779c708
added functional tests for dashboard controls integration (#119755) 2021-12-06 13:58:33 -05:00
Stratoula Kalafateli
fea4d2acfb
[Visualize] New heatmap implementation with elastic-charts (#118338)
* [WIP][Heatmap] Creates implementation with elastic-charts

* Fix types and connection with vislib

* Add coloring options

* Brush, click events, coloring etc

* Cleaning up the expression function

* Add legend picker, fix sorting and other fixes

* Further fixes

* Use the shared expression to Lens and cleanup

* PrepareLogTables for new expression function

* Use common renderer and expression function with lens

* Fix i18n

* Small tweaks

* Add unit tests

* Adds a unit test to the heatmap component

* update plugin list

* Fix types

* Fix types

* update limits

* Change to the expression function

* Cleanup translations

* Refactor to use vis

* Fix types

* further cleanup of the translations

* register new setting

* Fix sorting for histogram

* Adds functional tests for the new nisualize heatmap

* Cleanup

* Fix

* Apply PR comments

* Address PR comments

* Fix i18n

* Fix i18n

* Makes the <Heatmap /> id dynamic

* reverse

* fix translation file

* Apply design PR comments

* Fix package

* More fixes

* Fix brush problem

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-30 19:40:02 +02:00
Anton Dosov
a906706da8
Unskip add runtime field test (#118303) 2021-11-11 19:57:14 +01:00
Anton Dosov
c53cccbe32
Unskip dataview validation test (#118318) 2021-11-11 18:12:05 +01:00