Michail Yasonik
87494df30e
[7.x] New nav ( #64018 ) ( #65411 )
2020-05-06 01:12:18 -05:00
Spencer
33ef7c7938
[7.x] disallow external imports to src/core/utils ( #64852 ) ( #65378 )
2020-05-05 19:01:47 -07:00
Alexey Antonov
b29fb2220d
Cleanup Typescript index pattern field editor / Expression functions for bucket agg ( #65254 ) ( #65281 )
...
# Conflicts:
# docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.md
# docs/development/plugins/data/public/kibana-plugin-plugins-data-public.md
# src/legacy/ui/public/field_editor/field_editor.test.tsx
# src/plugins/data/public/index.ts
# src/plugins/data/public/public.api.md
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-05 21:32:07 +03:00
Vadim Dalecky
62a947c535
Drilldowns ( #61219 ) ( #65087 )
...
* Add drilldown wizard components
* Dynamic actions (#58216 )
* feat: 🎸 add DynamicAction and FactoryAction types
* feat: 🎸 add Mutable<T> type to @kbn/utility-types
* feat: 🎸 add ActionInternal and ActionContract
* chore: 🤖 remove unused file
* feat: 🎸 improve action interfaces
* docs: ✏️ add JSDocs
* feat: 🎸 simplify ui_actions interfaces
* fix: 🐛 fix TypeScript types
* feat: 🎸 add AbstractPresentable interface
* feat: 🎸 add AbstractConfigurable interface
* feat: 🎸 use AbstractPresentable in ActionInternal
* test: 💍 fix ui_actions Jest tests
* feat: 🎸 add state container to action
* perf: ⚡ ️ convert MenuItem to React component on Action instance
* refactor: 💡 rename AbsractPresentable -> Presentable
* refactor: 💡 rename AbstractConfigurable -> Configurable
* feat: 🎸 add Storybook to ui_actions
* feat: 🎸 add <ErrorConfigureAction> component
* feat: 🎸 improve <ConfigureAction> component
* chore: 🤖 use .story file extension prefix for Storybook
* feat: 🎸 improve <ErrorConfigureAction> component
* feat: 🎸 show error if dynamic action has CollectConfig missing
* feat: 🎸 render sample action configuration component
* feat: 🎸 connect action config to <ConfigureAction>
* feat: 🎸 improve <ConfigureAction> stories
* test: 💍 add ActionInternal serialize/deserialize tests
* feat: 🎸 add ActionContract
* feat: 🎸 split action Context into Execution and Presentation
* fix: 🐛 fix TypeScript error
* refactor: 💡 extract state container hooks to module scope
* docs: ✏️ fix typos
* chore: 🤖 remove Mutable<t> type
* test: 💍 don't cast to any getActions() function
* style: 💄 avoid using unnecessary types
* chore: 🤖 address PR review comments
* chore: 🤖 rename ActionContext generic
* chore: 🤖 remove order from state container
* chore: 🤖 remove deprecation notice on getHref
* test: 💍 fix tests after order field change
* remove comments
Co-authored-by: Matt Kime <matt@mattki.me>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Drilldown context menu (#59638 )
* fix: 🐛 fix TypeScript error
* feat: 🎸 add CONTEXT_MENU_DRILLDOWNS_TRIGGER trigger
* fix: 🐛 correctly order context menu items
* fix: 🐛 set correct order on drilldown flyout actions
* fix: 🐛 clean up context menu building functions
* feat: 🎸 add context menu separator action
* Add basic ActionFactoryService. Pass data from it into components instead of mocks
* Dashboard x pack (#59653 )
* feat: 🎸 add dashboard_enhanced plugin to x-pack
* feat: 🎸 improve context menu separator
* feat: 🎸 move drilldown flyout actions to dashboard_enhanced
* fix: 🐛 fix exports from ui_actions plugin
* feat: 🎸 "implement" registerDrilldown() method
* fix ConfigurableBaseConfig type
* Implement connected flyout_manage_drilldowns component
* Simplify connected flyout manage drilldowns component. Remove intermediate component
* clean up data-testid workaround in new components
* Connect welcome message to storage
Not sure, but use LocalStorage. Didn’t find a way to persist user settings. looks like uiSettings are not user scoped.
* require `context` in Presentable. drill context down through wizard components
* Drilldown factory (#59823 )
* refactor: 💡 import storage interface from ui_actions plugin
* refactor: 💡 make actions not-dynamic
* feat: 🎸 fix TypeScript errors, reshuffle types and code
* fix: 🐛 fix more TypeScript errors
* fix: 🐛 fix TypeScript import error
* Drilldown registration (#59834 )
* feat: 🎸 improve drilldown registration method
* fix: 🐛 set up translations for dashboard_enhanced plugin
* Drilldown events 3 (#59854 )
* feat: 🎸 add serialize/unserialize to action
* feat: 🎸 pass in uiActions service into Embeddable
* feat: 🎸 merge ui_actions oss and basic plugins
* refactor: 💡 move action factory registry to OSS
* fix: 🐛 fix TypeScript errors
* Drilldown events 4 (#59876 )
* feat: 🎸 mock sample drilldown execute methods
* feat: 🎸 add .dynamicActions manager to Embeddable
* feat: 🎸 add first version of dynamic action manager
* Drilldown events 5 (#59885 )
* feat: 🎸 display drilldowns in context menu only on one embed
* feat: 🎸 clear dynamic actions from registry when embed unloads
* fix: 🐛 fix OSS TypeScript errors
* basic integration of components with dynamicActionManager
* fix: 🐛 don't overwrite explicitInput with combined input (#59938 )
* display drilldown count in embeddable edit mode
* display drilldown count in embeddable edit mode
* improve wizard components. more tests.
* partial progress, dashboard drilldowns (#59977 )
* partial progress, dashboard drilldowns
* partial progress, dashboard drilldowns
* feat: 🎸 improve dashboard drilldown setup
* feat: 🎸 wire in services into dashboard drilldown
* chore: 🤖 add Storybook to dashboard_enhanced
* feat: 🎸 create presentational <DashboardDrilldownConfig>
* test: 💍 add <DashboardDrilldownConfig> stories
* test: 💍 use presentation dashboar config component
* feat: 🎸 wire in services into React component
* docs: ✏️ add README to /components folder
* feat: 🎸 increase importance of Dashboard drilldown
* feat: 🎸 improve icon definition in drilldowns
* chore: 🤖 remove unnecessary comment
* chore: 🤖 add todos
Co-authored-by: streamich <streamich@gmail.com>
* Manage drilldowns toasts. Add basic error handling.
* support order in action factory selector
* fix column order in manage drilldowns list
* remove accidental debug info
* bunch of nit ui fixes
* Drilldowns reactive action manager (#60099 )
* feat: 🎸 improve isConfigValid return type
* feat: 🎸 make DynamicActionManager reactive
* docs: ✏️ add JSDocs to public mehtods of DynamicActionManager
* feat: 🎸 make panel top-right corner number badge reactive
* fix: 🐛 correctly await for .deleteEvents()
* Drilldowns various 2 (#60103 )
* chore: 🤖 address review comments
* test: 💍 fix embeddable_panel.test.tsx tests
* chore: 🤖 clean up ActionInternal
* chore: 🤖 make isConfigValid a simple predicate
* chore: 🤖 fix TypeScript type errors
* test: 💍 stub DynamicActionManager tests (#60104 )
* Drilldowns review 1 (#60139 )
* refactor: 💡 improve generic types
* fix: 🐛 don't overwrite icon
* fix: 🐛 fix x-pack TypeScript errors
* fix: 🐛 fix TypeScript error
* fix: 🐛 correct merge
* Drilldowns various 4 (#60264 )
* feat: 🎸 hide "Create drilldown" from context menu when needed
* style: 💄 remove AnyDrilldown type
* feat: 🎸 add drilldown factory context
* chore: 🤖 remove sample drilldown
* fix: 🐛 increase spacing between action factory picker
* workaround issue with closing flyout when navigating away
Adds overlay just like other flyouts which makes this defect harder to bump in
* fix react key issue in action_wizard
* don’t open 2 flyouts
* fix action order
https://github.com/elastic/kibana/issues/60138
* Drilldowns reload stored (#60336 )
* style: 💄 don't use double equals __
* feat: 🎸 add reload$ to ActionStorage interface
* feat: 🎸 add reload$ to embeddable event storage
* feat: 🎸 add storage syncing to DynamicActionManager
* refactor: 💡 use state from DynamicActionManager in React
* fix: 🐛 add check for manager being stopped
* Drilldowns triggers (#60339 )
* feat: 🎸 make use of supportedTriggers()
* feat: 🎸 pass in context to configuration component
* feat: 🎸 augment factory context
* fix: 🐛 stop infinite re-rendering
* Drilldowns multitrigger (#60357 )
* feat: 🎸 add support for multiple triggers
* feat: 🎸 enable Drilldowns for TSVB
Although TSVB brushing event is now broken on master, KibanaApp plans to
fix it in 7.7
* "Create drilldown" flyout - design cleanup (#60309 )
* create drilldown flyout cleanup
* remove border from selectedActionFactoryContainer
* adjust callout in DrilldownHello
* update form labels
* remove unused file
* fix type error
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
* basic unit tests for flyout_create_drildown action
* Drilldowns finalize (#60371 )
* fix: 🐛 align flyout content to left side
* fix: 🐛 move context menu item number 1px lower
* fix: 🐛 move flyout back nav chevron up
* fix: 🐛 fix type check after refactor
* basic unit tests for drilldown actions
* Drilldowns finalize 2 (#60510 )
* test: 💍 fix test mock
* chore: 🤖 remove unused UiActionsService methods
* refactor: 💡 cleanup UiActionsService action registration
* fix: 🐛 add missing functionality after refactor
* test: 💍 add action factory tests
* test: 💍 add DynamicActionManager tests
* feat: 🎸 capture error if it happens during initial load
* fix: 🐛 register correctly CSV action
* feat: 🎸 don't show "OPTIONS" title on drilldown context menus
* feat: 🎸 add server-side for x-pack dashboard plugin
* feat: 🎸 disable Drilldowns for TSVB
* feat: 🎸 enable drilldowns on kibana.yml feature flag
* feat: 🎸 add feature flag comment to kibana.yml
* feat: 🎸 remove places from drilldown interface
* refactor: 💡 remove place in factory context
* chore: 🤖 remove doExecute
* remove not needed now error_configure_action component
* remove workaround for storybook
* feat: 🎸 improve DrilldownDefinition interface
* style: 💄 replace any by unknown
* chore: 🤖 remove any
* chore: 🤖 make isConfigValid return type a boolean
* refactor: 💡 move getDisplayName to factory, remove deprecated
* style: 💄 remove any
* feat: 🎸 improve ActionFactoryDefinition
* refactor: 💡 change visualize_embeddable params
* feat: 🎸 add dashboard dependency to dashboard_enhanced
* style: 💄 rename drilldown plugin life-cycle contracts
* refactor: 💡 do naming adjustments for dashboard drilldown
* fix: 🐛 fix Type error
* fix: 🐛 fix TypeScript type errors
* test: 💍 fix test after refactor
* refactor: 💡 rename context -> placeContext in React component
* chore: 🤖 remove setting from kibana.yml
* refactor: 💡 change return type of getAction as per review
* remove custom css per review
* refactor: 💡 rename drilldownCount to eventCount
* style: 💄 remove any
* refactor: 💡 change how uiActions are passed to vis embeddable
* style: 💄 remove unused import
* fix: 🐛 pass in uiActions to visualize_embeddable
* fix: 🐛 correctly register action
* fix: 🐛 fix type error
* chore: 🤖 remove unused translations
* Dynamic actions to xpack (#62647 )
* feat: 🎸 set up sample action factory provider
* feat: 🎸 create dashboard_enhanced plugin
* feat: 🎸 add EnhancedEmbeddable interface
* refactor: 💡 move DynamicActionManager to x-pack
* feat: 🎸 connect dynamic action manager to embeddable life-cycle
* test: 💍 fix Jest tests after refactor
* fix: 🐛 fix type error
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* refactor: 💡 move action factories to x-pack (#63190 )
* refactor: 💡 move action factories to x-pack
* fix: 🐛 use correct plugin embeddable deps
* test: 💍 fix Jest test after refactor
* chore: 🤖 remove kibana.yml flag (#62441 )
* Panel top right (#63466 )
* feat: 🎸 add PANEL_NOTIFICATION_TRIGGER
* feat: 🎸 add PanelNotificationsAction action
* test: 💍 add PanelNotificationsAction unit tests
* refactor: 💡 revert addTriggerAction() change
* style: 💄 remove unused import
* fix: 🐛 fix typecheck errors after merge
* support getHref in drilldowns (#63727 )
* chore: 🤖 remove ui_actions storybook config
* update docs
* fix ts
* fix: 🐛 fix broken merge
* [Drilldowns] Dashboard to dashboard drilldown (#63108 )
* partial progress on async loading / searching of dashboard titles
* feat: 🎸 make combobox full width
* filtering combobox polish
* storybook fix
* implement navigating to dashboard, seems like a type problem
* try navToApp
* filter out current dashboard
* rough draft linking to a dashboard
* remove note
* typefix
* fix navigation from dashboard to dashboard
except for back button - that would be addressed separatly
* partial progress getting filters from action data
* fix issue with getIndexPatterns undefined
we can’t import those functions as static functions, instead we have to expose them on plugin contract because they are statefull
* fix filter / time passing into url
* typefix
* dashboard to dashboard drilldown functional test and back button fix
* documentation update
* chore clean-ups
fix type
* basic unit test for dashboard drilldown
* remove test todos
decided to skip those tests because not clear how to test due to EuiCombobox is using react-virtualized and options list is not rendered in jsdom env
* remove config
* improve back button with filter comparison tweak
* dashboard filters/date option off by default
* revert change to config/kibana.yml
* remove unneeded comments
* use default time range as appropriate
* fix type, add filter icon, add text
* fix test
* change how time range is restored and improve back button for drilldowns
* resolve conflicts
* fix async compile issue
* remove redundant test
* wip
* wip
* fix
* temp skip tests
* fix
* handle missing dashboard edge case
* fix api
* refactor action filter creation utils
* updating
* updating docs
* improve
* fix storybook
* post merge fixes
* fix payload emitted in brush event
* properly export createRange action
* improve tests
* add test
* post merge fixes
* improve
* fix
* improve
* fix build
* wip getHref support
* implement getHref()
* give proper name to a story
* use sync start services
* update text
* fix types
* fix ts
* fix docs
* move clone below drilldowns (near replace)
* remove redundant comments
* refactor action filter creation utils
* updating
* updating docs
* fix payload emitted in brush event
* properly export createRange action
* some more updates
* fixing types
* ...
* inline EventData
* fix typescript in lens and update docs
* improve filters types
* docs
* merge
* @mdefazio review
* adjust actions order
* docs
* @stacey-gammon review
Co-authored-by: Matt Kime <matt@mattki.me>
Co-authored-by: streamich <streamich@gmail.com>
Co-authored-by: ppisljar <peter.pisljar@gmail.com>
* fix docs
* nit fixes
* chore: 🤖 remove uiActions from Embeddable dependencies
* chore: 🤖 don't export ActionInternal from ui_actions
* test: 💍 remove uiActions deps in x-pack test mocks
* chore: 🤖 cleanup ui_actions types
* docs: ✏️ add JSDoc comment to addTriggerAction()
* docs: ✏️ regenerate docs
* Drilldown demo 2 (#64300 )
* chore: 🤖 add example of Discover drilldown to sample plugin
* fix: 🐛 show drilldowns with higher "order" first
* feat: 🎸 add createStartServicesGetter() to /public kibana_util
* feat: 🎸 load index patterns in Discover drilldown
* feat: 🎸 add toggle for index pattern selection
* feat: 🎸 add spacer to separate unrelated config fields
* fix: 🐛 correctly configre setup core
* feat: 🎸 navigate to correct index pattern
* chore: 🤖 fix type check errors
* fix: 🐛 make index pattern select full width
* fix: 🐛 add getHref support
* feat: 🎸 add example plugin ability to X-Pack
* refactor: 💡 move Discover drilldown example to X-Pack
* feat: 🎸 add dashboard-to-url drilldown example
* feat: 🎸 add new tab support for URL drilldown
* feat: 🎸 add "hello world" drilldown example
* docs: ✏️ add README
* feat: 🎸 add getHref support
* chore: 🤖 cleanup after moving examples to X-Pack
* docs: ✏️ add to README.md info on how to find drilldowns
* feat: 🎸 store events in .enhancements field
* docs: ✏️ add comment to range trigger title
* refactor: 💡 move Configurable interface into kibana_utils
* chore: 🤖 simplify internal component types
* refactor: 💡 move registerDrilldwon() to advanced_ui_actions
* test: 💍 update functional test data
* merge
* docs: ✏️ make drilldown enhancement comment more general
* fix: 🐛 return public type from registerAction() call
* docs: ✏️ add comment to value click trigger title field
* docs: ✏️ improve comment
* fix: 🐛 use second argument of CollectConfigProps interface
* fix: 🐛 add workaround for Firefox rendering issue
See:
https://github.com/elastic/kibana/pull/61219/#pullrequestreview-402903330
* chore: 🤖 delete unused file
* fix: 🐛 import type from new location
* style: 💄 make generic type variable name sconsistent
* fix: 🐛 show "Create drilldown" only on dashboard
* test: 💍 add extra unit test for root embeddable type
* docs: ✏️ update generated docs
* chore: 🤖 add example warnings to sample drilldowns
* docs: ✏️ add links to example warnings
* feat: 🎸 add URL drilldown validation and https:// prefixing
* fix: 🐛 disable drilldowns for lens
* refactor: 💡 remove PlaceContext from DrilldownDefinition
* fix: 🐛 fix type check error
* feat: 🎸 show warning message if embeddable not provided
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
Co-authored-by: Matt Kime <matt@mattki.me>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Andrea Del Rio <delrio.andre@gmail.com>
Co-authored-by: ppisljar <peter.pisljar@gmail.com>
# Conflicts:
# .github/CODEOWNERS
2020-05-04 18:20:37 +02:00
Luke Elmers
35ba9653df
[data.search.aggs] Remove legacy aggs APIs. ( #64719 ) ( #64987 )
...
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-01 06:33:01 -06:00
Wylie Conlon
643cabe781
[7.x] [Lens] Bind all time fields to the time picker ( #63874 ) ( #64857 )
...
* [Lens] Bind all time fields to the time picker (#63874 )
* Bind non primary time fields to timepicker
* Fix typescript argument types
* Allow auto interval on all fields
* Remove lens_auto_date function
* Fix existing jest tests and add test todos
* Remove lens_auto_date from esarchives
* Add TimeBuckets jest tests
* Fix typo in esarchiver
* Address review feedback
* Make code a bit better readable
* Fix default time field retrieval
* Fix TS errors
* Add esaggs interpreter tests
* Change public API doc of data plugin
* Add toExpression tests for index pattern datasource
* Add migration stub
* Add full migration
* Fix naming inconsistency in esaggs
* Fix naming issue
* Revert archives to un-migrated version
* Ignore expressions that are already migrated
* test: remove extra spaces and timeField=\\"products.created_on\\"} to timeField=\"products.created_on\"}
* Rename all timeField -> timeFields
* Combine duplicate functions
* Fix boolean error and add test for it
* Commit API changes
Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>
* fix: fix migration
* types fix
Co-authored-by: Tim Roes <tim.roes@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>
2020-04-30 13:47:03 -04:00
Pierre Gayvallet
361e7618ec
add generic typings for SavedObjectMigrationFn ( #63943 ) ( #64874 )
...
* add generic typings for SavedObjectMigrationFn
* change default attributes type to unknown
* update generated doc
* adapt new calls
* update generated doc
* update migration example
* fix merge conflicts
2020-04-30 16:06:17 +02:00
Pierre Gayvallet
e5946cee4f
Allow to define and update a defaultPath for applications ( #64498 ) ( #64867 )
...
* add defaultPath to `AppBase` and use it in `navigateToApp`
* add removeSlashes util
* adapt `toNavLink` to handle defaultPath
* update generated doc
* codestyle
* add FTR test
* address comments
* add tests
2020-04-30 09:52:28 +02:00
CJ Cenizal
61822d8327
[7.x] ES UI new platform cleanup ( #64332 ) ( #64706 )
2020-04-29 12:46:42 -07:00
Matthew Kime
1d9eab9aa6
Typescript index pattern field editor ( #63495 ) ( #64609 )
...
* Typescript index pattern field editor
2020-04-27 21:03:43 -05:00
Rudolf Meijering
9932bc61ee
Remove SO root property index signature ( #64434 ) ( #64520 )
...
* Remove SO root property index signature
* Update documentation
2020-04-27 20:18:38 +02:00
Pierre Gayvallet
aa01c28962
Remove SO autocreateindex error and error page ( #64037 ) ( #64499 )
...
* remove autocreateIndex error and error page
* update generated doc
* delete unused keys
* remove sass import
* add missing graph import
* remove unused method
2020-04-27 12:50:44 +02:00
Alexey Antonov
69b68a9c38
[FieldFormats] Cleanup: rename IFieldFormatType -> FieldFormatInstanceType ( #64193 ) ( #64399 )
...
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-24 16:48:14 +03:00
Luke Elmers
0f96249483
[data.search.aggs]: Create agg types function for terms agg. ( #63541 ) ( #64342 )
2020-04-23 21:49:51 -06:00
Peter Pisljar
f8563f8b27
refactor action filter creation utils ( #62969 ) ( #64143 )
2020-04-23 13:23:35 +02:00
Alexey Antonov
c4cff972d0
[Regression] Histogram aggregation always shows an error message ( #63484 ) ( #64211 )
...
* WIP [Regression] Histogram aggregation always shows an error message
Closes : #62624
* make getInternalStartServices private
* fix ts issues
* remove createSearchSource from static contract
* fix some jest test
* move searh_source to static contract
* fix types
* fix function tests
* fix jest / add createStartServicesGetter
* fix comments: saved_object_management
* maps: fix PR comments
* maps: update types
* fix heck_published_api_changes
* move searchSource into runtime contract
* cleanup
* fix ts error
* cleanup
* remove extra dependencies
* fix Discover
* fix Discover JEST
* fix PR comments
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
# src/plugins/data/public/public.api.md
2020-04-22 22:06:17 +03:00
Diana Derevyankina
e400469b4e
Enable include/exclude in Terms agg for numeric fields ( #59425 ) ( #64044 )
...
* Enable include/exclude in Terms agg for numeric fields
Closes #4576
* Added a new component that allows adding multiple values
* Added some validation to include/exclude fields
* Removed unnecessary comments and accepted API changes
* Fixed i18n ID issue
* Refactored some code and fixed discard button issue
* Added SimpleNumberList component and value parsing in include_exclude.tsx
* Fixed merge conflict
* Fixed merge conflict
* Refactored some code
* Got rid of lodash isArray, added Number.isFinite where needed and changed symbol of string join and array split
* Added some more test cases to cover migrate_include_exclude_format write method
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-21 15:17:41 +03:00
Matthew Kime
695cda47db
[7.x] Index Pattern Field class - factor out copy_field code for future typescripting ( #63083 ) ( #63461 )
...
* Index Pattern Field class - factor out copy_field code for future typescripting (#63083 )
2020-04-20 19:56:23 -05:00
Spencer
37e9dced10
[7.x] [SEARCH] Cleanup fetch soon ( #63320 ) ( #63983 )
...
* move old code to legacy folder
* Use search service directly from search source
* Move get search params to fetch folder
* Delete search strategy folder
* Doc update
* Minor cleanups
* Moved es client to legacy folder
* Clean up some unused code (isViable, old search function)
* Updated tests
* strings update
* Fix jest test
* re-arrange runSearch function
* re-arrange runSearch function
* fix jest tests
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Liza Katz <liza.katz@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-20 15:16:24 -07:00
spalger
5498a2302f
Revert "[7.x] [SEARCH] Cleanup fetch soon ( #63320 ) ( #63929 )"
...
This reverts commit 6ee7111ca5
.
2020-04-20 10:05:25 -07:00
Liza Katz
6ee7111ca5
[7.x] [SEARCH] Cleanup fetch soon ( #63320 ) ( #63929 )
...
* [SEARCH] Cleanup fetch soon (#63320 )
* move old code to legacy folder
* Use search service directly from search source
* Move get search params to fetch folder
* Delete search strategy folder
* Doc update
* Minor cleanups
* Moved es client to legacy folder
* Clean up some unused code (isViable, old search function)
* Updated tests
* strings update
* Fix jest test
* re-arrange runSearch function
* re-arrange runSearch function
* fix jest tests
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* remove file (bad merge)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-20 15:11:50 +03:00
Uladzislau Lasitsa
65086bb796
[7.x] Index pattern management UI -> TypeScript and New Platform Ready (indexed_fields_table) ( #63364 ) ( #63659 )
...
* Index pattern management UI -> TypeScript and New Platform Ready (indexed_fields_table) (#63364 )
* MIgrated indexed_fields_table to typescript.
* Updated docs
* Fixed comments
* Fixed types
* Fixed types.
* Fixed types
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-17 14:53:00 +03:00
Joe Portner
f6cb14ad1a
[7.x] Refactor SO types to use namespaceType
( #63217 ) ( #63745 )
...
Remove `namespaceAgnostic` field that was deprecated in #54605 ,
use `namespaceType` instead.
2020-04-16 19:11:43 -04:00
Mikhail Shustov
a2ceb6591d
[NP] add http resources sub-service ( #61797 ) ( #63708 )
...
* add HttpResources basic implementation
* expose http resources to plugins
* add mocks
* move http resources to a separate service
* hide rendering service
* adopt internal types
* expose HttpResources service to plugins
* update platform mocks
* plugins start using HttpResources API
* remove RenderingServiceSetup export
* RenderingServiceSetup --> InternalRenderingServiceSetup
* improve types
* remove httpRespources leftovers from http service
* remove rendering types from RequestHanlderContext
* fix security plugin tests
* add unit tests for httpResources service
* add unit tests
* remove outdated cache-control header
* restructure http resources service
* merge getUiPlugins and discover
* static route declaration shouldnt require auth & validate
* update docs
* use HttpResources service instad of rendering
* address comments
* update docs
* roll back unnecessary changes
* use getVars for rendering
* dont pass app. it is not public API
* remove static registers
* update migration guide
2020-04-16 18:40:15 +02:00
Pierre Gayvallet
6bc80369a5
fix ScopedHistory.createHref to prepend location with scoped history basePath ( #62407 ) ( #63311 )
...
* fix createHref to prepend with scoped history basePath + add option to exclude it.
* fix prependBasePath behavior
* fix test plugins urls
* add pathname to endpoint url builder methods
* Revert "add pathname to endpoint url builder methods"
This reverts commit 7604932b
* adapt createHref instead of prependBasePath
* use object options for createHref
* update generated doc
2020-04-11 11:23:30 +02:00
Joe Portner
a0bde86792
[7.x] Sharing saved-objects phase 1 ( #54605 ) ( #63215 )
...
Co-authored-by: kobelb <brandon.kobel@elastic.co>
2020-04-10 12:56:08 -04:00
Joe Reuter
3078bfa788
Move search source parsing and serializing to data ( #59919 ) ( #63104 )
2020-04-09 15:52:55 +02:00
Josh Dover
76ac0c02db
[7.x] Add basic StatusService ( #60335 ) ( #63010 )
2020-04-08 18:13:15 -06:00
Alexey Antonov
a83455caad
[data.search.aggs] Remove service getters from agg types ( #61628 ) ( #62762 )
...
* [data.search.aggs] Remove service getters from agg types
Part of #60333
* new portion of changes
* pass dependencies to MetricAgg Type through constructor
* update docs
* refactoring buckets
* remove unused mockDataServices
* Remove service getters from metrics
* Some fixes
* remove temporary code
* moved notifications to the getInternalStartServices
* fixed karma lock
* update docs
* Fixed tests
* fix broken CI
* fix PR comment
* fix typo
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Uladzislau Lasitsa <Uladzislau_Lasitsa@epam.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Uladzislau Lasitsa <Uladzislau_Lasitsa@epam.com>
2020-04-07 15:16:04 +03:00
Peter Pisljar
b9318aa53c
move visualizations plugin to new platform ( #60403 ) ( #61717 )
2020-03-28 10:01:53 +01:00
Lukas Olson
6402a6abc0
[Search] Fix async search to encode index pattern in path ( #61374 ) ( #61647 )
...
* Fix async search to encode index in path
* Update docs
* Review feedback & fixing types
2020-03-27 11:27:21 -07:00
Rudolf Meijering
9a898f2401
Update core migration docs links ( #61251 ) ( #61358 )
2020-03-26 13:46:41 +01:00
Pierre Gayvallet
5d5c306002
Add plugin start contract to getStartServices return value ( #61216 ) ( #61415 )
...
* add plugin own contract as third element of getStartServices result
* adapt plugins code
* update tests
* revert unknown to use void again
* update generated doc
* fix UT
* update mock to allow non-object `pluginStartContract`
* add @typeParam documentation
2020-03-26 12:40:56 +01:00
Josh Dover
5a2669294d
Fix running Kibana Platform migrations in development ( #61325 ) ( #61359 )
2020-03-25 17:37:18 -06:00
Liza Katz
5e94e89640
[7.x] Add async search notification ( #60706 ) ( #61098 )
...
* notifications ui
* increase timeout to 10s
* trigger notification from search interceptor
* added an enhanced interceptor
* added an enhanced interceptor
* docs
* docs
* fix ts
* Fix jest tests for interceptor
* update docs
* docs
* Fix handling syntax error in discover
* docs and translations
* fix scripted fields err
Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
2020-03-24 20:16:15 +02:00
Pierre Gayvallet
6bc866a9b1
introduce StartServicesAccessor type for CoreSetup.getStartServices
( #60748 ) ( #61070 )
...
* create StartServicesAccessor type
* update generated doc
* update usages to use new type
* add missing public annotation
2020-03-24 16:30:16 +01:00
Devon Thomson
ab37910a16
Support Histogram Data Type ( #59387 ) ( #60926 )
...
Added the histogram field type to Kibana, to be used in the percentiles, percentiles ranks, and median aggregations.
2020-03-24 10:13:38 +01:00
Peter Pisljar
80a7fc3d71
cleanup visualizations api ( #59958 ) ( #60959 )
2020-03-24 08:29:03 +01:00
Chandler Prall
fa0c700c92
[7.x] Upgrade EUI to 21.0.1 ( #60282 ) ( #60809 )
...
* Upgrade EUI to 21.0.1 (#60282 )
* update to eui 21.0.1
* most changes needed for search bar ts changes
* Passing types
* snapshots
* jest tests
* Removed IQuery placeholder types
* Updated functional test to only look at table headers with content
* Moved 'filters' definition around in api docs
* Update types
* update snapshot
* typo
* Move DATA_FRAME_TASK_STATE enum to its own file to fix x-pack functional test config imports
* merge public api 'changes'
Co-authored-by: patrykkopycinski <patryk.kopycinski@elastic.co>
Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
* unit test update
Co-authored-by: patrykkopycinski <patryk.kopycinski@elastic.co>
Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
2020-03-20 23:09:36 -06:00
Liza Katz
2f081a2adb
Introduce search interceptor ( #60523 ) ( #60723 )
...
* Add async search strategy
* Add async search
* Fix async strategy and add tests
* Move types to separate file
* Revert changes to demo search
* Update demo search strategy to use async
* Add async es search strategy
* Return response as rawResponse
* Poll after initial request
* Add cancellation to search strategies
* Add tests
* Simplify async search strategy
* Move loadingCount to search strategy
* Update abort controller library
* Bootstrap
* Abort when the request is aborted
* Add utility and update value suggestions route
* Fix bad merge conflict
* Update tests
* Move to data_enhanced plugin
* Remove bad merge
* Revert switching abort controller libraries
* Revert package.json in lib
* Move to previous abort controller
* Add support for frozen indices
* Fix test to use fake timers to run debounced handlers
* Revert changes to example plugin
* Fix loading bar not going away when cancelling
* Call getSearchStrategy instead of passing directly
* Add async demo search strategy
* Fix error with setting state
* Update how aborting works
* Fix type checks
* Add test for loading count
* Attempt to fix broken example test
* Revert changes to test
* Fix test
* Update name to camelCase
* Fix failing test
* Don't require data_enhanced in example plugin
* Actually send DELETE request
* Use waitForCompletion parameter
* Use default search params
* Add support for rollups
* Only make changes needed for frozen indices/rollups
* Only make changes needed for frozen indices/rollups
* Add back in async functionality
* Fix tests/types
* Fix issue with sending empty body in GET
* Don't include skipped in loaded/total
* Don't wait before polling the next time
* Add search interceptor for bulk managing searches
* Simplify search logic
* Fix merge error
* Review feedback
* Add service for running beyond timeout
* Refactor abort utils
* Remove unneeded changes
* Add tests
* cleanup mocks
* Update src/legacy/core_plugins/kibana/public/dashboard/np_ready/dashboard_app.html
Co-Authored-By: Lukas Olson <olson.lukas@gmail.com>
Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-20 21:58:06 +02:00
Daniil Suleiman
7f362e6e18
[NP] Remove ui/agg_types
dependencies and move paginated table to kibana_legacy ( #60276 ) ( #60769 )
...
* fix agg type shims and move paginated table to kibana_legacy
* fix types
* fix i18n ids
* fix unit tests
* Update imports
* Remove ui/agg_types imports
* Clean up vis_default_editor plugin
* Remove agg_types imports in vis_type_table
* Clean up x-pack
* Clean up vis_type_vislib
* Last cleanups
* Update docs
* Mock Schemas in vis_type_metric
* Use data plugin mocks
* Remove ui/directives/paginate reference
* Remove snapshot
* Remove shallow
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
# src/legacy/core_plugins/kibana/public/dashboard/np_ready/dashboard_state.test.ts
2020-03-20 22:02:00 +03:00
Liza Katz
ffba422fe1
Add addInfo toast to core notifications service ( #60574 ) ( #60724 )
...
* addInfo toast
* md files
* fis types
* Added options to toast methods
* Export ToastOptions
* Export ToastOptions
* added test
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-20 14:50:00 +02:00
Lukas Olson
3bfabb0fab
[Search service] Asynchronous ES search strategy ( #53538 ) ( #60469 )
...
* Add async search strategy
* Add async search
* Fix async strategy and add tests
* Move types to separate file
* Revert changes to demo search
* Update demo search strategy to use async
* Add async es search strategy
* Return response as rawResponse
* Poll after initial request
* Add cancellation to search strategies
* Add tests
* Simplify async search strategy
* Move loadingCount to search strategy
* Update abort controller library
* Bootstrap
* Abort when the request is aborted
* Add utility and update value suggestions route
* Fix bad merge conflict
* Update tests
* Move to data_enhanced plugin
* Remove bad merge
* Revert switching abort controller libraries
* Revert package.json in lib
* Move to previous abort controller
* Add support for frozen indices
* Fix test to use fake timers to run debounced handlers
* Revert changes to example plugin
* Fix loading bar not going away when cancelling
* Call getSearchStrategy instead of passing directly
* Add async demo search strategy
* Fix error with setting state
* Update how aborting works
* Fix type checks
* Add test for loading count
* Attempt to fix broken example test
* Revert changes to test
* Fix test
* Update name to camelCase
* Fix failing test
* Don't require data_enhanced in example plugin
* Actually send DELETE request
* Use waitForCompletion parameter
* Use default search params
* Add support for rollups
* Only make changes needed for frozen indices/rollups
* Only make changes needed for frozen indices/rollups
* Add back in async functionality
* Fix tests/types
* Fix issue with sending empty body in GET
* Don't include skipped in loaded/total
* Don't wait before polling the next time
* Simplify search logic
* Fix merge error
* Review feedback
* Fix issue with hits.total
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-20 11:20:44 +02:00
CJ Cenizal
68eafd6715
Publish getIsNavDrawerLocked$ method on core chrome service. ( #60191 ) ( #60593 )
...
* Remove isCollapsed, getIsCollapsed, and global_nav_state.
2020-03-18 21:59:01 -07:00
Rudolf Meijering
aca82ec668
Re-backport and re-generate typescript docs ( #60507 )
2020-03-18 23:14:23 +01:00
Alexey Antonov
dd378a9d31
[Visualize] Duplicated query filters in es request ( #60106 ) ( #60519 )
...
* [Visualize] Duplicated query filters in es request
Closes : #59630
* Fix CI
* fix CI
* move uniq_filters to common
* fix scripts/check_published_api_changes
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-18 21:31:48 +03:00
Mikhail Shustov
80b58a589d
Add UiSettings validation & Kibana default route redirection ( #59694 ) ( #60257 )
...
* add schema to ui settings params
* add validation for defaults and overrides
* validate in ui settings client
* ui settings routes validation
* clean up tests
* use schema for defaultRoutes
* move URL redirection to NP
* fix spaces test
* update docs
* update kbn pm
* fix karma test
* fix tests
* address comments
* get rid of getDEfaultRoute
* regen docs
* fix tests
* fix enter-spaces test
* validate on relative url format
* update i18n
* fix enter-spoace test
* move relative url validation to utils
* add CoreApp containing application logic
* extract public uiSettings params in a separate type
* make schema required
* update docs
2020-03-16 18:09:51 +01:00
Rudolf Meijering
66d5b223b5
Expose Elasticsearch from start and deprecate from setup ( #59886 ) ( #60163 )
...
* Expose Elasticsearch from start and deprecate from setup
* Expose client under legacy namespace, add deprecated note
* Update migration guide
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-16 12:33:37 +01:00
Luke Elmers
7cf974c44d
Search Service: cutover agg types to the new platform ( #59605 ) ( #60112 )
2020-03-13 13:02:25 -06:00
Rudolf Meijering
d0ab21145c
Make context.core required argument to context providers ( #59996 ) ( #60061 )
...
* Make context.core required argument to context providers
* Refactor plugins: context.core isn't optional anymore
* Update docs
2020-03-12 22:44:00 +01:00