Commit graph

251 commits

Author SHA1 Message Date
spalger
52f2b33a07
[auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
Matthew Kime
631c24abf4
[unified search] Query string input uses data views plugin directly instead of via deprecated data plugin reference (#143611)
* use data views plugin

* remove unneeded dependency

* use data views plugin

* fix type

* type fix

* supply dataViews as depedency

* supply dataViews as depeden
2022-10-20 07:15:33 -07:00
Marco Liberati
6522bbb453
[UnifiedSearch][Lens] Make sure adHoc dataViews are receiving the right query suggestions (#143389)
* 🐛 Resolve title and id strings as dataViews

* 🐛 Make sure dataViews are passed by id when available

* 🐛 Forgot to spread results

*  Fix and add more tests

* 🐛 Fix test

*  refactor as suggested for performance

* 🏷️ reuse type

*  Fix one more test

* 🐛 Fix mock name

* Update x-pack/plugins/graph/public/components/search_bar.test.tsx

* Update x-pack/plugins/graph/public/components/search_bar.test.tsx

* 🐛 Fix instanceof issue

* 🐛 Use a mock function for dataview

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
2022-10-19 15:29:29 +02:00
Matthias Wilhelm
384ecc4b7b
[Graph] Unskip a11y functional test (#141798) 2022-09-29 12:43:47 +02:00
Dmitry Tomashevich
2b4f5d9a64
[Graph] Align Inspect requests experience with common approach (#141222)
* [Graph] hide inspect button when there is no relevant request content

* [Graph] fix functional

* [Graph] add common inspector

* [Discover] fix checks

* [Discover] apply suggestion
2022-09-29 11:19:58 +03:00
Davis McPhee
b026d2c84d
[Graph] Fix guidance panel appearing for a moment when saving Graph (#141228)
* [Discover] Fix issue where workspace switches to uninitialized briefly when saving as copy in Graph

* [Graph] Add Jest tests for Graph workspace saving bug
2022-09-22 10:22:18 -03:00
Julia Rechkunova
03a3446111
[Graph] Fix query bar autocomplete (#140963)
* [Graph] Fix unified search dep

* [Graph] Fix after the merge

* [Graph] Fix autocomplete by excluding filtering by time range

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-09-22 13:04:00 +02:00
Julia Rechkunova
797b351b1a
[Graph] Fix drilldown url templates for sample data (#141079)
* [Graph] Fix drilldown url templates for sample data

* [Graph] Add tests

* Revert "[Graph] Add tests"

This reverts commit 08d5c7d864.

* Revert "[Graph] Fix drilldown url templates for sample data"

This reverts commit 0fc575ef09.

* [Graph] Fix issue with opening sample graph ws in any Kibana spaces

* [Graph] Add tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-09-22 13:03:38 +02:00
Nodir Latipov
10211c6df7
[Unified Search] Fix regress autocomplete (#140880)
* fix: refress with autocomplete

* fix: autocomplite

* feat: added usageCollection to unified search plugin

* fix: check type

* fix: jest test

* refact: move usageCollection to optionalPlugins

* cleanup

* fix: avtocomplete in lens

* fix default editro

* some cleanup

* feat: rename app name in Lens

* feat: rename app in apm

* fix: descover autocomplete
2022-09-21 16:29:46 +05:00
Julia Rechkunova
3487e3a221
[Graph] Fix positioning of Add fields popover (#141040)
* [Graph] Fix positioning of Add fields popover

* [Graph] Fix positioning of Edit field popover
2022-09-20 14:09:40 +02:00
Julia Rechkunova
7a1934fcfc
[Graph] Fix responsive styles of field manager (#140948) 2022-09-19 18:41:31 +02:00
Sébastien Loix
189196181c
[Table list view] Improve UX (phase 1) (#135892) 2022-09-19 12:29:23 +02:00
Nodir Latipov
1fcd75a706
[Unified Search] Create a filter builder component which works with nested OR/AND filters (#136815)
* init: add filters editor component

* apply some changes

* add storybook

* push some changes

* push some logic

* push some logic

* push some logic

* add reducer

* add more complext filters

* feat: add moveFilter action

* feat: add input form for filters editor filter item

* feat: add filter UI

* fix: storybook

* fix UI: edit filter component

* style: add panel to filter

* feat: update style

* style: add style for dilimeter

* refact: filter item

* style: added style for odd filter group

* feat: added add filter action

* feat: update add filter in filter group

* feat: added remove filter

* refact: updated add filter and remove filter

* feat: added addFilterGroup

* feat: updated addFilterGroup with empty filter

* refact: utils

* refact: seperte filters editor filter (field input)

* refact: seperte filters editor filter (operator input)

* refact: filters editor

* refact: filters editor (params field

* push some changes

* push some cleanup

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

* move filters to __mock__ folder

* feat: update handle filter item

* add getFilterByPath method

* remove addFilterGroupWithFilter

* remove addFilterGroupWithFilter

* add some logic

* add addFilter support

* update styles

* add removeFilter

* fix types

* refact: cleanup any

* refact: filter item

* fix: data for show filter item

* refact: cleanup useState in filters editor

* refact: filter edit

* style: fix UI in filter group

* add disableOR/AND/DELETE params

* add preparation for d2d

* fix: show filter item after add filter

* update filterGroup

* fix: drag and drop

* do cleanup

* feat: add logic for drag&drop

* style: filter item

* apply new structure

* push some logic

* fix some cases

* feat: udpated updateFilter

* feat: added update field in filter

* feat: added update params in filter

* feat: added update operator in filter

* feat: added update operator in filter--amend

* style: add uiPanel into filterItem

* feat: added translate

* refact: filter item

* feat: updated filter item for exists type

* feat: added unique key for filter Item

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

* fix: update params

* fix: update params

* style: params input

* fix: disabled for phrase value input

* feat: added filter params update

* refact: change type

* feat: index for EuiDraggable

* refact: rename properties

* feat: added useCallback

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

* refact: cleanup code

* refact: minor changes

* style: change show label for filter phrase(s)

* dandd preparation

* feat: add ref to panel

* fix merge configct

* refact: destination => dropTarget and added it into context

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

* feat: udpate d&d logic

* feat: added chagne cursor for OR filter

* feat: add change cursor in d&d

* feat: add change cursor in d&d

* style: changed cursor view svg

* feat: added disable or conditional in d&d

* feat: moved filter_editor -> shared_component

* style: used emotion react

* move filter_label

* rename filters editor -> filters builder

* feat: added hideOr

* feat: added hideOr

* feat: added sisabled and drop if depth =  maxDepth

* feat: update disable isCombine

* feat: rename filtersEditor->filtersBulder

* feat: added new storybook

* feat: remove autocomplete service

* refact: updated filterBuilder

* feat: updated css style

* fix: jest test

* refact: move snapshot for filter label

* feat: update search bar

* refact: filter builder utils

* fix: update filter

* refact: update filter builder

* fix: autocomplete test

* fix: test

* fix: jest test

* fix: d&d

* test: update test

* test: update test

* fix: functional tests:

* fix: check type

* refact: move filter

* refact: minor

* feat: move filter editor from shared components to filter bar

* minor update

* fix: check type

* fix: type check

* fix: d&d

* fix: d&d

* feat: resolve comment

* minor fix

* fix: d&d

* fix: type check test

* fix: check type test

* feat: covered new case with d&d

* feat: covered new case with d&d

* feat: covered new case with d&d

* refact: move filter

* fix: bug with storybook

* refact: remove todo comment

* fix normalizeFilters method

* refact: ref to FilterEditor

* refact: moved filters_builder to up level

* fix: update operator

* refact: key for list

* refact: did FiltersBuilder lazy

* feat: move cvg to under component and rename

* feat: resolve comment

* feat: added validation for filter build item into params enter uncorrect date

* test: added test for normalizeFilters

* feat: update test

* style: fix UI

* refact: utils files in filters builder

* style: filter group  background

* style: filter group

* doc: added comment to methods in utils

* style: fix border

* style: fix border

* fix: UI

* feat: added backgroud for gray filter group

* temp changes

* fix some styles

* feat: added devider and margin

* style: change style -> css

* style: change style -> css

* refact: style

* refact: style

* fix: test

* refact: style

* feat: added rule for show border

* style: UI

* style: show OR delimiter

* style: margin for AND delimiter

* feat: update show border for first level

* feat: update styles

* style: fix padding for panel
2022-09-13 19:36:52 +05:00
Julia Rechkunova
fe4553ddee
[Graph] Fix closing behaviour of the field picker popover (#138799) 2022-08-15 16:53:15 +02:00
Matthew Kime
b16f91625c
Saved Object Finder - allow it to find data views (#137766)
* add defaultSearchField
2022-08-02 16:31:12 -04:00
Pierre Gayvallet
0645a3ba38
Create common and api types packages for the savedObjects domain (#136722)
* Creating empty @kbn/core-saved-objects-common package

* start moving types around

* start fixing imports

* fix entrypoint exports

* fix external import

* create explicit ISavedObjectsRepository interface

* fix another external usage

* rewrite browser exports

* create explicit SavedObjectsClientContract interface

* move client/repository types to @kbn/core-saved-objects-api-server

* start fixing imports

* one more

* fix global re-exports

* fix some browser-side imports

* fix more violations

* prepare the browser-side client

* fix one more usage

* fix external usage

* fix more external usages

* one more

* Create @kbn/core-saved-objects-api-browser package

* fix more usages of error helper

* fix more internal imports

* use interface for SSO

* adapt more imports

* damn those types were a mess

* fix more usages of SSO

* Revert "fix more usages of SSO"

This reverts commit 07a12e5353.

* Revert "use interface for SSO"

This reverts commit 6240fc86c5.

* export the interface with the old name instead.

* adapt tests concrete usages of SSO

* export reference type, more fixes

* this gonna be long

* one more

* other resolve type change

* more usages

* Am I getting close?

* yet more fixes

* back to client impl

* fix bulkGetting undefined

* fix SS mock

* some cleanup

* self-review

* fix new usages
2022-07-26 04:01:33 -07:00
Gerard Soldevila
4824d9da8c
Migrate types to packages: Client-side HTTP service (#135562)
* Migrate types to packages: Client-side HTTP service

* Fix linting issues, compactify some imports

* Fix incorrect typing, remove unnecessary exports

* Remove unnecessary export

* Fix trailing spaces removed by mistake

* Move Sha256 to new @kbn/crypto-browser package

* Support deprecated 'req' property in isHttpFetchError() method

* Fix failing UT in lens

* Update API docs

* Reorder imports, absolute imports first

* Provide createHttpFetchError() convenience method

* Fix typing issue

* Fix rebase issues

* Fix incorrect import

* Avod using core internals for plugin testing

* Fix automerge issues

* Misc enhancements following PR review
2022-07-11 12:25:55 -07:00
Dmitry Tomashevich
789e2e9ceb
[Graph] Remove Venn diagram dependency (#135007)
* [Graph] remove venn diagram dependency

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

* [Discover] add license changes

* Update x-pack/plugins/graph/public/components/venn_diagram/vennjs/LICENSE

Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>

* [Graph] apply suggestions

* [Graph] update yarn lock

Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
2022-07-05 15:04:28 +03:00
Julia Rechkunova
f308aa166d
[Graph] Migrate from savedObjectsClient to dataViews and fix the displayed data view name (#135142)
* [Graph] Migrate from savedObjectsClient to dataViews

* [Graph] Update tests

* [Graph] Fix "no data views" view

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-28 17:00:23 +02: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
Bhavya RM
7e44314b4a
Graph a11y tests (#134694)
Graph a11y tests
2022-06-20 14:33:13 -04: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
Sébastien Loix
a80bfb7283
[Content management] Add "Last updated" metadata to TableListView (#132321) 2022-05-19 09:18:21 -07:00
Stratoula Kalafateli
0d4cc4dc32
[Unified search] Improves the current filter/search experience (#128401)
* [Unified search] Moves dataview picker to the search bar (#126560)

* [Unified search] Moves dataview picker to the search bar

* alter texts

* Remove unused file

* [ChangeDataView] Design cleanup

* Fix services mock failure

* Show newly created datavuew on the list

* Keep dataview picker in discover in mobile view

* Cleanup

* Cleanup translations

* Fix some discover FTs

* Fix management FTs

* More test fixes

* Added a dismissible tour

* Pulled the selectabl list into a new component

… for reuse

Called `DataViewsList`. I then changed Lens’ config panel’s own EuiSelectableList to use this new component instead.

*Didn’t do any test updates*

* Fix broken jest test

* Use the same picker component on Discover mobile view

* Apply some CI fixes

* Fix more functional tests

* More FTs fixes

* Close the tour popover for lens tests

* More FTs fixes

* Fix lens FTs

* Using new `styles.ts` pattern for custom styles and allowing for `fullWidth` buttons

* Better tour text and i18n

* Update copy

* No exclamation point

* Cleanup

* Fixes on discover tests

* Fixes on Lens Fts - create runtime fields

* Fixes on edit permission of add field in discover and some FTs fixes

* Further Fts fixes

* More FTs fixes

* Made tour opt-in with `showNewMenuTour`

* Refactor the OSS FTs to change less files

* Further cleanup on the FTs

* Remove unecessary action

* Fix dataview creation bug

* Add a unit test to the new component

* More fixes

* Fix OSS a11y tests

* Adds another unit test for Lens permissions

* Make a change to stabilize the tests

* Clear flyout prop as it is not used anymore

* Deisgn fixes for mobile view

* Address PR comments WIP

* Update the layrpanl dataview list when a new dataview is created

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>

* fix test

* Fix CI

* Fix i18n checks

* [Unified search] Redesign search bar (#126566)

* [Unified search] Redesign search bar

* Changes to the saved queries design

* Remove `globalQueryBar` from nested under `.kbnTopNavMenu__wrapper`

* [Security Solution] Removing overrides of `.globaQueryBar`

* Cleanup of `.globalQueryBar` styles and variants

* General layout fixes/adjustments

* More general layout fixes and better defaults

* Enable Clear all button if saved query is applied

* Clear should be enabled if searched query is applied but not the save as new

* fix some bugs on enabling and disabling the menu options

* [design] Working on Load Filter set menu

* Indicate selection even before the user clicks apply

* prettify the time text

* Add delete saved qquery confirmation modal

* Some cleaning up

* Fix the manage saved queries link

* Enable load filter set if saved query is created for the first time

* Some fixes on linting and on translations

* Clanup scss

* Make some fixes

* Fix navigatation unit test

* Fix translations check

* Fix rest jest tests

* Fix some functional tests

* Fix checks

* Fixes the appearance of the searchbar components depending on the flags

* Fix OSS tests

* Fixes on tests and query bar logic

* Fix the OSS ally tests

* Fix graph and lens KQL bar display problems, apply saveQuery flag correctly

* Fix more tests

* Fix security solution test

* Undo tweaks for graph

* Better fix for Graph

- Emulate new look, not old
- Uses same context menu panel as the new one
- Provides the same button type (filter button)

* Fix checks and jest test

* Further fixes

* Fix language switcher test

* Hopefully fixes the rest of the solution tests

* Cleanup

* Fixes on maps filtering

* Fix Discover padding

* [Discover] Added New Field button to bottom of fields list

* Simple responsive behavior

* Quick filter updates

* CI fixes

* area-label fix

* 18n translate the add filed btn in discover

* Fix lens functional test

* fix functional tests

* Refactor and add unit test for the add filter button

* Add unit test to the saved management list component

* Stabilize lens test

* Second try to solve the flakiness

* Fix panels depending on the flags

* Fix jest tests

* Fix double menu when only the queryInput is on

* Add storybook for the different layouts of the unified search bar

* Fix ci checks

* Removee hooks comment

* Fix flakiness

* Fix problem with lens dataview change

* Fix checks

* Ensure that the query is submitted

* Fixes oon CI

* Fixes flakiness

* Fix checks CI

* Update texts

* Cleanup

* Fix unskipped funtional test

* Fix FT

* Update src/plugins/unified_search/public/saved_query_form/save_query_form.tsx

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Fix eslint

* Fix checks

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Fix jest

* Fix jest tests

* Stabilize discover security tests

* [Unified search] Further enhancements (#129877)

* [Unified search] Redesign search bar

* Changes to the saved queries design

* Remove `globalQueryBar` from nested under `.kbnTopNavMenu__wrapper`

* [Security Solution] Removing overrides of `.globaQueryBar`

* Cleanup of `.globalQueryBar` styles and variants

* General layout fixes/adjustments

* More general layout fixes and better defaults

* Enable Clear all button if saved query is applied

* Clear should be enabled if searched query is applied but not the save as new

* fix some bugs on enabling and disabling the menu options

* [design] Working on Load Filter set menu

* Indicate selection even before the user clicks apply

* prettify the time text

* Add delete saved qquery confirmation modal

* Some cleaning up

* Fix the manage saved queries link

* Enable load filter set if saved query is created for the first time

* Some fixes on linting and on translations

* Clanup scss

* Make some fixes

* Fix navigatation unit test

* Fix translations check

* Fix rest jest tests

* Fix some functional tests

* Fix checks

* Fixes the appearance of the searchbar components depending on the flags

* Fix OSS tests

* Fixes on tests and query bar logic

* Fix the OSS ally tests

* Fix graph and lens KQL bar display problems, apply saveQuery flag correctly

* Fix more tests

* Fix security solution test

* Undo tweaks for graph

* Better fix for Graph

- Emulate new look, not old
- Uses same context menu panel as the new one
- Provides the same button type (filter button)

* Fix checks and jest test

* Further fixes

* Fix language switcher test

* Hopefully fixes the rest of the solution tests

* Cleanup

* Fixes on maps filtering

* Fix Discover padding

* [Discover] Added New Field button to bottom of fields list

* Simple responsive behavior

* Quick filter updates

* CI fixes

* area-label fix

* 18n translate the add filed btn in discover

* Fix lens functional test

* fix functional tests

* Refactor and add unit test for the add filter button

* Add unit test to the saved management list component

* Stabilize lens test

* Second try to solve the flakiness

* Fix panels depending on the flags

* Fix jest tests

* Fix double menu when only the queryInput is on

* Add storybook for the different layouts of the unified search bar

* Fix ci checks

* Removee hooks comment

* Fix flakiness

* Fix problem with lens dataview change

* Fix checks

* Ensure that the query is submitted

* Fixes oon CI

* Fixes flakiness

* Fix checks CI

* Update texts

* Cleanup

* Fix unskipped funtional test

* Fix FT

* Fixes filter bar responsiveness

* Add filter button option to the main menu

* Filter form design pass

- Added tooltip around “Add filter” icon button
- Fixed padding
- Stubbed in “Add” vs “Edit” labels

* Query menu icon button tooltip

* ‘Update’ not ‘Edit’ button label

* Apply different strings for adding filter mode vs edit

* Hide Manage SO link if the user donesnt have the permissions

* Fix the wrapping of the badges and datepicker badge

* Minor props naming fix

* Fix checks

* Fix mobile

* Cleanup

* Fix checks

* Faux button group

* Changes on the search input placeholder

* Fix CI

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>

* Fix translations

* Fix security solution add filter bug

* Filter bar / items: Reduce to only necessary wrappers and styles

- Switch to Emotion for styling
- Rename `FilterBadgesWrapper` to `FilterItems`
- Move `FilterItems` and `FilterItem` so own folder `filter_item/`

# Conflicts:
#	src/plugins/unified_search/public/filter_bar/filter_bar.tsx
#	src/plugins/unified_search/public/filter_bar/filter_editor/lib/filter_label.tsx
#	src/plugins/unified_search/public/filter_bar/filter_item/filter_item.tsx
#	src/plugins/unified_search/public/filter_bar/filter_item/filter_items.tsx
#	src/plugins/unified_search/public/filter_bar/filter_view/index.tsx
#	src/plugins/unified_search/public/query_string_input/filter_editor_wrapper.tsx
#	src/plugins/unified_search/public/search_bar/search_bar.tsx

* Fix styles by removing styled-components

Also added prop `afterQueryBar` to signify that it needs the top margin

# Conflicts:
#	packages/kbn-babel-preset/styled_components_files.js

* Refactor `SearchBar` and `QueryBarTopRow` a bit

- Added `showSubmitButton` to explicitely hide the submit button (defaults to true)
- SearchBar always renders the `QueryBarTopRow` which now fully controls visibility of the pieces
- Renamed class with new `uni` prefix
- Tried and failed to use Emotion

* Update usages

# Conflicts:
#	x-pack/plugins/security_solution/public/common/components/query_bar/index.tsx

* Fix a test

* Fix jest test

* Attaches filter menu when no add button and better dropdown styles

* Fix lint errors

* Clearing the query and filters of a saved query should unload the saved query

* Do not allow to update the loaded saved query if no filters or no query

* Fix Graph by creating reusable `KibanaFilterButtonGroup`

* Use EuiTheme for SearchBar styles

Updated `displayStyle` for Lens & Discover

* Fix displayStyle prop problem

* Correct alignment of data visualizer

* Super nit comment

* Data visualizer improvements

* Apply useMemo in editPermission cont in Discover

* Fix translations checks

* Fix translations checks

* Fix filter badge popover bug

* [Submit button] Changed to EuiSuperUpdateButton

- Quickly adds tooltip content and filled state for more prominence when dirty
- Fixed 18n

* Fix tests

* Align the position with the other tolltips and check that functional tests succeed

* Give some time to the tooltip to disappear

* Fix tests

* Fix CI checks

* Address PR comments

* Move constants outside render

* Apply PR comments

* Fix dataview picker glich

* lovercase emotion function

* Fix a11y problem on dataview picker

* Lowercase rest of emotion style functions

* Clean up

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2022-05-06 10:10:01 +03: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
Nodir Latipov
b61ef246d7
fix jest test search_bar (#130876) 2022-04-25 17:35:47 +05: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
Pierre Gayvallet
813193d8c3
no longer use an enum for home's FeatureCatalogueCategory (#129599)
* no longer use an enum for home's FeatureCatalogueCategory

* use export type for `FeatureCatalogueCategory`

* fix unused import

* remove home as requiredBundle for more kibana manifests

* fix imports

* how did I mess that?

* fixing the mess, bis

* fix duplicate import

* fix some merge problems

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-04-19 13:32:25 +02:00
spalger
3730dd0779 fix all violations 2022-04-16 01:37:30 -05:00
Stratoula Kalafateli
b0591a48db
[Maps][Visualize][Graph][Dashboard] Fixes the listingLimit settings url (#129701)
* [Maps][Visualize][Graph][Dashboard] Fixes the listingLimit settings url

* Check if user has permissions to alter the advanced setting

* Use the uiSettings service instead of the deprecated savedObjects one

* Address review comments - maps

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-04-12 15:16:32 +03:00
Nodir Latipov
3e2761d981
[Unified search] Create unified search plugin (#127651)
* [Unified search] Create unified search plugin

* add unified_search into USES_STYLED_COMPONENTS

* fix JEST group 4

* update limits for data plugin

* fix: remove unifiedSearch plugin from x-pack/plugins/file_upload

* feat: updated .github/CODEOWNERS and set @elastic/kibana-app-services as a code owner

* apply PR comments

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

* feat: moved filter bar, apply filters folders and apply filter action from Data plugin to unified search plugin

* fix Checks

* fix Checks

* fix Linting and Default CI Group #16

* fix Checks

* fix Checks

* fix Linting (with types)

* fix show FILTER_BAR

* fix Jest Tests

* feat replece indexPatternsContranct in setIndexPatterns to DataViewsContract

* feat: removed unnecessary interface in unified search

* fix Checks

* fix Checks

* fix Jest Tests, Checks

* fix Checks

* resolve comments

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-04-05 12:23:31 +05:00
renovate[bot]
d89ddadc17
Update typescript (main) (#129106)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Spencer <spencer@elastic.co>
2022-04-04 07:05:12 -07:00
Dmitry Tomashevich
91394d41e7
[Graph] Clean up deprecated APIs (#128579)
* [Discover] clean up deprecated apis

* [Graph] apply suggestions

* [Discover] replace the last DataView occurrence

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-29 17:48:49 +05:00
Joe Portner
4920ace1d5
Add enhancements for legacy URL aliases (#125960) 2022-03-18 13:11:11 -07:00
Gerard Soldevila
649fc1f583
[Telemetry] Move privacy statement URL to doc links (#126597)
* [DocLinksService] Define privacyStatement property

* Fix dockLinks typo

* Use docLinks instead of global constant

* Remove const

* Improve imports

* Update snapshot to fix UTs

* Fix incorrect imports

* Fix management section UTs

* Provide missing docLinks property to TelemetryManagementSectionComponent

* Simplify props, fix UTs

* Fix UTs broken by merge from main

* Code cleanup

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-18 10:56:38 +01:00
Marco Liberati
b6fc484e5c
[Graph] Make edge selection work (#127456)
* 🐛 Fix edge selection + empty data message

* 🐛 Fix issue and make it owkr for single selection

*  Fix tests

* 🐛 Fix toggle edge selection

*  Fix tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-16 11:06:16 +01:00
Tiago Costa
8cd75df196
chore(NA): upgrade typescript-eslint packages to v5.14.0 (#127275)
* chore(NA): upgrade typescript-eslint packages to v5.14.0

* chore(NA): ignore required quotes

* Update packages/elastic-eslint-config-kibana/typescript.js

Co-authored-by: Spencer <email@spalger.com>

* chore(NA): remove old lint disable comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Spencer <spencer@elastic.co>
Co-authored-by: Spencer <email@spalger.com>
2022-03-10 22:44:06 +00:00
Marco Liberati
f82a575a54
[Graph] Make graph app resilient to no fields or missing data views (#126441)
* 🐛 Fix broken scenarios with no fields or dataviews

* Update x-pack/plugins/graph/public/state_management/persistence.ts

* Update x-pack/plugins/graph/public/components/search_bar.tsx

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Matthias Wilhelm <ankertal@gmail.com>
2022-03-01 11:13:28 +01:00
Marco Liberati
57ef9e56a5
[Graph] Make graph edges easier to click (#124053)
* 🐛 Make edge easier to click on graph visualization

*  Fix tests for new implementation

* 🐛 Fix functional test

* 🐛 Fix more functional tests

* 🐛 Fix tests

* 🐛 Fix hover behaviour

* 📸 Update snapshot

*  Adjust fucntional objects for new changes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-15 11:38:13 +01:00
Pierre Gayvallet
6627bd8b3a
Elasticsearch client: no longer default to using meta: true (#124488)
* Use `Client` interface instead of `KibanaClient`

* get rid of getKibanaEsClient and convertToKibanaClient

* get rid of last KibanaClient usages

* update usages and types in @kbn/securitysolution-es-utils

* fix some violations

* add sugar method around client mock

* update SO repository calls

* adapt more core usages

* export mock types

* batch 1

* batch 2

* batch 3

* batch 4

* batch 5

* batch 6

* batch 7

* batch 8

* batch 9

* security - batch 1

* security - batch 2

* security - batch 3

* last batch of initial violations

* fix resolve_time_pattern

* update generated doc

* fix /internal/index-pattern-management/preview_scripted_field endpoint

* fix monitoring's getLegacyClusterShim

* fix /api/snapshot_restore/privileges route

* fix UptimeESClient

* fix transforms/_nodes endpoint

* lint

* unit test fix - batch 1

* unit test fix - batch 2

* unit test fix - batch 3

* integration test fix - batch 1

* lint

* adapt ML client

* unit test fix - batch 4

* fix uptime test helper

* fix /api/transform/transforms/{transformId}/_update route

* fix ES client FTR test

* fix uptime unit test

* fix type errors on last unit tests

* fix RollupSearchStrategy call

* fix /internal/security/fields/{query} route

* fix GET /api/index_lifecycle_management/policies route

* fix mlClient.getDataFrameAnalytics

* fix APMEventClient

* fix security solution getBootstrapIndexExists

* fix data_enhanced's getSearchStatus

* remove unused @ts-expect-error

* fix unit tests due to latest code changes

* fix more calls in security_solution routes

* fix more calls in ml routes

* fix POST /api/index_management/component_templates route

* fix unit tests due to latest changes

* fix rule_registry's ResourceInstaller.createOrUpdateIndexTemplate

* fix more fleet client calls

* fix UA's GET cloud_backup_status route

* fix createLifecycleExecutorApiTest

* fix hasFleetServers

* fix unit tests due to latest changes

* changes due to last merge

* fix ml modelProvider.getModelsPipelines

* fix security_solution LifecycleQuery.search

* fix new CoreUsageDataService usage

* fix security solution's StatsQuery.search

* improve ml FTR assertions

* fix security_solution's EventsQuery.search

* fix EsClient type as we're keeping transport

* NITs

* clean RepositoryEsClient type

* update generated doc

* review comments

* adapt mlClient.anomalySearch signature

* remove unnecessary .then((body) => body)

* nit

* add unit tests for the client mocking functions

* fix new upgrade assistant /remote_clusters endpoint
2022-02-12 09:19:44 +01:00
Tiago Costa
a5b4b822ce
chore(NA): splits types from code on @kbn/test (#124469)
* chore(NA): splits types from code on @kbn/test

* chore(NA): create new @kbn/test-jest-helpers

* chore(NA): move wrong files into @kbn/test

* chore(NA): remove @kbn/test/jest references

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-04 03:27:39 +00:00
Tiago Costa
b7e366c483
chore(NA): bump version to 8.2.0 (#124409)
* chore(NA): bump version to 8.2.0

* test(NA): update thrown error message for v8.2.0

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-02 23:21:59 +00:00
Shivindera Singh
6dc31d768d
add KibanaThemeProvider support for kibana-app-services (#122370)
add KibanaThemeProvider support for kibana-app-services
2022-01-13 07:30:10 -07:00
Tiago Costa
8496a8b1a3
chore(NA): splits types from code on @kbn/react-field (#121516)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-20 18:43:53 +00:00
Maja Grubic
8c9f8478cf
[Graph] Paginate through index patterns (#120972)
* [Graph] Paginate through index patterns

* Extract logic into a generator function

* Fix failing unit test

* Fix page initialization

* Update x-pack/plugins/graph/public/helpers/use_workspace_loader.ts

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Matthias Wilhelm <ankertal@gmail.com>
2021-12-16 14:39:31 +01:00
Tyler Smalley
92a8636f0f
Upgrade Typescript to 4.3.5 (#104470)
Co-authored-by: Mikhail Shustov <restrry@gmail.com>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
Co-authored-by: CJ Cenizal <cj@cenizal.com>
Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
Co-authored-by: Kyle Pollich <kpollich1@gmail.com>
Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Co-authored-by: Kevin Qualters <kevin.qualters@elastic.co>
Co-authored-by: Candace Park <candace.park@elastic.co>
Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
Co-authored-by: spalger <spencer@elastic.co>
2021-12-02 16:27:41 -08:00
Maja Grubic
2d13b7be3c
[Graph] Add KibanaThemeProvider (#119802)
* [Graph] Add ThemeProvider

* Wrap top_nav_menu in kibana theme

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-02 20:39:03 +01:00
Tiago Costa
9d662b77be
chore(NA): splits types from code on @kbn/i18n (#119256)
* chore(NA): auto creation of the package.json for the new types pkg rule

* chore(NA): first alpha api extractor working version

* chore(NA): support kbn-analytics

* chore(NA): correctly read tsconfig files and deps from ts_config rule

* chore(NA): layed out pkg_npm_types tree artifact custom rule

* chore(NA): missing todos

* chore(NA): node modules link mapping

* chore(NA): fully working pkg_npm_types rule

* chore(NA): fix changes on new packages using elastic datemath pkgs

* docs(NA): remove todo

* docs(NA): last todo text correction

* chore(NA): removed commented lines

* fix(NA): include missing package version

* chore(NA): include license keys

* chore(NA): change mock types package into private

* chore(NA): disable validator on ts_project rule

* chore(NA): use the wrapper for ts_project

* commit using @elastic.co

* chore(NA): commit using @elastic.co

* chore(NA): split types from code on @kbn/i18n

* chore(NA): update yarn.lock file

* chore(NA): split @kbn/i18n and @kbn/i18n-react

* chore(NA): missing import fix

* chore(NA): fix jest project configs

* chore(NA): change imports on kbn i18n

* chore(NA): change imports on kbn i18n

* chore(NA): correct loader imports

* chore(NA): missnig i18nLoader export key

* chore(NA): fix type exports

* chore(NA): export type only

* chore(NA): export type only

* fix(NA): type exports

* chore(NA): missing @Kbn/i18n/react imports

* chore(NA): missing skip path for kbn-i18n-react

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-24 17:18:03 +00:00