* chore(NA): upgrade bazel into v5
* chore(NA): initial work to upgrade to rules v5
* chore(NA): remove @elastic/datemath jest unit test for eslint plugin imports
* chore(NA): removed packager tsc_wrapped added my mistake
* [build] Update artifact checksums to sha512, properly format file
This updates the checksum algorithm from sha1 to sha512 to be consistent
with the checksums shared on our downloads page. It also formats the
file to include the file name after the checksum so we can perform
validation via the `shasum` cli.
* basename
* formatting
* [build] Add flag for using a local Kibana artifact in the Docker context
Currently Docker contexts always install a Kibana distribution from an
http endpoint. These endpoints are only available after a release has
been published, making pre-release testing difficult.
This adds a flag to use a local Kibana artifact, with the intention of
verifying the Docker contexts with release artifacts prior to publishing
the release.
* fix types
* Upgrade EUI to v53.0.1
* Update i18n EUI mappings with new super date picker tokens
* Update deprecated prettyDuration usage
* Fix misc tests/type updates caused by EuiSuperDatePicker i18n release
- Fix mock typeof: this changed because the exported EuiSuperDatePicker is no longer a class, but a functional component wrapper around a class
- CI test: update now-capitalized datepicker select copy
- Jest tests: update snapshots, find()s (`Memo()` selector change is due to the exported EuiSuperDatePicker change)
* [kibana-app-services feedback] use renderToString
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Updgraded EUI packages in package.json and src/dev/license_checker/config.js
* Resolved Jest test failures for Jest test suites 1 and 2. Updated snapshots, and updated equality conditions for specific test cases
* Resolve Jest test cases for Jest test suite 3. Updated snapshots for required tests
* Resolved failing Jest test cases in Jest suite 3. Updated tests checking for strict text equality to account for text coming from the EuiScreenReaderOnly component. Also updated tests to account for EuiIcon text that is now rendered when the icon is imported from .testenv (PR 5709 - https://github.com/elastic/eui/pull/5709/).
* type fixes
* eui to 52.2.0
* Resolved test cases for Jest test suites 1 and 2. Updated required snapshots.
Updated tests using getAllByLabelText and getByLabelText to getAllByText and getByText respectively as the former have been deprecated
* Updated Jest tests for Jest test suites 5 and 6. Updated required snapshots. Updated instances of getByLabelText and getAllByLabelText to getByText and getAllByText as the former are now deprecated.
* Updated Jest tests for Jest test suite 7. Updated required snapshots.
* Completed test case revisions for Jest test suites 1, 3, 6, 7, and 8. Updated required snapshots. Updated various tests to account for text rendering of the EuiIcon text.
* removed unused test utils
* use .contains for euiicon content
* storyshots updates
* linting
* Fix failing a11y violations tests
* Fix Jest failures caused by #eui/5709
- these changes should be reverted if we opt to revert the above PR
Co-authored-by: Bree Hall <briannajdhall@gmail.com>
Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
* Updgraded EUI packages in package.json and src/dev/license_checker/config.js
* Resolved Jest test failures for Jest test suites 1 and 2. Updated snapshots, and updated equality conditions for specific test cases
* Resolve Jest test cases for Jest test suite 3. Updated snapshots for required tests
* type fixes
* Resolved failing Jest test cases in Jest suite 3. Updated tests checking for strict text equality to account for text coming from the EuiScreenReaderOnly component. Also updated tests to account for EuiIcon text that is now rendered when the icon is imported from .testenv (PR 5709 - https://github.com/elastic/eui/pull/5709/).
* eui to 52.2.0
* Resolved test cases for Jest test suites 1 and 2. Updated required snapshots.
Updated tests using getAllByLabelText and getByLabelText to getAllByText and getByText respectively as the former have been deprecated
* Updated Jest tests for Jest test suites 5 and 6. Updated required snapshots. Updated instances of getByLabelText and getAllByLabelText to getByText and getAllByText as the former are now deprecated.
* Updated Jest tests for Jest test suite 7. Updated required snapshots.
* Completed test case revisions for Jest test suites 1, 3, 6, 7, and 8. Updated required snapshots. Updated various tests to account for text rendering of the EuiIcon text.
* eui back to v52.2.0
* removed unused test utils
* use .contains for euiicon content
* storyshots updates
* linting
Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
resolves https://github.com/elastic/kibana/issues/124366
Adds new task manager configuration keys.
- `xpack.task_manager.event_loop_delay.monitor` - whether to monitor
event loop delay or not; added in case this specific monitoring
causes other issues and we'd want to disable it. We don't know
of any cases where we'd need this today
- `xpack.task_manager.event_loop_delay.warn_threshold` - the number
of milliseconds of event loop delay before logging a warning
This code uses the `perf_hooks.monitorEventLoopDelay()` API[1] to collect
the event loop delay while a task is running.
[1] https://nodejs.org/api/perf_hooks.html#perf_hooksmonitoreventloopdelayoptions
When a significant event loop delay is encountered, it's very likely
that other tasks running at the same time will be affected, and so
will also end up having a long event loop delay value, and warnings
will be logged on those. Over time, though, tasks which have consistently
long event loop delays will outnumber those unfortunate peer tasks, and
be obvious from the volume in the logs.
To make it a bit easier to find these when viewing Kibana logs in Discover,
tags are added to the logged messages to make it easier to find them. One
tag is `event-loop-blocked`, second is the task type, and the third is a string
consisting of the task type and task id.
* Changing structure of minimumScheduleInterval config
* Updating rules client logic to follow enforce flag
* Updating UI to use enforce value
* Updating config key in functional tests
* Fixes
* Fixes
* Updating help text
* Wording suggestsion from PR review
* Log warning instead of throwing an error if rule has default interval less than minimum
* Updating default interval to be minimum if minimum is greater than hardcoded default
* Fixing checks
* Fixing tests
* Fixing tests
* Fixing config
* Fixing checks
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* wip: just move pdf (reporting plugin) -> pdf_maker (screenshotting plugin)
* refactor paths for the jest integration tests
* move assets folder
* updated assets file
* use the screenshotting error in screenshotting
* fix worker imports
* first iteration of updated screenshotting options
* whole lotta wip, but got pdf maker set up in screenshot observable
* looks like we were not passing through renderErrors?
* some more minor refactors
* cleaned up APM tracker for screenshotting pngsToPdf
* big restructure of initial approach: rather place formats outside of the screenshotting functionality
* remove unused imports
* updated reporting core to work with new screenshotting functions
* fixed some more types issues in core
* done printable pdf v1
* refactored pdf v2
* removed layout from screenshot result
* we need to check that only supported layout ids are passed to screenshotting from reporting for a given format
* fix types and an import issue
* fix tsconfig mistakenly changed
* remove unused import
* added jest.integration.config.js
* update snapshots
* update snapshots part ii
* update jest test
* safe handling of layout objects on jobs
* update screenshotting mocks and make access layout safer
* updated docs for new exported types, refactored to single getScreenshots per conversation with Dokolin
* update report API usage and fix tests after refactor
* added new type file for formats
* make format optional and default to PNG at type level too
* make format required again, update docs and use const type
* update casing check to point to new file location
* fix type error
* update i18n IDs to match plugin namespace
* remove * export
* appease the linting gods
* just use the getScreenshots method
* update jest.integration.test.js path
* move pageCount to metrics
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* eui to v50.0.0
* i18n tokens
* Deprecate EuiDataGrid's `popoverContents` prop for `renderCellPopover`
* [optional ML refactor] Use `renderCellValue.isDetails` to customize numeric popover content instead of `renderCellPopover`
- since no especially custom popover rendering is occuring, just conditional content
* onChangeItemsPerPage update
* storyshots updates
* snapshot updates
* snapshot updates
* snapshot updates
* snapshot updates
* EuiComboBox listbox -> combobox
* remove invalid combobox aria attr
* Revert "onChangeItemsPerPage update"
This reverts commit 127c9e5840.
* eui to v51.0.0
* WIP: schema
* WIP: schema
* EuiSelectable API changes
* WIP: schema
* hidePerPageOptions -> showPerpageOptions
* WIP: schema
* hidePerPageOptions -> showPerpageOptions
* WIP: schema
* breadcrumbs type
* clean up
* snapshot updates
* Fix E2E datagrid cell filter action test
- This changed in 50.0.0 because of https://github.com/elastic/eui/pull/5681
- `await testSubjects.click('filterForButton')` applies to both the cell action button icon and the cell popover button
- The test was trying to click the cell action button icon and not the popover button, which closed the popover and caused nothing to actually get clicked
- the solution I went with was to simply avoid opening the cell popover but instead click the cell action icon directly
* WIP: selectable search
* clean up
* eui to v51.1.0
* i18n tokens
* resolve SharedRenderCellElementProps.schema optionality
* i18n, snapshot updates
* shapshot update
* consolidate url-parse
Co-authored-by: Constance Chen <constance.chen@elastic.co>
* [QA][Code Coverage] Drop dead code
We've some code no longer used,
that was used when code coverage was
orchestrated in Jenkins.
Since we use Buildkite instead,
we can drop this code.
* Updated the docs to reflect we
no longer use Jenkins and use
Buildkite instead.
* Updated doc per review and dropped the bit about 4 indexes,
since we no longer need the other R & D job.
* Revert "Revert "[build] Include x-pack example plugins when using example-plugins flag (#120697)" (#125729)"
This reverts commit 7b4c34e418.
* skip alerting_example
* link to issue
* [ts] enable sourcemaps in summarized types of @kbn/crypto
* update snapshots
* remove unnecessary exports of @kbn/type-summarizer package
* remove tsc from the build process
* use `@kbn/type-summarizer` to summarize its own types
* add tests for interface and function
* switch to export type where necessary
* ignore __tmp__ in global jest preset
* ignore __tmp__ globally
* remove `@kbn/crypto` types path
* Upgraded the version of EUI to 47.0.0 and react-beautiful-dnd (an EUI dependancy) to 13.1.0
* Update i18n mappings with required changes
* Fix all data grid types/tests missing the new `colIndex` prop passed by renderCellValue and cellActions
* Fix cellActions closePopover type to indicate conditionality (only passed when popover is open)
* Fix more datagrid colIndex errors
- pass more missing `colIndex`s
- pass RowAction colIndex, because it's inheriting types from EUI
- omit colIndex from the leading controls column renderer, because it doesn't need them
* Improve StatefulCell typing
- pass colIndex (which fixes EUI type match issue)
- DRY out ariaColIndex logic
- rename ariaRowindex passed to StatefulCell to rowIndex
* Updated i18n_eui_mapping tests to add euiSelectable.searchResults to the tokensToSkip array
* Fix failing ML datagrid FTR test
- `visibleRowIndex` is not a prop passed back by `popoverContents` (see `EuiDataGridCellValueElementProps`), but `rowIndex` is
* Revert attempted ML type change
- in actuality this is an EUI typing issue, children is a ReactElement, not a ReactNode. However we'll shortly be deprecationg popoverContents, so this isn't worth fixing right now
* Update test files to include up to date snapshots of code samples
* Updated a test snapshots to match the latest version of code samples
* Upgraded the version of EUI from 47.0.0 to 48.0.0 in package.json and license_checker config files
* Update the required i18n translation mapping file with additions and changes from EUI version 48.0.0
* Updated three security screen accessibility tests to check for the aria-checked attribute instead of the aria-selected attribute as part of an accessibility update to aria made in EUI PR 5581
* Updated two unit cases to that are responsible for checking strict equality of strings. These unit tests were for the EuiSelectable and EuiFilterGroup components. Both of these components contain and utilize EuiScreenReaderOnly which provides text that is used for screen readers, but can still be viewed and queried in the DOM. These tests have been updated with the EuiScreenReaderOnly text in mind.
* Code clean up and added a missing internationalization token
* Ran yarn kbn bootstrap to update the yarn lock file
* Fix failing ML FTR test
- EuiSelectable now relies on aria-checked to indicate selected state, per W3 spec
* Fix failing functional tests that click the datagrid cell expand button
.euiDataGridRowCell__expandButtonIcon was deprecated in favor of a shared .euiDataGridRowCell__actionButtonIcon class, but the expand action is always the last one
* Upgrade to 48.1.1
* Switch to data-test-subj for datagrid cell expansion selectors
* Switch to new `data-test-selected` attribute over `aria-checked`
* Update snapshots/Jest tests to account for EuiSelectable use in EuiFilter
Co-authored-by: Constance Chen <constance.chen@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [code coverage] collect coverage on server side
* fix script
* copy server coverage to functional
* [code coverage] run all e2e and api tests
* enable all configs for coverage, fix reportDir
* [code coverage] use KIBANA_DIR var
* create target/kibana-coverage/functional if not exist
* remove empty lines and unused code
* adjust include/exclude filters
* exclude more test-related paths
* Update functional nyc config
* Update server nyc config
* exclude more dirs
* exclude stub/
* Added config for mosaic/pie/donut/treemap/waffle.
* Added sortPredicate functionality for waffle/mosaic/treemap/pie/donut
* Added Donut handling.
* Refactored get_color.
* Merged color computation for lens and vis_types.
* Added isFlatLegend support.
* Added showValuesInLegend for waffle and fixed tests.
* Removed not used position, which is equivalent to labels.show = false.
* legendDisplay added.
* Added migrations for pieVis addLegend argument.
* Added startFromSecondLargestSlice and support of correct formatters.
* Updated docs.
* Added functionality for truncate.
* Added unit tests for pie and partial for donut/waffle.
* Addressed issue with label truncation by default.
* Addressed issue with formatters.
* Added tests for accessor.test.ts
* Added support of formatter by meta data from columns at splitChartAccessors.
* Added tests for filterOutConfig.
* Added tests for getFormatters.
* Added tests for getAvailableFormatter.
* Added tests for getFormatter.
* Added tests for get_split_dimension_accessor.
* Add is legend scenario.
* Added tests for legend.
* Replaced sortPredicate, relying on the internal terms params, with the mosaic one.
* Fixed pie snapshot and added new snapshot for treemap.
* Added snapshots for mosaicVis.
* Added snapshot to waffleVis.
* Updated unit tests for *_vis_function's.
* Added storybook.
* Added snapshots for partition vis component.
* Added expression error on providing both, splitColumn && splitRow.
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Support installing bundled packages during Fleet setup
* Fix failing API integration test
* Sort packages in test
* Move get bundled packages + add tests
* Fix mock installPackage type
* Don't attempt to install already-installed bundled packageS
* Use unique installation status for bundled packages
* Fix failing tests
* Fix type error
* Fix logic for latest value
* Remove bundled packages from test since they no longer come back from list endpoint
* Change assertion for empty preconfiguration update request
* Add all bundled packages + refactor install to use Promise.allSettled
* Fix name comparison again
* Rework approach to use preferred source at install-time instead
* Add helper script + update bundled packages + allow updates for upload path
* Fix failing test
* Address code review + add additional tests for update cases
* Fix type error
* Remove configOverride concept for now
* Fix another type error 🙃
* Add build step for bundling fleet packages
* Fix unused import in build step
* Keep bundled_packages directory in place to prevent setup failures
* Remove gitkeep + make bundled package directory lookup fault tolerant
* Update gitignore
* Add doc comment + use build.resolvePath
* Add --use-snapshot-registry CLI flag
* Update snapshots
* Rename arg to use-snapshot-epr
* Don't fail the build on failure to bundled packages
* Update all checksums + don't attempt download multiple times
* Skip checksum process for bundled packages for now
* mkdirp destination directory to fix tests
* Revert build_distributables file
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>