Commit graph

5239 commits

Author SHA1 Message Date
Quynh Nguyen (Quinn)
6f80844a1d
[8.4] [ML] Fix Anomaly charts time and query not being added to dashboard and case (#140147) (#141681)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-09-23 15:00:38 -05:00
Kibana Machine
1cef16702a
[dashboard controls] skip failing test on cloud (#141291) (#141418)
(cherry picked from commit aa11010f01)

Co-authored-by: liza-mae <liza-mae@users.noreply.github.com>
2022-09-22 06:27:14 -07:00
Kibana Machine
69ab3ea3d1
[Discover] Fix columns management of saved search embeddable (#140799) (#141051)
* [Discover] fix manage of saved search embeddable columns

* [Discover] add functional test

* [Discover] rename function

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

Co-authored-by: Dmitry Tomashevich <39378793+dimaanj@users.noreply.github.com>
2022-09-20 04:51:38 -07:00
Kibana Machine
3e42c1159c
Unskip filter panel a11y test suite (#139834) (#141008)
(cherry picked from commit a823c3807e)

Co-authored-by: Bhavya RM <bhavya@elastic.co>
2022-09-19 15:27:55 -07:00
Kibana Machine
d138ee997b
[Console] Fix status badges not showing on cloud (#140873) (#140904)
* Fix status badges not showing up in cloud

* Unskip related test file

Co-authored-by: Muhammad Ibragimov <muhammad.ibragimov@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit cd52a2e641)

Co-authored-by: Muhammad Ibragimov <53621505+mibragimov@users.noreply.github.com>
2022-09-19 01:57:45 -07:00
Kibana Machine
776e136206
[console] skip failing test on cloud (#140837) (#140853)
* [console] skip failing test on cloud

* Fix spacing

(cherry picked from commit 22e78f9bb9)

Co-authored-by: liza-mae <liza-mae@users.noreply.github.com>
2022-09-15 12:22:14 -07:00
Kibana Machine
eefb087116
[Discover] Fix saved search embeddable rendering (#140264) (#140476)
* [Discover] fix rendering issue

* [Discover] add functional test

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

Co-authored-by: Dmitry Tomashevich <39378793+dimaanj@users.noreply.github.com>
2022-09-12 04:07:03 -07:00
Maja Grubic
b2606fa05e
[Kibana Overview] Fix failing test (#139112) (#140431)
* [Kibana Overview] Fix failing test

* Remove comment

* Fix regexp

* Add a comment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 19293950ae)
2022-09-09 10:08:06 -07:00
Spencer
dc5e02e5a8
[8.4] [ftr/testSubjects/clickOnEnabled] retry on stale-element exceptions (#139964) (#140324)
* [ftr/testSubjects/clickOnEnabled] retry on stale-element exceptions (#139964)

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

# Conflicts:
#	test/functional/page_objects/settings_page.ts
#	test/functional/services/filter_bar.ts
#	x-pack/test/functional/services/ml/lens_visualizations.ts

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-09-08 11:43:53 -07:00
Kibana Machine
e23dcd5b91
Dashboard panel a11y tests refactoring and addition of missing tests (#139597) (#139759)
(cherry picked from commit 275e319406)

Co-authored-by: Bhavya RM <bhavya@elastic.co>
2022-08-30 12:53:00 -07:00
Jonathan Budzenski
81d90fe65d skip flaky suite. #138652 2022-08-29 10:31:28 -05:00
Jeramy Soucy
f5faf5cba2
[8.4] Remove file-type dependency via jimp (#137214) (#139433)
* Remove file-type dependency via jimp (#137214)

* Removed file-type from package.json deps.
Updated jimp to 0.16.1.
Updated light & dark dashboard baseline screenshots to resolve failure due to resize degradation.

* Replaced jimp with sharp and pixelmatch. Eliminates several deps, including file-type.
Eliminates quality degradation from image resizing.

* Fixed copy paste error, which lead to pass positives and errors.

* Integrated updateBaselines flag into dashboards report testing.
Fixed sharp resize to fit and not truncate the original image.

* Removed accidental '.only'

* Reverted area chart baseline.

* Removed explicit declaration of sharp from package.json.

* Adjusted dashboard screenshot size in attempt to eliminate layout scaling issues in CI testing.

* Reverted dashboard screenshot size. Lowered tolerance in dashboard PNG reporting tests to force failure and collect CI screenshots.

* Changed session save location for dashboard report images for better CI reporting.

* Fixed small dashboard baseline screenshot with correct aspect ratio.

* Updated 2 basline screenshots from CI. Lowered PNG match tolerance for dashboard screenshots to 1% for investigation of remaining screens.

* Update of dashboard controls light mode baseline.
Change of forced container width size in large dashboard layout test.

* Updated dashboard controls dark mode baseline screenshot.
Adjusted forced container width in large dashboard layout test for troubleshooting.

* Lowering tolerance of PNG compare tests from 9% to 1% for troubleshooting.
Replaced references to dedundant image service with existing, more adopted reporting service.
Ideally, the PNG functions of the reporting service would be merged with the screenshot service as an image service.

* Reverting tolerance of PNG compares to 0.09. Will create GH issues for specific teams to investigate.

* Implemented PngService to provide an accessible single reference to PNG compare testing.
Removed redundant implementations and references.

* Updated service reference and call to png compare function left out of last commit.

* Updated another missed PNG reference.

* Removed superfluous parameter.

* Update after bootstrap

* Updated area chart baseline to match new render with panel filters.

* Reverted limits in dashboard snapshot tests to original values.

* Merge and rebuild.

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

* Update to dashboard screen test area chart baseline.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-29 07:05:09 -07:00
Kibana Machine
e03fa06716
[Archive Migration] batch 3 of removing es_archives/empty_kibana (#139319) (#139329)
* replace es_archiver/empty_kibana with cleanStandardList

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

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

Co-authored-by: Lee Drengenberg <lee.drengenberg@elastic.co>
2022-08-23 16:55:41 -07:00
Kibana Machine
66b6aaad19
Add 'fork' to child_process hardening tests (#139222) (#139292)
(cherry picked from commit bdbd227bb1)

Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
2022-08-23 05:48:33 -07:00
liza-mae
28c5a8c647
Fix cloud test failures for 8.4 (#139155) (#139259)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 6e87b01f85)
2022-08-22 19:20:44 -07:00
Kibana Machine
eca1fe046c
[Upgrade] Fixes cloud upgrade test failures for 8.x (#138684) (#139101)
* Update discover and canvas tests

* Add length

* Update rule name to have no spaces

* Fix calling function

* Try to close tooltip

* Fix rules spinner

* Move toggleLayerVisibility to gis_page

* Add wait for layers to load

* Remove unused declaration

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

Co-authored-by: liza-mae <liza-mae@users.noreply.github.com>
2022-08-18 06:50:52 -07:00
Kibana Machine
9b7dce129a
Fix console tests on cloud (#138682) (#138755)
* Fix console test on cloud

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* Fix access to sample data

* Clean up access after test

* Fix restore test

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

Co-authored-by: liza-mae <liza-mae@users.noreply.github.com>
2022-08-17 07:45:52 -07:00
Kibana Machine
3730c97ad0
Fix management test to run against cloud (#138656) (#138664)
* Fix test to run against cloud

* Keep original names

(cherry picked from commit 94b51c4da5)

Co-authored-by: liza-mae <liza-mae@users.noreply.github.com>
2022-08-11 13:13:33 -07:00
Kibana Machine
6c6a872ebd
[Discover] Fix discover table cloud failure (#136487) (#138391)
* [Discover]

* [Discover] try to exclude one test

* [Discover] move doc navigation tests into one file

* [Discover] exclude doc navigation tests

* [Discover] change test order

* [Discover] skip one test file

* [Discover] revert changes to check build result

* [Discover] try to skip one file

* [Discover] add test_logstash_reader role

* [Discover] unskip test file

* [Discover] add roles per each test which uses logstash

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

Co-authored-by: Dmitry Tomashevich <39378793+dimaanj@users.noreply.github.com>
2022-08-09 07:25:29 -07:00
Kibana Machine
800fea9292
[Archive Migrations] don't use es_archiver/empty_kibana in Shakespeare tests (#137797) (#138176)
* don't use es_archiver/empty_kibana, speed up steps

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* revert change to listing page

* revert this change and do in another PR

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

Co-authored-by: Lee Drengenberg <lee.drengenberg@elastic.co>
2022-08-04 15:26:57 -07:00
Kibana Machine
a1b9be86e2
[ftr/discover] split up configs (#137629) (#137692)
(cherry picked from commit 742e040ae3)

Co-authored-by: Spencer <spencer@elastic.co>
2022-08-01 05:56:11 -07:00
Kibana Machine
1b11847f34
[Discover] Disable refresh interval for data views without time fields and rollups (#137134) (#137316)
* [Discover] Fix refresh interval running for non time series data

* [Discover] Clean up disable auto refresh interval code, and fix issue where going back and forward through history was not updating data view

* [Discover] Clean up discover_state tests

* [Discover] Add tests for disable auto refresh

* [Discover] Add comments for state syncing code

(cherry picked from commit 998b11a9a8)

Co-authored-by: Davis McPhee <davis.mcphee@elastic.co>
2022-07-28 23:46:42 -07:00
Joe Reuter
2348f56bd3
[TSVB] Format the label with the right default formatter (#136934)
* format the label with the right default formatter

* Update convert_series_to_vars.js

* fix test

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
2022-07-27 16:33:47 +02:00
Byron Hulcher
1833bb314c
[Enterprise Search] Updated Fleet Integration tiles (#137231) 2022-07-26 19:49:20 -07:00
Bhavya RM
004cfbb227
Migrating test/new_visualize_flow/fixtures/es_archiver/kibana to kbnArchiver (#136768) 2022-07-26 11:59:25 -04:00
Stratoula Kalafateli
a296e4cc97
[Discover] Supports SQL query language (#134429) (#136702)
* [Discover] Supports SQL query language (#134429)

* Move the add dataview action above the dataview selection panel

* Implements a new selectable on the dataview picker for the text based languages

* Implementation of the transition modal when on SQL mode and select a dataview

* Fix es lint

* Change switch modal button modal icon

* Lazy load components

* Small changes on the styling of the switch without saving button

* Initialization of mocaco editor

* Change to the type

* Fixes types checks

* New submit button for query mode

* Implememtation of the expanded mode of the editor

* Implement documentation

* Implementation of the oneliner mode with ellipsis

* Some  fixes on the resizer

* Implementation of the errors layout, WIP

* Fetch SQL data in Discover

* Fix expression test

* Fix editor zIndex

* Fix types error

* Fix type check in Discover

* Fix more types

* some CI fixes

* Fixes

* Cleanup after merge

* Remove from state

* Connect search errors with the unified search editor

* Add error mrkers in unified search editor

* Save and open saved searches

* Filter out saved searches from text based languages

* Some fixes

* Fix unit tests

* Fix checks

* On save and exit modal implementation

* Add shortcut on the editor for submit query

* Fix wrong condition

* Initial types change

* Use regex to find the index pattern string

* Fix some types and cleanup

* Fix types

* Fix some types

* Further fixes

* More fixes

* More fixes

* Fix visualize types

* more

* More fixes

* Fixes more types

* Fix dashboard types

* Fix dashboard types

* Controls plugin types

* Fix Lens types

* Fix data plugin types

* Fix types in Lens 2

* buildEsConfig type fixes

* Fix observability types

* Fix maps types

* data visualizer types

* Fix ml types

* xpack rest types

* Fix jest test

* Fix

* Move helper functions to es config

* fix bug on breadcrumb click

* Fix time field bug

* Add enableSql advanced setting to discover for enabling the sql mode

* Make the documentation component more dynamic

* Add some comments, improvements

* Enhance storybook with the textbased languages

* Update storybook with the error state of the editor

* Adds a readme for the editor and fixes the modal mobile version

* [Discover] improve test and storybook for new data type

* [Discover] add functional tests

* Add aggregate functions to the documentation

* [Discover] fix tests

* Add some unit tests

* [Discover] fix linting

* [Discover] update linting

* More unti tests

* Dataview picker unit tests

* Fix a bug on the dataview picker

* Add unit tests for the editor

* Fix jest test

* [Discover] apply suggestions

* [Discover] adjust styles

* Fix some bugs and select columns in the sql mode

* [Discover] fix eslint and tests

* [Discover] update unit tests

* Fix bug on transitioning from sql mode to dataview mode

* [Discover] fix tests

* Design fixes on the errors messages

* [Discover] fix ci

* Update the columns only if the query changes

* [Discover] change isPlainRecord retrieval method

* Fix bug on cleanup

* Fix bug on opening a saved search

* [Discover] fix comments

* [Discover] fix bug with browser refresh

* [Discover] fix functional

* [Discover] fix another functional

* Fix ordering lost when the user refreshes the browser

* [Discover] revert use_discover_state

* [Discover] revert functional impl

* Fix security solution types

* Casting dashboard plugin

* Revert change

* type param

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* Revert types changes

* More reverts

* Types fixes

* Fix Discover jest test

* Fix context app jest test

* Final types changes

* Fixes unit test

Co-authored-by: Dzmitry Tamashevich <diaamnj@mail.ru>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>

* Fix types

* Fix jest test

* More design fixes

* Update advanced setting description

* Further design changes

* [Discover] Remove document explorer header column edit data view field functionality (#136743)

* remove Edit data view field for SQL

* Fix the fix

* [Discover] Implement SQL data fetching for embeddable (#136793)

* remove Edit data view field for SQL

* Fix the fix

* Implement SQL for embeddable

* Fix non-saved-search embeddables

* Fix reporting bundle size

* Allow filters on dashboard level for sql searches

* Fix the radius on the editor

* Add vertical padding on the editor

* Change the theme

* Address PR comments

* Fix types

* Address some of the comments

* Fix bug on transitioning from SQL to dataview mode with the modal dismissed

* More types fixes

* Design review comments

* Discovery team review comments

* Fix jest tests

* Fix bug on navigating from the SQL mode to the dataview mode and back in sql mode by clicking the breadcrumb

* Update src/plugins/discover/public/application/main/hooks/use_discover_state.ts

Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>

* Add padding to the top of the editor without creating any bug

* Add some padding to the bottom without creating any bug

* Fixes undo bug

* Fix confusing naming of variable

* Fix nested selects

* Update texts for transition modal and warning

* Make it work with dashboard Query

* Address some of the comments

Co-authored-by: Dzmitry Tamashevich <diaamnj@mail.ru>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
2022-07-26 10:51:31 +03:00
Clint Andrew Hall
b459ffa4c6
[home] Sample Data Tab w/ callout UI (#136790)
* [home] Sample Data Tab w/ callout UI

* Fix tests

* Update packages/home/sample_data_tab_content/src/demo_env_panel.tsx

Co-authored-by: Kelly Murphy <kelly.murphy@elastic.co>

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* Fixes

* Fixes

* Update test/functional/page_objects/home_page.ts

* Fix tests

* Add telemetry

* Add docs, more telemetry

Co-authored-by: Kelly Murphy <kelly.murphy@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-07-25 18:34:32 -07:00
Spencer
36260fb358
[expressions] remove root-level redirect, import from common (#136997)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-07-25 08:07:43 -07:00
Alexey Antonov
d4bb959bea
[Step 3] VisEditors Telemetry enhancements (add new agg-based and lens telemetries) (#135615)
* initial comit

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* push chart_expressions logic

* update tests

* fix JEST

* push some telemetries

* fix some cases

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* update tests

* add some lens part

* add handlers.logRenderTelemetry method

* visGroup -> originatingApp

* remove visTpe, extra, onlyExtra

* remove handlers.logRenderTelemetry from handlers

* remove context from snapshots

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* add lens operations telemetry

* fix heaatmap, vislib

* push some telemetries

* cleanup

* push some logic

* fix merge conflicts

* push some logic

* add lens map telemetry

* add render_lens_vis_cases

* add render_lens_vis_observability_exploratory_view

* cleanup

* cleanup

* make getRenderEventCounters optional

* add summary_row and color_by_value telemetries

* try to fix double rendering

* update xy telemetries

* fix TSVB

* fix lens

* fix Timelion

* add mixed_xy telemetry

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* Update x-pack/plugins/observability/public/components/shared/exploratory_view/lens_embeddable.tsx

Co-authored-by: Shahzad <shahzad31comp@gmail.com>

* Update x-pack/plugins/observability/public/components/shared/exploratory_view/embeddable/embeddable.tsx

Co-authored-by: Shahzad <shahzad31comp@gmail.com>

* Update expression_renderer.tsx

* update originatingApp

* Update expression_renderer.tsx

* add JEST for core changes

* Update plugin.ts

* Update src/plugins/expressions/common/expression_renderers/types.ts

Co-authored-by: Michael Dokolin <dokmic@gmail.com>

* fix PR comments

* add renderComplete param to VisualizationContainer

* fix mixed_xy issue

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
Co-authored-by: Michael Dokolin <dokmic@gmail.com>
2022-07-25 15:33:10 +03:00
Joe Reuter
6e3f5850ff
stabilize legend filter click (#136925) 2022-07-25 01:38:54 -07:00
CJ Cenizal
9e1ce81ff3
[Console] Handle encoded characters in API requests (#136788)
* Revert "Revert "[Console] Handle encoded characters in API requests (#135441)" (#136750)"

This reverts commit 44d4b2a8d7.

* Debug

* Fix requests failing on cloud

Co-authored-by: Muhammad Ibragimov <muhammad.ibragimov@elastic.co>
2022-07-22 12:20:55 -07:00
Davis McPhee
90091baede
[Discover] Fix issue where Discover breadcrumb loses context after page refresh or when opening in a new tab (#136749) 2022-07-22 16:17:15 -03:00
Muhammad Ibragimov
1cbf53e355
[Console] Fix flaky tests (#136498)
* [Console] Fix flaky tests for comments and folds]

* Fix flaky test

* Remove dismissTutorial

Co-authored-by: Muhammad Ibragimov <muhammad.ibragimov@elastic.co>
2022-07-22 11:09:22 -07:00
Tim Sullivan
0b8b66f73f
[Data views] Add pre-configuration options to runtime field editor fly-out (#136769)
* [Data views] Add pre-configuration options to runtime field editor fly-out

* fix test

* more polish

* update example app functional test

* fix functional test

* improve comment

* fix unexported public apis

* comments for public apis

* restrict runaway metrics changes

* more comments for public api

* fix fn test

* revert updates to api_docs

* more public api comments in data_view_field_editor

* fix api comments

* add public api export

* clean up FieldFormatConfig types

* cleanup

* allow checkbox to be visually checked
2022-07-22 10:30:01 -07:00
Muhammad Ibragimov
4ad72fc876
[Console] Fix syntax highlighting for triple quotes (#136719)
* [Console] Fix syntax highlighting for triple quotes

* Add tests

Co-authored-by: Muhammad Ibragimov <muhammad.ibragimov@elastic.co>
2022-07-22 21:27:25 +05:00
Alejandro Fernández Haro
0865587302
Navigate to home app FTR helper should handle the Welcome screen (#136808) 2022-07-21 15:13:51 +02:00
CJ Cenizal
44d4b2a8d7
Revert "[Console] Handle encoded characters in API requests (#135441)" (#136750)
Preserve getResponseStatus page object function.
2022-07-20 17:15:44 -07:00
Spencer
b9436617f1
[ftr] prevent configs from using --oss flag (#136756) 2022-07-20 12:20:58 -07:00
Kibana Machine
c47cf1bb76 skip failing test suite (#136751) 2022-07-20 13:28:00 -04:00
Tre
7a54e0c675
[QA] Drop dead code (#136639)
* [QA][Code Coverage] Drop dead code

I'm hoping these jenkins related code coverage
scripts are no longer needed and can be removed.

* Dropping more after chatting with Spencer:
https://elastic.slack.com/archives/C5UDAFZQU/p1658234270426099
2022-07-20 16:18:25 +01:00
John Dorlus
c652cb4424
Migrate dashboard tests to use UI settings (#136585)
* Updated test to use uiSettings.

* Unskipped embeddable rendering testg.

* Removed timepicker reference that is unused.

* Removed comment of flaky test.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-20 01:03:34 -04:00
Hannah Mudge
b31b076b07
[Dashboard] Fix z-index of embPanel__header--floater (#136463)
* Remove panel wrapper element

* Fix functional tests to work without wrapper

* Remove duplicated code

* Re-add classes to right-justify in view mode

* Apply high z-index to children of floating header rather than parent
2022-07-19 18:15:31 +02:00
Tiago Costa
302bd423f3
chore(NA): eslint rule for disallowing naked eslint-disable (#136408)
* chore(NA): eslint rule for disallowing naked eslint-disable

* chore(NA): export new rule and update docs

* chore(NA): creation of rule in ts

* chore(NA): new corrected rule in ts

* refact(NA): remove old logic from older plugin

* docs(NA): update documentation

* docs(NA): update documentation

* docs(NA): update documentation

* refact(NA): include edge cases for better locating errors

* chore(NA): changed regex name

* docs(NA): correct name rule on docs

* refact(NA): use dedent in the template literals

* refact(NA): check for undefined

* fix(NA): introduces support for eslint-disable-line

* chore(NA): fix extra space

* test(NA): created more test cases

* chore(NA): rename plugin to eslint-plugin-disable

* docs(NA): update nav and operations landing page ids for eslint rule

* test(NA): use messageIds on test

* chore(NA): complete naked eslint disables with specific rules

* chore(NA): specific rules for a few naked eslint disable

* chore(NA): add focused eslint disable on big reindex_operation_with_large_error_message.ts file

* chore(NA): changes according PR feedback

* chore(NA): include specific eslint rules on latest naked eslint disable

* chore(NA): missing eslint disable specific rule

* fix(NA): remove comment for js annotator

* chore(NA): re add eslint focused disable rule to x-pack/plugins/osquery/cypress/support/coverage.ts

* chore(NA): re add eslint focused disable rule to x-pack/plugins/osquery/cypress/support/coverage.ts

* chore(NA): re add eslint focused disable rule to x-pack/plugins/osquery/cypress/support/coverage.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-19 17:11:04 +01:00
Julia Rechkunova
92a46f5344
[Discover] Allow for custom number of rows in the results and save the specified number with a Saved Search (#135726)
* [Discover] Persist rowsPerPage in app state and URL

* [Discover] Persist rowsPerPage in saved search objects

* [Discover] Make sure that rowsPerPage is persisted in saved search objects

* [Discover] Support rowsPerPage in embeddables

* [Discover] Allow to save a custom rowsPerPage option

* [Discover] Reflect custom size in the grid dropdown

* [Discover] Fix changing rowsPerPage on Dashboard page

* [Discover] Skip saving rowsPerPage for legacy view

* [Discover] Fix sample size for rendering an embeddable

* [Discover] Update tests

* [Discover] Update tests

* [Discover] Update mapping

* [Discover] Revert setting a default state

* [Discover] Remove rowsPerPage input from SaveSearch modal

* [Discover] Update tests

* [Discover] Ignore the setting for legacy view

* [Discover] Add `discover:sampleRowsPerPage` setting to Advaced Settings

* [Discover] Allow to save rowsPerPage on Dashboard for legacy view too

* [Discover] Add tests

* [Discover] Add tests

* [Discover] Extend "select" type to return values as numbers too

* [Discover] Fix values changes

* [Discover] Update types to support also lists with numbers

* [Discover] Fix disclaimer updates

* [Discover] Update setting copy

* [Discover] Simplify saving of rowsPerPage

* [Discover] Extend number of rowsPerPage options for the legacy view too

* [Discover] Move to utils

* [Discover] Fix deps

* [Discover] Add tests

* [Discover] Update settings copy

* [Discover] Limit max number of rows per page for an embedded legacy table

* [Discover] Prevent invalid values for a custom rows per page

* [Discover] Add tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-19 15:54:17 +02:00
Stratoula Kalafateli
004369dd14
[Lens] Supports include and exclude terms (#136179)
* [Lens] Supports include and exclude terms

* Change type

* Fix pattern logic

* Adds unit tests

* Implement it with 2 extra properties on the expression

* Distinguish the regex and exact match bejhavior

* Enables transferring of include/exclude from TSVB

* Fix tests

* Fix tests

* Update all snapshots

* Update texts

* Revers screenshots

* Use debounce value instead

* Placeholder change

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2022-07-19 15:30:23 +03:00
Bhavya RM
6832a16cf4
Migrating scroll_count esArchiver to kbnArchiver (#136535) 2022-07-19 06:03:40 -04:00
Nodir Latipov
5c237e10ac
[Unified Search] Change reference to dataView in each filter when switching dataView (#133074)
* feat: add new ui action

* refact: update cofig panel

* feat: add execute UI action

* feat: added test and updated onRemoveLayer logic

* push some logic

* feat: update ref when removing layer

* feat: update test

* rename UPDATE_USED_DATA_VIEWS_TRIGGER/ACTION to UPDATE_FILTER_REFERENCES_TRIGGER/ACTION

* add tests

* refact: config panel

* fix: test

* fix: test

* fix: test

* refact: test

* fix: test

* fix: test

* fix: test

* fix test

* update JEST

* fix functional

* feat: added use datasource method for getting used data view

* refact: renamed comment and removed as IndexPatternPrivateState

* refact: moved change ref logic from filter_manger to UI action
2022-07-18 21:59:04 +05:00
Spencer
4f817ad8a0
[kbn/pm] rewrite to avoid needing a build process (#136207)
* [kbn/pm] rewrite to avoid needing a build process

* uncomment timing reporting

* throw in a few missing comments

* Update README.md

* remove extra SomeDevLog interface from ci-stats-core

* remove non-stdio logging from bazel_runner, improve output formatting

* use private fields instead of just ts private props

* promote args to a positional arg

* optionally require the ci-stats-reporter after each command

* allow opt-ing out of vscode config management

* reduce to a single import

* add bit of docs regarding weird imports and package deps of kbn/pm

* clean extraDirs from Kibana's package.json file too

* tweak logging of run-in-packages to use --quiet and not just CI=true

* remove unlazy-loader

* add readme for @kbn/yarn-lock-validator

* convert @kbn/some-dev-logs docs to mdx

* remove missing navigation id and fix id in dev-cli-runner docs

* fix title of some-dev-logs docs page

* typo
2022-07-18 08:46:13 -07:00
Hannah Mudge
11f7ace59f
[Dashboard] Filter out experimental visualizations when labs setting is disabled (#136332)
* Filter out experimental vis if labs disabled

* Remove duplicated file

* Add functional tests
2022-07-18 08:42:36 -07:00
Bhavya RM
1aa3a12e7f
Migrating test/api_integration/fixtures/es_archiver/management/saved_objects/search to kbnArchiver (#135996) 2022-07-18 10:24:51 -04:00