Commit graph

1067 commits

Author SHA1 Message Date
Nathan Reese
b0a3f8999f
fix Vector map layers will not render when runtime field has '%' (#135491) 2022-06-30 07:45:40 -06:00
Nathan Reese
52a28ba68b
Fix Pinned filters should be visible on new maps without user having to do any action on layers (#135465)
* Fix Pinned filters should be visible on new maps without user having to do any action on layers

* always use default data view

* clean up

* await

* tslint
2022-06-29 15:57:17 -06:00
Nathan Reese
a48c7d9f0a
Keep timeframe when editing a map from a dashboard (#135374)
* Keep timeframe when editing a map from a dashboard

* [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-06-29 10:06:21 -06:00
Nathan Reese
3b6fc59e55
[maps] synchronize map views in dashboard and canvas (#134272)
* [maps] sync map panels in dashboard and canvas

* remove console.logs

* action

* clean up

* getters

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

* tooltip

* only show action with multiple maps

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

* tooltip update

* fix issue where action is not available

* clean up

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

* modal

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

* add error message

* auto deselect last 2 panels, auto select first 2 panels

* ts fix

* onMove event

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

* change message to positive

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

* disable autoFitToBounds

* show action for lens regionmaps

* revert changes to lens embeddable and use getSavedVis

* Update x-pack/plugins/maps/public/embeddable/map_embeddable.tsx

Co-authored-by: Nick Peihl <nickpeihl@gmail.com>

* Update x-pack/plugins/maps/public/embeddable/synchronize_movement.ts

Co-authored-by: Nick Peihl <nickpeihl@gmail.com>

* Update x-pack/plugins/maps/public/embeddable/map_embeddable.tsx

Co-authored-by: Nick Peihl <nickpeihl@gmail.com>

* copy update

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Nick Peihl <nickpeihl@gmail.com>
2022-06-28 15:21:11 -06:00
Constance
de20876b30
Upgrade EUI to v60.0.0 (#134919)
* Upgrade EUI to v60.0.0

* reorganize style tag injection using EuiProvider.cache options

* Convert Jest snapshots for EUI Emotion classNames to a static `emotion-` prefix instead of a dynamic hash

- The goal of this is to reduce thrashing on downstream Kibana snapshots whenever EUI CSS changes

+ Add serializer to Canvas' storyshots tests as well

+ Switch several .html() snapshots to .render() - render uses the new serializer logic, but .html() does not and will still output CSS hashes, plus is more difficult to read

* Update downstream tests for EuiStat Emotion/className changes

* Fix WithEuiTheme(EuiAccordionClass) references

* Rename mounted snapshots of EuiButtonContent to EuiButtonContentDeprecated

* add emotion/cache to kbn-ui-shared-deps

* Fix non-rendering server-side Emotion CSS

* Fix failing Security Cypress test

- the Cypress query/command being used wasn't working correctly

Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-28 11:23:59 -07:00
Jorge Sanz
14d760dd4a
[Maps] Aligns text in the marker legend to the right (#134896)
* Aligns text in the marker legend to the right

* Update test snapshot SVG definition

* remove replace for dot and comma chars to compute max length

* Update x-pack/plugins/maps/public/classes/styles/vector/components/legend/marker_size_legend.tsx

Co-authored-by: Nick Peihl <nickpeihl@gmail.com>

* update test

* get the maximum label width from all texts

* use refs to get width

* Use SVGTextElement and update test

* refs

* updated snapshot test

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

Co-authored-by: Nick Peihl <nickpeihl@gmail.com>
Co-authored-by: nreese <reese.nathan@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-28 15:20:15 +02:00
Nathan Reese
501927443a
fix onDataLoadEnd and onDataLoadError event handler callbacks only called for source data requests (#134786)
* fix onDataLoadEnd and onDataLoadError event handler callbacks only called for source data requests

* dataLoadEnd

Co-authored-by: Liza Katz <liza.katz@elastic.co>
2022-06-23 06:59:51 -06:00
Greg Thompson
2336f33632
Upgrade EUI to v59.0.1 (#133927)
* eui to v59.0.0

* i18n tokens

* update theme var tokens

* mock mouseevent for euiselectable

* mock mouseevent for euiselectable

* update theme var tokens

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

* mock mouseevent for euiselectable

* update theme var tokens

* update theme var tokens mocks

* WIP: forwardRef type

* update snapshots

* euiTextColor

* snapshot updates

* jest test updates

* euiTextColor updates

* jest test updates

* update getVisualizeError selector

* euiPaddingSizes

* snapshot update

* WIP: accordion cy.react

* DetailPanelMetadataTab test updates

* eui to v59.0.1

* snapshot updates

* WIP: osquery cypress

* WIP: osquery cypress

* use data-test-subj

* log standard console errors

* snapshot

* paddingSizes update

* euiaccordion class type comment

* snapshots

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-06-21 17:08:15 -05:00
Anton Dosov
a8095ce11a
Remove deprecated es-query re-imports from data plugin (#134600) 2022-06-21 04:09:44 -07:00
Nathan Reese
eee3f7ec08
[Maps] fix array values out of order in tooltips (#134588)
* [Maps] fix array values out of order in tooltips

* [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-06-20 13:55:53 -06:00
Nathan Reese
b7c8ff5d7b
[maps] fix sort not applied to vector tile search request (#134607)
* [maps] fix sort not applied to vector tile search request

* clean up

* clean comment

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

* fix jest, integration, and functional test

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-06-20 13:52:28 -06:00
Nick Peihl
1f9a1f68fa
Change EMS basemap color label to Color blend (#134464)
* Change EMS basemap color label to Color blend

* Localize labels and placeholders

* [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-06-15 09:06:28 -07:00
Nathan Reese
343ae0e024
[maps] fix icon markers fail to load when browser zoomed out (#134367)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-14 14:16:04 -06:00
Nathan Reese
ccd33c0b14
[maps] hide create filter UI in canvas (#133943)
* [maps] hide create filter UI in canvas

* removed unused consts in functional test

* [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'

* update snapshots

* one more update to avoid showing filterByExtentAction when in canvas

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-06-14 06:07:08 -06:00
Nathan Reese
2ddc342884
[maps] Add spatial filter from cluster (#133673)
* [maps] Add spatial filter from cluster

* add unit test

* fix test name

* move to IVectorSource interface

* remove unused args

* make internal method

* update AnomilySource

* fix jest test

* update snapshot

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-13 12:54:46 -06:00
Bree Hall
b7c4d890c0
Upgrade EUI to v58.0.0 (#132257)
* Initial commit for EUI 57.0.0 upgrade

* Handle i18n changes

* Resolved type errors in DatePicker and Markdown Editor

* Resolve test failures in Jest Test Suite #1. Updated multiple snapshots for euiLink and euiTitle as they have been converted to Emotion

* Resolved failing tests for Jest Suite #2. Updated snapshots for euiHealth, euiAvatar, euiSpacer, euiTitle, and euiLink as they have recently been converted to Emotion

* Resolved failing tests for Jest Suite 3. Updated failing snapshots as EuiSpacer, EuiText, EuiCallout, EuiHorizontalRule, EuiTitle, and EuiLink have been converted to Emotion. Updated the i18n translation snapshots

* Upgrade EUI verion to 58.0.0

* Resolved tests failures from Jest Test Suite 4. Updated snapshots as EuiLink, EuiTitle, EuiHorizontalRule, EuiSpace, and EuiCallout have been converted to Emotion

* Resolved failing test cases for Jest Test Suite 5. Updated snapshots as EuiLoader has been converted to Emotion

* Resolved failing tests in Jest Test Suite 6. Updated snapshots as EuiSpacer, EuiHorizontalRule, Eui Callout, and EuiLink have been converted to Emotion

* Resolved type errors for EuiDatePicker component

* Resolved type error within EuiContextMenu by removing the watchedItemProps prop. It was recently deprecated in EUI PR# 5880 (https://github.com/elastic/eui/pull/5880) as is no longer needed

* Resolved type error within EuiContextMenu by removing the watchedItemProps prop. It was recently deprecated in EUI PR# 5880 (https://github.com/elastic/eui/pull/5880) as is no longer needed

* Resolved type error within EuiContextMenu by removing the watchedItemProps prop. It was recently deprecated in EUI PR# 5880 (https://github.com/elastic/eui/pull/5880) as is no longer needed

* Resolved type errors by updating the popoverPlacement prop for the EuiDatePicket component with new / valid values. A list of values were deprecated and new values were added in EUI PR #5868 (https://github.com/elastic/eui/pull/5868)

* Resolved type error within EuiTabs by removing instances of display: condensed as it is no longer a part of the Amsterdam theme via EUI PR #5868(https://github.com/elastic/eui/pull/5868)

* Remove deprecated `display` prop from EuiTabs

* Deprecate `.eui-textOverflowWrap`

* Deprecate EuiSuggestItem `labelDisplay` prop

* [EuiStepsHorizontal] Replace deprecated `isComplete`/`isSelected` with `status`

* Update last EuiStepsHorizontal `status` migration

- this one was more complex than the previous commit due to existing `status` usage and conditional steps. Some amount of logic was simplified via `completedStep`

* Resolved type error within EuiTabs by removing instances of display: condensed as it is no longer a part of the Amsterdam theme via EUI PR #5868(https://github.com/elastic/eui/pull/5868)

* Resolved failing test cases in Jest Test Suite 5. Updated snapshots as EuiTitle has been converted to Emotion

* Resovlved failing test cases in Jest Test Suite 4. Updated snapshots as EuiTitle and EuiSpacer have been converted to Emotion. Resolved failing tests for EuiLink click simlulations by esuring the test is referencing the correct element.

* Resolved failing test cases in Jest Test Suite 3. Updated snapshots as EuiLink, EuiSpacr, and EuiTItle have been converted to Emotion. Updated various test cases to ensure that the references to EuiLink are correct

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

* Resolved failing test cases in Jest Test Suite 1. Updated snapshots as EUI text utilities have been converted to Emotion. Updated referenes to EuiLink to ensure test are simulating clicks on the correct elements

* Resolved failing test for Jet Test Suite 2. Updated required snapshots. Updated references to EuiLink to ensure that tests are simulating clicks on the correct elements

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

* Resolved failing test cases for Jest Test Suite 5. Updated references to EuiLink to ensure tests are targeting the correct element

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

* Resolved failing test cases across the Jest Test Suites. Updated required snaphots for components recently converted to Emotion. Updated test cases to ensure that tests targeting EuiLink are using the correct element.

* Resolved failing tests from multiple Jest test suites. Updated snapshots for components that have recently been converted to Emotion. Updated tests that reference the EuiLink component to ensure the correct element is being targeted

* Updated the getEuiStepsHorizontal function. Previously, this function used the .euiStepHorizontal-isSelected class (now deprecated) to determine which step was current. The function has been updated to use the status prop.

* Updated Jest integration test snapshots to account for the recent conversion of EuiLoader to Emotion

* Resolved failing tests in Jest suites 2 and 4. Updated required snapshots and references for tests using EuiLink

* Removed a console statement. Extracted a nested turnary operation into its own function.

* Rollback new turnary function and replace it with a simple if/else

* Rollback new turnary function and replace it with a simple if/else

* Rollback new turnary function and replace it with a simple if/else

* Rollback new turnary function and replace it with a simple if/else

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

* Resolved failing test cases in Jest Suites 3 and 5 by updating required snapshots

* revert doc_viewer_source test and snapshot changes

* Take care of merge conflict in license_checker:

* Reverted .render() change for analytics_no_data_page.component.test.tsx. Restored snapshot

* Reverted .render() change for analytics_no_data_page.component.test.tsx. Restored snapshot

Co-authored-by: Constance Chen <constance.chen@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
2022-06-08 10:18:11 -04:00
Nick Peihl
c11f96132c
[Spacetime] [Maps] Customizable colors in basemaps (#131576)
* Customizable colors in basemaps

* Add operations to color selector

* Only use default color operations per style

Allowing the user to choose the operation is probably unnecessary at this step. The default operations work very well.

* Fix types

* Clean up cruft

* Update ems-client

* Fix license override

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

* Fix test

* Unneccesary type assertion

* Refactor color filters to use new EMSVectorTileStyle

* lint

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

* Review feedback

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-06-07 11:40:30 -07:00
Matthew Kime
7f2fcee1da
[data views] remove ensureDefaultDataView and unused deprecated types (#133391)
* remove deprecated methods

* remove deprecated methods

* remove kibanaReact from kibana.json

* remove dataView.flattenHit

* revert flattenHit changes
2022-06-03 10:37:47 -05:00
Matthew Kime
d3e5764102
[data views] More dev docs (#132817)
* more data view code comments
Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
2022-06-01 21:00:35 -07:00
Matthew Kime
b3892cf21c
no more indexPatternContract (#133082) 2022-06-01 15:30:05 -05:00
Matthew Kime
3de12352b8
[data views] IIndexPattern / IndexPattern => DataView (#133086)
* no more index pattern objects, only data view

* add tsconfig entry to vis default editor
2022-06-01 13:53:25 -05:00
Matthew Kime
7958fa048c
[data views] IndexPatternField => DataViewField (#133080)
* IndexPatternField => DataViewField
2022-06-01 11:17:24 -05:00
Nathan Reese
895220724f
[Maps] replace custom types with types from elasticsearch-js client (#132718)
* [Maps] replace custom types with types from elasticsearch-js client

* replace unknowns with types

* fix typings in AnomalySourceField

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-24 07:46:11 -06:00
Nathan Reese
5ee756b7ac
[Maps] use EmsSpriteSheet type from @elastic/ems-client (#132715)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-23 11:51:06 -06:00
Nathan Reese
642290b0f1
[maps] convert ESPewPewSource to typescript (#132656)
* [maps] convert ESPewPewSource to typescript

* move @ts-expect-error moved by fix
2022-05-20 15:11:15 -06:00
Nathan Reese
e55bf40997
[Maps] create MVT_VECTOR when using choropleth wizard (#132648) 2022-05-20 14:15:00 -06:00
Nathan Reese
c24488361a
[maps] show marker size in legend (#132549)
* [Maps] size legend

* clean-up

* refine spacing

* clean up

* more cleanup

* use euiTheme for colors

* fix jest test

* do not show marker sizes for icons

* remove lodash

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-20 10:35:00 -06:00
Nathan Reese
d34408876a
[maps] Use label features from ES vector tile search API to fix multiple labels (#132080)
* [maps] mvt labels

* eslint

* only request labels when needed

* update vector tile integration tests for hasLabels parameter

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

* fix tests

* fix test

* only add _mvt_label_position filter when vector tiles are from ES vector tile search API

* review feedback

* include hasLabels in source data

* fix jest test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-20 08:06:25 -06:00
Anton Dosov
f88b140f9f
[data.query] Add getState() api to retrieve whole QueryState (#132035) 2022-05-20 12:16:22 +02:00
Sébastien Loix
a80bfb7283
[Content management] Add "Last updated" metadata to TableListView (#132321) 2022-05-19 09:18:21 -07:00
Nick Peihl
0c2d06dd81
[Spacetime] [Maps] Localized basemaps (#130930) 2022-05-19 07:55:09 -07:00
Nathan Reese
03617b4822
[Maps] fix Cannot open Lens editor in airgapped environment (#132429)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-18 12:06:02 -06:00
Nathan Reese
4ad07bd81f
[maps] source adapters refactor (#132287)
* [maps] source adapters refactor

* update jest test snapshots

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-18 08:16:22 -06:00
Nathan Reese
ffc515bf63
[Maps] term join in produce help (#120238)
* [Maps] term join in produce help

* snapshot updates

* i18n clean up

* API doc updates

* update API docs, update copy

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

* i18n cleanup

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-05-16 09:58:43 -06:00
Nathan Reese
5909f5400c
[Maps] fix Map panels should not show the user controls in a dashboard report (#131970)
* [Maps] fix Map panels should not show the user controls in a dashboard report

* fix jest tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-12 07:57:59 -06:00
Nathan Reese
c9372dc3a3
[maps] fix marker size scale issue for counts (#132057)
* [maps] fix marker size scale issue for counts

* fix test names

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-12 06:42:38 -06:00
Nathan Reese
72ec630f91
[maps] vector tile inspector (#131565)
* [maps] Vector tile inspector adapter

* empty prompt

* add layer select

* tile request view

* show gridTile es path and body

* show error message

* hits request

* tab with editor

* clean up

* open in console

* do not track same tile multiple times

* remove layer from vector tile inspector when layer is removed

* refactor tile request generation

* show path in inspector

* requests view callout

* remove duplicated server side code

* remove unused files

* fix map_actions test

* open requests view when getting requests from inspector

* only show view when adapter is present

* fix open in console link not matching tile request

* tslint

* fix search sessions functional test

* update trouble shooting docs

* use bold in docs

* fix tiles at zoom level 0

* revert changes to mb_map

* include path when copying to clipboard

* clear inspector when layer type changes

* tslint fix

* clean-up

* update callout copy

* empty prompt copy

* copy updates

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-11 15:04:33 -06:00
Spencer
67376ed53e
[eslint] add rule for auto-fixing unused imports (#131772)
* [eslint] add rule for auto-fixing unused imports

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

* Update index_table.test.js

* Update follower_indices_list.test.js

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-05-11 11:16:48 -05:00
Nathan Reese
71c17a4631
[Maps] scale marker size by area (#131911)
* [Maps] scale marker size by area

* icon size

* clean up

* more clean-up

* add tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-11 06:34:31 -06:00
Yaroslav Kuznietsov
040efae166
[Lens] lens_multitable removal. (#131699)
* Removed lens_multitable from lens_datatable

* Removed lens_multitable from heatmap.

* Added datasource to the metric.

* Added datasource expression to pie.

* Added datasource expression to gauge.

* Fixed tests.

* Removed LensMultiTable.

* Removed additional `kibana` expression from the xy to_expression.

* Removed lens_multitable from x-pack/maps.

* Removed unused translation.

* Added `handlers.inspectorAdapters.tables.reset` to all the expressions from lens.

* Fixed choropleth chart.

* Fixed gauge tests.

* Fixed jest tests with inspector.tables.reset.

* Added tests for the new behavior.
2022-05-11 08:53:28 +03:00
Jean-Louis Leysens
9a78d3dde4
[Reporting/Dashboard] Use Chromium for print-optimized PDFs (#130546)
* first version of semi-sane results

* getting a bit more sophisticated

* wip on footer, page numbers not working, but logo working

* re-work PoC for readability, added a lot of comments

* change up formatting for readability

* added comment

* remove some comments and remove HACK

* use page.pdf function

* remove controls from shared PoC ui

* preserveDrawingBuffer fix for maps, needs review

* minor clean up

* update sass

* clean up experimental code

* moved a few files around to get this ready for review

* added appservices as print media code owners

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

* added PDFJS to get num pages

* fix getting page number using pdfjs-dist

* update inline snapshot

* Revert "update inline snapshot"

This reverts commit eb413234a7.

* do not create a new page at the very end

* major overhaul, rather use puppeteers footerTemplate and headerTemplate to get visual parity with current reports

* add TODO

* update test fixture

* update doc comment

* remove whitespace

* fix missing time range from print PDF header and make size much smaller

* update tests

* update test

* try out slash instead of nbsp

* Revert "try out slash instead of nbsp"

This reverts commit 1de112a6f5.

* implement ability to inject logo using handlebars templates

* move assets to shared location

* fix injecting of values via handlebars and minor style tweaks for 3rd party logos

* inject a few more values to the footer

* update casing check

* use locales version of headless chromium zip

* fix tests and update sizing of logos

* use locales version for arm64 too

* fix jest test

* fix types

* made pdf capture check stricter

* fix PDF generation issue due to query bar rendering content that caused an issue; need to figure out what exactly the issue was...

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-05-10 08:35:04 +02:00
Spencer
542b381fa5
[ftr] automatically determine config run order (#130983)
* [ftr] automatically determine config run order

* split lens config into two groups

* support ftr configs always running against CI

* Split detection_engine_api_integration rule exception list tests

* Add configs from previous commit

* [ftr] remove testMetadata and maintain a unique lifecycle instance per run

* Revert "[ftr] remove testMetadata and maintain a unique lifecycle instance per run"

This reverts commit d2b4fdb824.

* Split alerting_api_integration/security_and_spaces tests

* Add groups to yaml

* Revert "Revert "[ftr] remove testMetadata and maintain a unique lifecycle instance per run""

This reverts commit 56232eea68.

* stop ES more forcefully and fix timeout

* only cleanup lifecycle phases when the cleanup is totally complete

* only use kill when cleaning up an esTestInstance

* fix broken import

* fix runOptions.alwaysUseSource implementation

* fix config access

* fix x-pack/ccs config

* fix ml import file paths

* update kibana build id

* revert array.concat() change

* fix baseConfig usage

* fix pie chart data

* split up maps tests

* pull in all of group5 so that es archives are loaded correctly

* add to ftr configs.yml

* fix pie chart data without breaking legacy version

* fix more pie_chart stuff in new vis lib

* restore normal PR tasks

* bump kibana-buildkite-library

* remove ciGroup validation

* remove the script which is no longer called from checks.sh

* [CI] Auto-commit changed files from 'yarn kbn run build -i @kbn/pm'

* adapt flaky test runner scripts to handle ftrConfig paths

* fix types in alerting_api_integration

* improve flaky config parsing and use non-local var name for passing explicit configs to ftr_configs.sh

* Split xpack dashboard tests

* Add configs

* [flaky] remove key from ftr-config steps

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

* restore cypress builds

* remove ciGroups from FTR config files

* fixup some docs

* add temporary script to hunt for FTR config files

* use config.base.js naming for clarity

* use script to power ftr_configs.yml

* remove usage of removed x-pack/scripts/functional_tests

* fix test names in dashboard snapshots

* bump kibana-buildkite-library

* Try retrying only failed configs

* be a little quieter about trying to get testStats from configs with testRunners defined

* Remove test code

* bump kibana-buildkite-library

* update es_snapshot and on_merge jobs too

* track duration and exit code for each config and print it at the end of the script

* store results in order, rather than by key, in case there are duplicates in $config

* bash is hard

* fix env source and use +e rather than disabling e for whole file

* bash sucks

* print config summary in jest jobs too

* define results in jest_parallel.sh

* simplify config summary print, format times a little better

* fix reference to unbound time variable, use better variable name

* skip the newline between each result

* finish with the nitpicking

* sync changes with ftr_configs.sh

* refuse to execute config files which aren't listed in the .buildkite/ftr_configs.yml

* fix config.edge.js base config import paths

* fix some readmes

* resolve paths from ftr_configs manifest

* fix readConfigFile tests

* just allow __fixtures__ configs

* list a few more cypress config files

* install the main branch of kibana-buildkite-library

* split up lens group1

* move ml data_visualizer tests to their own config

* fix import paths

* fix more imports

* install specific commit of buildkite-pipeline-library

* sort configs in ftr_configs.yml

* bump kibana-buildkite-library

* remove temporary script

* fix env var for limiting config types

* Update docs/developer/contributing/development-functional-tests.asciidoc

Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>

* produce a JUnit report for saved objects field count

* apply standard concurrency limits from flaky test runner

* support customizing FTR concurrency via the env

Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
2022-05-04 17:05:58 -05:00
Diana Derevyankina
235550112e
Fix imports from restricted paths (#130102)
* Fix imports from restricted paths

* Re-export EmbeddableRegistryDefinition from embedabble server and fix some imports

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-03 14:00:18 +02:00
Nathan Reese
5a7a243069
[Maps] show "no results" found for vector tile aggregations when there are no results (#130821)
* [Maps] show no results found for vector tile aggregations

* one more clean up

* better test names

* tslint

* eslint

* revert changes to isLayerLoading

* remove unused import

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-02 15:15:33 -06:00
Nathan Reese
41a1975e09
[Reporting/Maps] fix background tiles in a map panel might not load in a screenshot report (#131185)
* [Reporting/Maps] fix background tiles in a map panel might not load in a screenshot report

* add unit tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-02 12:42:42 -06:00
Max Kovalev
a2acfe5117
[Maps] allow feature editing for document layers with "applyGlobalTime", "applyGlobalQuery", and joins (#124803)
* #124061 - feature editing updated logic for documents layer

* 124061 - updates for disabling joins

* 124061 - refactoring; Excluding filtering from when enabling editing mode

* 124061 - fixes for failed tests

* 124061 - fixed test for JoinEditor

* 124061 - global time checkbox message fix

* 124071 - updated snapshot for JoinEditor

* 124061 - excluded applyGlobalQuery/applyGlobalTime from es_source in case of editing layer active

* 124061 - refactoring

* 124061 - fix for test

* 124061 - refactoring; Added message for disabled filter

* 124061 - replacing variables

* 124061 - fixed test; refactoring

* 124061 - refactoring; fixed tests

* 124061 - refactoring; fixed tests

* 124061 - refactoring; removed reuse isFeatureEditorOpenForLayer

* 124061 - fixed tests

* 124061 - removed isFeatureEditorOpenForLayer property

* 124061 - buildVectorRequestMeta updates

* 124061 - fixes for CI checks

* 124061 - refactoring

* 124061 - fixed test

* 124061 - refactoring; fixed conflict

* 124061 - syncDataLLayer called inside updateEditLayer

* 124061 - reverting changes for Join editor

* 124061 - removing unused isFeatureEditorOpenForLayer

* 124061 - updating snap

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-04-29 09:27:07 -06:00
Pierre Gayvallet
a02c00b8a3
Change ContextContainer to lazily initialize providers (#129896)
* Change ContextContainer to lazily initialize providers

* Introduce CustomRequestHandlerContext, start adapting usages

* adapt IContextProvider's return type

* start fixing violations

* fixing violations - 2

* adapt home routes

* fix remaining core violation

* fix violations on core tests

* fixing more violations

* fixing more violations

* update generated doc...

* fix more violations

* adapt remaining RequestHandlerContext

* fix more violations

* fix non-async method

* more fixes

* fix another await in non async method

* add yet another missing async

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

* add yet yet another missing async

* update fleet's endpoints

* fix telemetry endpoints

* fix event_log endpoints

* fix some security unit tests

* adapt canvas routes

* adapt alerting routes

* adapt more so_tagging routes

* fix data_enhanced routes

* fix license_management routes

* fix file_upload routes

* fix index_management routes

* fix lists routes

* fix snapshot_restore routes

* fix rule_registry routes

* fix ingest_pipelines routes

* fix remote_clusters routes

* fix index_lifecycle_management routes

* improve and fix the lazy implementation

* fix triggers_actions_ui endpoints

* start fixing unit tests

* fix cases routes

* fix transform routes

* fix upgrade_assistant routes

* fix uptime route wrapper

* fix uptime route wrapper bis

* update osquery routes

* update cross_cluster_replication routes

* fix some ML routes / wrappers

* adapt maps routes

* adapt rollup routes

* fix some canvas unit tests

* fix more canvas unit tests

* fix observability wrapper

* fix (?) infra type hell

* start fixing monitoring

* fix a few test plugins

* woups

* fix yet more violations

* fixing UA  tests

* fix logstash handlers

* fix fleet unit tests

* lint?

* one more batch

* update security_solution endpoints

* start fixing security_solution mocks

* start fixing security_solution tests

* fix more security_solution tests

* fix more security_solution tests

* just one more

* fix last (?) security_solution tests

* fix timelion javascript file

* fix more test plugins

* fix transforms context type

* fix ml context type

* fix context tests

* fix securitySolution withEndpointAuthz tests

* fix features unit tests

* fix actions unit tests

* fix imports

* fix duplicate import

* fix some merge problems

* fix new usage

* fix new test

* introduces context.resolve

* down the rabbit hole again

* start fixing test type failures

* more test type failures fixes

* move import comment back to correct place

* more test type failures fixes, bis

* use context.resolve for security solution rules routes

* fix new violations due to master merge

* remove comment

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-04-22 13:15:58 +02:00
Nodir Latipov
7c01257055
[Unified Search] Move autocomplete logic to unified search plugin (#129977)
* feat: move autocomplete logic from data plugin to unified search

* minor fix after comments

* updated Documentation: data.autocomplete -> unifiedSearch.autocomplete

* changed renameFromRoot order for autocomplete

* removed extra renameFromRoot in config deprecations, updated test

* added configPath for unified search plugin

* Update kibana.json

* updated path to autocomplete

* fix conflict

* fix conflict

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

* fix Linting

* fix functional_with_es_ssl test
2022-04-22 11:02:56 +05:00
Nathan Reese
275ce8f055
[Maps] update MapLibre to 2.1.latest (#127501)
* [Maps] update MapLibre to 2.0

* fix ts erros in sort_layers test

* more ts fixes

* tslint fixes

* replace deprecated properties

* revert previous change

* get map to fire load event

* revert changes to setting and clearing featureState

* incorporate type fixes to maplibre

* replace GeoJSONFeature with MapGeoJSONFeature

* bump to prerelease 3, eslint

* vega type fixes

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

* update to 2.1.9 release and fix remaining ts errors

* upgrade to ems-client 8.3.0

* update license check

* cleanup

* remove cast to unknown

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-04-21 07:02:57 -06:00
Nathan Reese
88c8ed92f9
[Maps] support term joins for Elasticsearch document source with vector tile scaling (#129771)
* support join configuration

* set feature state

* pluckStyleMetaFromFeatures

* pluck style meta from joins

* refactor

* eslint

* clear feature state on update

* fit to bounds

* remove unneeded cast

* filter out features without join results

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

* remove/add source if promoteId changes

* hide all features when there are no results

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

* disable layout styles

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

* disable add join button

* remove multiple term joins when switching to vector tiles

* update scaling type in-product help

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

* update chropleth wizard to use MVT scaling

* clean up

* i18n fixes

* remove unused i18n tags

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

* fix jest tests

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

* tslint

* fix jest test

* add functional test

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

* more jest fixes

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

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

* Update x-pack/plugins/maps/public/actions/layer_actions.ts

Co-authored-by: Nick Peihl <nickpeihl@gmail.com>

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Nick Peihl <nickpeihl@gmail.com>
2022-04-20 10:04:32 -06:00