* 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>
* 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>
* 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>
* 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>
* 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>
* [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>
* 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>
* [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>
* 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>
* [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>
* [Console] Fix flaky tests for comments and folds]
* Fix flaky test
* Remove dismissTutorial
Co-authored-by: Muhammad Ibragimov <muhammad.ibragimov@elastic.co>
* [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
* 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>
* 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
* 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>
* [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>
* [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>
* 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
* [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