Commit graph

5599 commits

Author SHA1 Message Date
Rashmi Kulkarni
49986dab34
testing a flaky functional test ( chained input control) (#144770)
trying to fix: https://github.com/elastic/kibana/issues/96997

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-11-09 09:02:16 -08:00
Dmitry Tomashevich
a9162f7481
[Discover] Enable esQuery alert for adhoc data views (#140885)
## Summary

Closes #142514 #142389

This PR does the following: 
- Enables to create `esQuery` (in KQL or Lucene mode) using adhoc data
views from discover and management pages
- Adds `explore matching indices` button to data view picker in alert
flyout
- Adding adhoc data views from alert flyout should propage them to a
main discover picker


### Checklist

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [x] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [x] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [x] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))

Co-authored-by: Davis McPhee <davis.mcphee@elastic.co>
2022-11-09 18:55:34 +03:00
Ahmad Bamieh
62425648c7
[Upgade Assistant] Enable UA for minor upgrades (#143544)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-11-08 18:57:42 -07:00
John Dorlus
733291ae46
Getting started ccs tests (#144656)
* Removed comment of the issue that was referenced for the skip. But the tests were already skipped.

* Added a describe block for the tests that involve space b. There is an accessibility issue that causes one test to fail and then the subsequent test fails. The issue has been logged. The rest of the tests have been unskipped.

* Added CCS Test for integration test.

* Added CCS config for getting started shakespeare tests.

* Removed unused reference.

* Restored tests.

Co-authored-by: cuffs <cuffs@cuffss-Office-MacBook-Pro.local>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-11-07 18:30:07 -05:00
Bree Hall
4e9f1c0d04
Bumping EUI to version 67.1.8 (#141279)
* Updated EUI to version 67.1.2. Updated instaces of ButtonColor from EUI to EuiButtonColor.

* Updated to EuiCard instances that utilize the betaBadgeProps object to return an empty string instead of undefined when the label is unavailable

* Removed two instances of the deprecated internetExplorerOnly() mixin

* Updated two instances of the ButtonColor import to EuiButtonColor as is was renamed in PR #6150

* Updated snapshots in Jest Test Suite #1 to account for EuiButton and EuiCard Emotion conversions. Updated snapshots for EuiTooltip as it now contains the new EuiToolTipAnchor component that replaced the tooltip anchor styles

* Updated snapshots in Jest Test Suite #2 to account forEuiButton, EuiDescriptionList, EuiButtonIcon, and EuiBadge Emotion conversions.

* Updated snapshots in Jest Test Suite #3 to account for EuiDescriptionList, EuiButton, and EuiBadge Emotion conversions. Updated snapshots for EuiTooltip as if now contains the new EuiTooltipAnchor component that replaced the tooltop anchor styles

* Updated snapshots in Jest Test Suite #4 to account for EuiButton Emotion conversion.

* Updated snapshots in Jest Test Suite #5 to account for EuiButton Emotion conversion.

* Updated snapshots in Jest Test Suite #8 to account for EuiButtonIcon and EuiButton Emotion conversions. Updated snapshots for EuiTooltip as it now contains the new EuiTooltipAnchor component that replaced the tooltip anchor styles.

* Updated snapshots in Jest Test Suite #9 to account for EuiFlyout and EuiButton Emotion conversions.

* Updated snapshots in Jest Test Suite #10 to account for EuiButton, EuiBadge, EuiButtonIcon, and EuiCard Emotion conversions. Updated snapshots for EuiToolTtip as it now contains the new EuiTooltipAnchor component that replaced the tooltip anchor styles

* Updated instances of EuiButtonIconColor to use EuiButtonIconProps['color'] as it was removed in PR #6150

* Updated tests that target EuiButton to simulate click events to target a generic button to prevent undefined click event errors

* Updated snapshots in Jest Test Suite #1 to account for EuiButton and EuiCard Emotion conversions

* Added the EuiFlyout mixins and variables to Lens Sass file as EuiFlyout has been converted to Emotion and the Sass styles are no longer available in EUI

* Added the EuiCallOutTypes variable to Step Progress Sass file as EuiCallOut has been converted to Emotion and the Sass styles are no longer available in EUI

* Updated snapshots in Jest Test Suite #2 to account for recent Emotion conversions.
Updated snapshots in server_status.test.tsx to render EuiBadge before checking the snapshots to reduce the snapshot churn caused by Emotion.
Updated tests that target EuiButton to simulate click events to target a generic button to prevent undefined click event errors

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

* Added imports for the added flyout mixin. Removed references to EuiCallOut mixin as the component has been converted to Emotion and is no longer available for use.

* Updated unit tests and snapshots in Jest Test Suite #10.
Updated snaphshots to account for EuiBadge, EuiDescriptionList, EuiFlyout, and EuiCard Emotion conversions. Updated snapshots for EuiTooltip as it now contains the new EuiTooltipAnchor component that replaced the tooltip anchor styles.
Updated tests that target EuiButton to simulate click events to target a generic button element to prevent undefined click event errors

* Updated unit tests in Jest Test Suite #11 that target EuiButton to simulate click events to target a generic button to prevent undefined click event errors

* Updated unit tests in Jest Test Suite #12 by updating tests that target EuiButton to simulate click events. Instead, these tests now target a generic button element to prevent undefined click event errors

* Updated unit tests in Jest Test Suite #1 by updating tests that target EuiButton to simulate click events. Instead, these tests now target a generic button element to prevent undefined click event errors

* Updated unit tests in Jest Test Suite #2 by updating tests that use EuiButton to simulate click events. Instead, these test have been updated to target a button element to prevent undefined click event errors.

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

* Updated reference to mixins Sass file.
Updated snapshots for Jest Test Suite #5 to account for EuiButton Emotion conversion. Updated unit tests that target EuiButton to simulate click events. These tests have been updated to target a button element to prevent undefined click event errors

* Updated unit tests in Jest Test Suites 3, 7, 8, 13, and 14.
Updated snapshot to account for EuiButton Emotion conversion.
Updated tests that target EuiButton to simulate click events. These tests now target a generic button element to prevent undefined click event errors.
Updated a few snapshots by adding .render() before checking the snapshot. This will prevent large snapshots coming from recent Emotion conversions

* Updated snapshots in Jest Test Suite #10 to account for the recent EuiButton Emotion conversion

* Updated unit tests in Jest Test Suite #2 by editing tests that target EuiButton to simulate click events. These tests now target a button element in order to prevent undefinde click event errors

* Updated snapshots in Jest Test Suite #10 to account for EuiButton and EuiDescriptionList Emotion conversions

* Updated test cases in Jest Test Suites 3, 7, and 8. Updated snapshots to account for EuiButton and EuiPagination Emotion conversions.
Updated tests that target EuiButton to simulate click events. These tests now target a button element to prevent undefined click errors

* Updated test cases in Jest Test Suite 14. Updated snapshots to account for EuiButton Emotion conversion. Opted to use .render() when updating a few snapshots to reduce the large length of snapshots caused by Emotion

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

* Revised a change to betaBadgeProps to ensure that the label is available. If not, the value for the badge with be set to undefined.

* Resolved two linting errors

* Resolved two linting errors

* Updated Jest unit tests in various suites.
Updated snapshots to account for EuiButton Emotion conversion. Updated snapshots for EuiTooltip as it now contains the new EuiTooltipAnchor component that replaced the tooltip anchor styles.

* Updated EuiFlyout in query_flyout.tsx to remove the onClick function from maskProps as it is no longer available. Updated this flyout to use ownFocus and not to close when the overlay mask is clicked.

* Removed the use of EuiButtonIconColor in favor of EuiButtonIconProps['color']

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

* Updated Cypress test looking for strict equality on EuiPaginationButton class names to match a substring of the Emotion generated class name

* Removed unneeded debugging code. Updated snapshots for various test suites to account for the recent EuiButton Emotion conversion

* Updated a few EuiButton, EuiButtonEmpty, and EuiText components that set the color as ghost. The ghost color mode has been deprecated as of PR #6150. These components now are wrapped in EuiThemeProvider with a dark colorMode to create the previous ghost color.

* Resolved  TS error with EuiCard betaBadgeProps

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

* Remove references to now-removed EuiFlyout CSS classes/vars

* Remove now-removed euiBadge className references

- Convert directly to EuiBadge instead of using CSS

- Remove confusing and now-possibly-irrelevant CSS badge overrides - left/right icons are now set via JSX and not via flex-direction

* Pre-emptively fix various euiOverlayMask CSS overrides

- this data attr isn't technically in yet but will be once https://github.com/elastic/eui/pull/6289 merges

- at the very least this isn't breaking any more than it currently already is!

* Update to v67.1.3

* v67.1.4

* Resolved test failing test case in Security/Manage/Blocklist. The test did not remove focus from the last combo box in the form, which didn't allow the disbaled attribute to be removed from the flyout submit button. I've updated the mock file for Blocklist to return focus to the first form element in the flyout to allow the disabled attribute to be removed.

* Updated snapshots to account for the recent EuiText Emotion conversion

* Fix Log's custom tooltips relying on EuiTooltip classNames that no longer exist

* Fix Vega vis custom tooltips relying on EuiTooltip classNames that no longer exist

- this one is trickier than Log's as it's not using React, so we need to use Emotion's Global to set a static className

* Convert remaining vega_vis.scss to Emotion

- as an example of how other global + non global styles could be handled in the future

* Fix references to removed `euiPaginationButton-isActive` className

- use aria-current attribute instead

* Added missing EuiFlyoutAnimation keyframes for EuiFlyout. This resolved test that failed because they used onAnimationEnd because the FlyoutAnimation could not be found.

* Reolved Jest Tests in suites 1 and 5. Updated snapshots to account for the recent EuiButton Emotion conversion. Updated snapshots for EuiToolTip as it now contains the new EuiToolTipAnchor component that replaced the tooltip anchor styles.

* iterate on rules_list.test.tsx

* bump eui to v67.1.5

* Updatde snapshots for jest test suites to account for the recent EuiButton, EuiOverlayMask, EuiTooltip, and EuiBadge Emotion conversions

* Resolved failing security test by updating the target element for CONNECTOR_TITLE. EuiCard has recently been converted to Emotion and the card title is no longer wrapper in a span.

* Resolved failing test case in Runtime Fields. The modify runtime field test was failing because the combobox responsbible for adding and updating scripts was not appearing. The textbox did not appear because the shared setFieldScript function targets and toggles the script textbox when opening the flyout. When a runtime field is being modified, the toggle is already active and using the shared function will trigger the toggle again (losing access to the script textbox).
Also resolved an issue that prevented the warning EuiCallout to appear when changing the type of a runtime field from its original type. Resolved this by adding an enter keypress at the end of setFieldType function to confirm the type selection, thus triggering the EuiCallout

* Resolved two tests that were failing in Lens. These test were failing because they were checking for equality in class names that no longer exist within EuiButtonGroup as it was recently converted to Emotion. These tests were updated to check for a substring of the new and longer class name

* Quick fix in test case failing because of misspelling in data-test-sub

* Updated snapshot for Jest test case as EuiButton as recently been converted to Emotion

* Removed console.log statement. Oops!

* Resolved a failing test case in Lens. They were failing because they were checking for equality in class names that no longer exist within EuiButtonGroup as it was recently converted to Emotion. These tests were updated to check for a substring of the new and longer class name.
Updated a Security test case by giving a target button the data-test-subj attribute for easier querying

* Removed reference to EuiFlyout mixin as it has been converted to Emotion. Updated the reference to an interal copy of EuiFlyout styles

* Corrected spelling error in EuiFlyout animation in Lens app

* Update EUI with latest backport

* Update button snapshots

* fix another button snapshot

* More snapshot fixes

* [EuiButton][Security] Fix button relying on now-removed `euiButton__text` CSS

- replace removed CSS with `eui-textTruncate` util instead

- combine/DRY out unnecessary span - was affecting min-width of truncation util

+ increase screenshot diff limit - this was smaller than updating the actual baseline screenshots for whatever reason (likely render diff between local and CI)

* Fix remaining Jest tests affected by Emotion conversions

- because Emotion creates its own wrapper, `.first()` can no longer be used - prefer `.last()` instead

* Fix Jest test affected by EuiButton Emotion conversion + removed modifier class

- targeting the native DOM node + filtering by disabled true/false gets us back to the 'correct' lengths

* Fix + improve flyout test

- `.last()` changes to account for EuiButton Emotion conversion is needed, but the last onClose assertion still fails due to us having modified inputs, and the confirm modal being displayed

- split test into two separate tests - one testing the onClose call, and the other testing the confirm modal

* derpin

* Skip rules_list Jest suite

* Update new EuiButton snapshot

* Upgraded EUI version to 67.1.7

* [EuiCard] Update snapshots

* [EuiPopover] Update snapshots

* [QA] Fix missing Vega warn/error message colors

;_;

* [CI] Auto-commit changed files from 'node scripts/generate codeowners'

* Fix Lens kbnToolbarButton regressions

- Caused by flattening of EUI button CSS specificity

- background-color was previously relying on isDisabled CSS specificity to override its #fff color

- `text` color modifier & `!important` is no longer needed and overrides Emotion CSS flatly

- isDisabled class is no longer needed - euiButton no longer sets `pointer-events: none` on disabled buttons (fixes tooltip bug in webkit as well)

* Backport EUI 67.1.8 fixes

* Update EuiCard snapshots

* Fix EuiModal form wrapper causing overflow issues

- see https://elastic.github.io/eui/#/layout/modal#forms-in-a-modal

* Workaround for `.kbnOverlayMountWrapper` mount point causing overflow issues

- not sure what all is using this modal service to be honest, but the wrapper is causing issues with the modal layout, this fixes overflow issues but will not fix any mask-image issues as a result

* more snapshot updates

* EuiButton - added textProps to EuiButton to prevent very long button names from spilling over outside of the container

* EuiButton - Update EuiButton related snapshots. Updated tests that target EuiButton directly to use a data-telementary-id for more specific element querying required by Emotion

* QA - Removed unnecessary comment in code

* Temporary fix for EuiCard[selectable][layout=horizontal] instances on security solutions' rule page

* Temporary fix for EuiCard[selectable][layout=horizontal] instances on osquery live query and canvas's datasource selector

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

* Fix CSS specificity, where canvas's solutionToolbarButton's background-color now takes precedence over EuiButton's primary styles

* Removed update to search_marker_tooltip that removed the euiTooltip styles and replaced then with Emotion styling. Added EuiTooltip Sass styles for the component to rely on to test for a styling bug that is causing the tooltip and the tooltip arrow to be out of sync with each other.

* Lint Sass file

* Lint Sass file

* Removed overflow:hidden style from .vgaVis_view as it was causing euiScrollStyles not to present the scroll bars in Vega Vis

* Remove typo from EuiButton textProps object. 'className' should not have been included in the actual class name

* Revert tooltip Sass

This reverts commit 20e6ead571, a5cd2de901, and c605cbd7b9

* Fix Emotion tooltip arrows

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Constance Chen <constance.chen@elastic.co>
Co-authored-by: Chandler Prall <chandler.prall@elastic.co>
2022-11-07 21:45:50 +00:00
Hannah Mudge
508f0127e3
[Dashboard] [Control] Remove support for scripted fields for options list (#144643)
* Remove support for scripted fields for all controls

* Remove support only for options list

* Add functional test
2022-11-07 09:51:11 -07:00
Luke Elmers
4b863abc18
Adds base implementation of the Kibana Health Gateway. (#141172) 2022-11-07 09:14:42 -07:00
Joe Reuter
15c12bdd39
Rename all vis-editors and datavis to visualizations (#144589)
* rename all the vis-editors

* rename datavis to visualizations
2022-11-05 19:16:20 -04:00
Hannah Mudge
a30e6c2555
[Dashboard] [Controls] Add "Exists" functionality to options list (#143762)
* Mock first attempt at UI

* Add `exists` filter functionality

* Make `exists` selection change button

* Overwrite selections instead of disabling them

* Add support for negate to exists

* Add to diffing system

* Add toggle to disable `exists` query

* Clear `exists` selection when toggle is disabled + fix mocks

* Switch to tooltip instead of docs link

* Clean up popover logic

* Fix rendering through memoization

* Auto focus on search when popover opens

* Added Jest unit tests

* Beef up mock and add more Jest unit tests

* Add functional tests

* Split up popover in to smaller components

* Fix unit tests + functional test flakiness

* Fix flakiness a second time + add chaining tests

* Clean up code

* Add `exists` selection to validation

* Fix invalid bug

* Fix failing unit test

* More code clean up

* Add another functional test

* Apply styling changes

* Fix tests

* Fix a11y issues

* Remove validation

* Fix types

* Clean up `a11y` fix

* Fix jest test

* Address feedback

* Fix wording of tooltip
2022-11-04 14:08:07 -07:00
Michael Dokolin
0a72c67838
[Embeddable] Add unified error UI (#143367)
* Refactor embeddable error handler
* Remove embeddable error handler from the visualization embeddable
* Update Lens embeddable to handle errors correctly
2022-11-04 16:46:32 +01:00
Dmitry Tomashevich
aa31c35f43
[Discover] Enable context docs navigation from embeddable using adhoc data views (#142126)
* [Discover] add locators

* [Discover] improve context, discover, single views navigations

* [Discover] fix some ci failures

* [Discover] fix some functional tests, add ability to go back to saved search from embeddable via context view

* [Discover] remove logs

* [Discover] improve browser history management on update of adhoc data view from context view

* [Discover] remove not relevant tests

* [Discover] add functionals

* [Discover] fix some issues

* [Discover] update tests

* [Discover] fix remaining tests

* [Discover] remove redundant function

* [Discover] remove field editing in context

* [Discover] remove redundant edit field from context tests

* [Discover] apply suggestions

* [Discover] try to fix flaky test

* [Discover] fix unit tests, try to fix flaky test

* [Discover] apply suggestions

* [Discover] apply suggestions

* [Discover] simplify the code

* Update src/plugins/discover/public/application/doc/single_doc_route.tsx

Co-authored-by: Matthias Wilhelm <ankertal@gmail.com>

* Update src/plugins/discover/public/components/discover_grid/discover_grid.tsx

Co-authored-by: Matthias Wilhelm <ankertal@gmail.com>

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

* [Discover] apply suggestions

* [Discover] suggest solution for new tab navigation and copy link ebility

* [Discover] fix ci, apply suggestions

* [Discover] apply suggestions, fix bug

* Update src/plugins/discover/public/hooks/use_navigation_props.test.tsx

Co-authored-by: Davis McPhee <davismcphee@hotmail.com>

* [Discover] add href test

Co-authored-by: Matthias Wilhelm <ankertal@gmail.com>
Co-authored-by: Davis McPhee <davismcphee@hotmail.com>
2022-11-03 18:58:22 +03:00
Rudolf Meijering
84d3f3857d
Background task instances wait for another instance to complete the migration (#143135)
* Add WAIT_FOR_MIGRATION_COMPLETION step to migrations to wait for another instance

* WIP set waitForMigrationCompletion based on node roles

* Fix bazel deps

* NodeService tests

* Additional tests

* Fix tests and types

* Fix tests

* migrations integration test

* Address review feedback

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

* In WAIT_FOR_MIGRATION_COMPLETION skip to DONE if migration complete

* Fix bug and add more tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-11-02 06:17:02 -07:00
Kibana Machine
bbcdf50386 skip failing test suite (#131192) 2022-11-01 18:43:44 -04:00
Spencer
7d77d39e1f
[ts] set allowJs to true by default (#144281)
* [ts] set allowJs to true by default

* fix scripts/check_ts_projects, original implementation is now wildly inefficient

* produce stats in check_ts_projects to make sure it's actually working

* fix imports
2022-11-01 15:26:44 -07:00
Rudolf Meijering
e476028e68
Bump field limit for esArchiver indices using kibana package version template var (#144272) 2022-11-01 15:00:29 -06:00
Lee Drengenberg
f6203495d1
check that the sample data menu is really open, retry (#144274) 2022-11-01 13:35:44 -05:00
Kibana Machine
66894cd62a skip failing test suite (#131192) 2022-11-01 08:42:44 -04:00
Rashmi Kulkarni
e92b38415d
checking for flakiness of index pattern filter test (#144180)
* checking for flakiness of index pattern filter test

* added a small code change to check if the popover is open
2022-10-31 11:25:02 -07:00
Spencer
af1230b7c4
[ci] remove github-checks-reporter (#144193) 2022-10-28 16:21:02 -05:00
John Dorlus
20ebb175df
Added Rollups CCS Test (#144074)
* Removed comment of the issue that was referenced for the skip. But the tests were already skipped.

* Unskipping test as a fix has been made. 138510

* Made CCS test for rollups and made it conditional based on configuration.

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

* Fixed issues in build.

* Added comment to rollups test and using super user until the perms issue is fixed.

Co-authored-by: cuffs <cuffs@cuffss-Office-MacBook-Pro.local>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-10-28 15:20:50 -04:00
spalger
52f2b33a07
[auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
spalger
e5d186a6f0
[ts] stop building @types packages in bootstrap 2022-10-28 14:03:55 -05:00
Julia Rechkunova
48e1b5c887
[Discover] Unskip "classic doc table" flaky test (#140786)
* [Discover] Unskip flaky test

* [Discover] Fix async tests

* [Discover] Try again

* [Discover] Try again

* [Discover] Try again

* [Discover] Try again

* [Discover] Try to skip a subtest

* [Discover] Try to skip a subtest

* [Discover] Try to modify the test

* [Discover] Add some logging

* [Discover] Return the async

* [Discover] Wait for ui

* [Discover] Suppress tooltips

* [Discover] Suppress tooltips

* [Discover] Fix api usage

* [Discover] Cleanup

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-10-28 15:55:30 +02:00
Uladzislau Lasitsa
c31c38c3d1
[Lens][TSVB] Navigate to Lens TSVB Table. (#143946)
* Added convert to lens support for tsvb table

* Added unit tests

* Added functional tests

* Some refactoring of table metric option config

* Fixed imports

* Some small refactoring

* Fix flaky test

* Fixed test

* Some small fixes

* Fixed test
2022-10-26 17:30:01 +03:00
Davis McPhee
9679a86754
[Discover] Fix flaky Discover URL state functional test (#143005)
* [Discover] Temp commit to create test PR

* [Discover] Attempt to fix flaky Discover URL state tests
2022-10-26 11:02:22 -03:00
Hannah Mudge
7dd7a74820
[Dashboard] [Controls] Add excludes toggle to options list (#142780)
* Add buttons with no functionality

* Added basic negate functionality

* Add `NOT` text when negated

* Clean up

* Add jest and functional tests

* Fix merge conflicts

* Rename `negate` to `exclude`

* Fix `unsaved changes` bug

* Move erase button back to beside search

* Clean up

* Add chaining functional tests

* Fix other unsaved changes bug

* Fix mobile view of popover

* Add option to disable exclude/include toggle

* Prevent unsaved changes bug for options list settings

* Add tooltip to run past timeout setting

* Address review comments

* Rename variable

* Set `exclude` to `false` when footer is hidden
2022-10-25 09:50:20 -07:00
Lee Drengenberg
1cd4c4892d
refactor getHitCount, use Last_1 year (#143912)
* refactor getHitCount, use Last_1 year

* revert change to heartbeat test
2022-10-25 09:37:06 -05:00
Kibana Machine
293b2f852e skip failing test suite (#143109) 2022-10-25 08:04:02 -04:00
Alejandro Fernández Haro
a30f691a43
[EBT] Report viewport size (#143854) 2022-10-25 04:18:55 -07:00
Tiago Costa
4c9ba0e8ae
skip flaky suite (#142222) 2022-10-24 22:16:27 +01:00
Tim Rühsen
8b0145c3a1
Support brotli compression on the server side (#142334)
* Use brotli compression

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

* Add integration test for brotli support

* Use import instead of require()

* Suppress build error on importing brok

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

* add brok as explicit package dep

* add `server.compression.brotli` config settings

* update documentation

* fix test utils

* fix more test configs

* add tests for endpoints too

* remove against endpoint for now

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: pgayvallet <pierre.gayvallet@elastic.co>
2022-10-24 15:33:21 +02:00
Yulia Čech
ebc8bfe50b
[Guided onboarding] Removed plugin config (#143354)
* [Guided onboarding] Removed the config that hide the guided onboarding by default in 8.5

* [Guided onboarding] Fixed types errors

* [Guided onboarding] For now deleted the guide button when there is no active guide to pass CI

* [Guided onboarding] Skipping the disabled button tests for now

* [Guided onboarding] Deleted the configPath from kibana.json

* [Guided onboarding] Deleted the config from the tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-10-20 12:55:04 -04:00
Shahzad
ea704af6d4
[Saved Objects] Added created_at field in saved objects (#143507) 2022-10-20 12:57:53 +02:00
Anton Dosov
1ec2edf4f4
[Search] Expose data.search.asyncSearch.pollInterval (#143508) 2022-10-20 12:18:36 +02:00
Uladzislau Lasitsa
0994b9271b
[Lens][Agg based XY] Navigate to lens functional tests. (#143549)
* Add functional tests for agg based XY

* Updated snapshot
2022-10-19 17:23:21 +03:00
Cecilia Bollini
cea0d57cd9
[POC] Add Gainsight shipper for cloud (#141132)
* Add gainsight

* Fix gainsight build

* lint and prettier

* tests

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

* [CI] Auto-commit changed files from 'node scripts/generate codeowners'

* fix tests

* test

* fix tests

* move the configuration out of the cloud plugin 2

* tests

* [CI] Auto-commit changed files from 'node scripts/build_plugin_list_docs'

* pass deploymentId as user key

* Add css and widget

* lint

* tests

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

* tests

* add render Css

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

* fix gainSightApi

* replace cluster id with cluster name

* fix types and tests

* Fix license

* rename gainsight

* remove formatpayload

- remove formatPayload
- remove typeDeps from shipper/g/kibana.jsonc
- replace type shared-common with shared-browser

* Add and fix tests

- Add test for renderCss
- update tests checking identify with different userId
- remove optionalplugin security

* add tests to gainsight shipper

- test globalcontext request (set and remove)
- hash only in dist ==false

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

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

* move check on gainsight init

* Remove translation update docs

- update docs
- always update userId

* licence

* fix tests

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-10-19 13:54:10 +01:00
Andrew Tate
66041ca2c2
[Lens] Support metric trendlines (#141851) 2022-10-18 14:50:51 -05:00
Arpit Bhardwaj
34ad684839
Changed default test for option list (#143413) 2022-10-18 12:02:30 -04:00
Matthew Kime
74595dee9b
[data view editor] Form state refactor - create service, replace useEffect with observables (#142421)
* replace useEffect with observables as much as possible

* cleanup, fix timestamp field / allow hidden bug
2022-10-18 07:22:35 -05:00
Matthew Kime
4d301f7a5d
[searchService] Dedupe shard error toasts (#131776)
* dedupe shard error toasts

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-10-17 19:14:08 -05:00
Davis McPhee
39d193444f
[Discover] Create unified histogram plugin (#141872)
* [Discover] Create unifiedHistogram plugin

* [Discover] Move discover resizable panels to unifiedHistogram

* [Discover] Replace DiscoverPanels with unifiedHistogram Panels

* [CI] Auto-commit changed files from 'node scripts/build_plugin_list_docs'

* [Discover] Fix types and limtis.yml for unifiedHistogram

* [Discover] Begin migrating layout and chart to unified_histogram

* [Discover] Update i18n keys from discover to unifiedHistogram

* [Discover] Update data-test-subj tags from discover to unifiedHistogram

* [Discover] Update classNames, ids, and scss to change discover to unifiedHistogram

* [Discover] Remove more references to discover from unifiedHistogram

* [Discover] Replace DiscoverServices with UnifiedHistogramServices

* [Discover] Replacing CHART_HIDDEN_KEY with chartHiddenKey prop

* [Discover] Add missing tsconfig references

* [Discover] Remove remaining references to discover from unifiedHistogram

* [Discover] Migrate HitsCounter to unifiedHistogram

* [Discover] Continue removing discover dependencies from unifiedHistogram

* [Discover] Replace SCSS with emotion

* [Discover] Changing PANELS_MODE to be internal

* [Discover] Clean up types

* [Discover] Clean up props and types

* [Discover] Update layout to use Chart component

* [Discover] Update discover_main_content

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

* [Discover] Update discover_main_content to use UnifiedHistogramLayout, clean up unifiedHistogram implementation and props, add missing bundles

* [Discover] Fix missing styles in unifiedHistogram

* [Discover] Fix issue where mouse can get out of sync with the resize handle with the Discover resizable layout

* [Discover] Fix some Jest tests

* [Discover] Update discoverQueryHits to unifiedHistogramQueryHits in tests

* [Discover] Finish decoupling discover_main_content from unified histogram layout

* [Discover] Create useDiscoverHistogram hook and remove old histogram dependencies from Discover

* [Discover] Move functions to create chart data from discover to unifiedHistogram

* [Discover] Continue fixing broken Jest tests

* Revert unifiedHistogram.reloadSavedSearchButton removal

* [Discover] Add missing type export and a better suspense fallback

* [Discover] Make callback names consistent

* [Discover] Continue cleanup and add documentation to unifiedHistogram

* [Discover] Update genChartAggConfigs to take object

* [Discover] Update UnifiedHistogramHitsContext.number to total

* [Discover] Cleanup imports

* [Discover] Add support for hiding the entire top panel in the unified histogram by leaving all context props undefined

* [Discover] Fix broken discover_layout unit tests

* [Discover] Clean up naming in discover_main_content

* [Discover] Continue fixing Jest tests and adding new tests

* [Discover] Finish writing Jest tests

* [Discover] Fix conflicts with getVisualizeInformation and triggerVisualizeActions after merge

* [Discover] Fix hiding reset chart height button when default chart height

* [Discover] Update CODEOWNER file

* [Discover] Removed types for @link comments

* [Discover] Fix broken discover_layout.test.tsx file

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-10-17 18:12:50 -03:00
Hannah Mudge
1eed5311c7
[Dashboard] Modify state shared in dashboard permalinks (#141985)
* Remove unnecessary global state from share URL

* Clean up

* Add functional tests

* Fix functional tests

* Undo removal of time range from global state in URL

* Clean up code

* Clean up functional tests

* Add warning when snapshot sharing with unsaved panel changes

* Modify how error is passed down

* Fix flakiness of new functional test suite

* Update snapshots + clean up imports

* Change wording of warning + colour of text

* Address first round of feedback

* Switch error state to button
2022-10-17 10:52:24 -06:00
Alejandro Fernández Haro
46ccdc9ee0
[LaunchDarkly] Add Deployment Metadata (#143002)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-10-17 08:41:42 -07:00
Stratoula Kalafateli
963ec08042
[TSVB] Wait before setting another terms field (#143373) 2022-10-17 16:41:25 +03:00
Faisal Kanout
608ac5adff
[Actionable Observability] - Add alert details page feature flag by App (#142839)
* Update the feature flags

* Fix tests and AlertFlyout footer

* Add unit test for the helper

* Update the order of the checks to fix tests

* Add test for edge cases

* Fix test direct access to the page

* Fix test
2022-10-17 03:21:12 -07:00
Alejandro Fernández Haro
accefcbab9
[Flaky tests] Unskip Telemetry Snapshot mode tests (#143353) 2022-10-17 02:03:38 -07:00
Christiane (Tina) Heiligers
0b10d6c9ca
Unskips visualize integration tests (#142917)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-10-14 06:51:48 -07:00
Uladzislau Lasitsa
c8a2ee2539
Added functional tests for agg based table (#143290)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-10-14 15:32:49 +03:00
Uladzislau Lasitsa
1055ec1fc8
[Lens][TSVB] Functional tests for converting of Top N. (#143181)
* Added functional tests for convert to lens top n

* Updated tests to check metric with source field

* Improved test for last value mode

* Added test for static value

* Fixed nits

* Updated test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-10-14 14:23:17 +03:00
Yaroslav Kuznietsov
ee313b34c2
[Lens][TSVB] Navigate to Lens Guage functional tests. (#143214)
* Added tests for converting metric with params, unsupported metrics and not valid panels.

* Added tests for color ranges.

* Added tests for gauge.

* Fixed tests.
2022-10-13 19:00:16 +03:00