Commit graph

219 commits

Author SHA1 Message Date
Yulia Čech
a8d088febd
Added hidden filter to data streams tab (#85028)
* Added hidden filter to data streams tab

* Fix i18n import

* Fixed tests

* hidden ds pr feedback

* Added includeHidden query to data streams list

* Changed how badge group renders data streams badges

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-14 16:54:06 +01:00
Alison Goryachev
079a7e82ba
Integrate painless autocomplete in runtime fields editor (#84943) 2020-12-07 12:55:53 -05:00
Ahmad Bamieh
aa9a353205
[Telemetry] Introduce UI Counters (#84224)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-04 17:47:04 +02:00
Sébastien Loix
e83bbfd289
[Runtime fields] Add support in index template (#84184)
Co-authored-by: Adam Locke <adam.locke@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-03 15:59:20 +01:00
Tiago Costa
43dd4876f2
skip flaky suite (#84906) 2020-12-03 14:50:00 +00:00
Tyler Smalley
b593781009
Jest multi-project configuration (#77894)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-12-02 11:42:23 -08:00
Yulia Čech
51f75a5655
Added data streams privileges to better control delete actions in UI (#83573)
* Added data streams privileges to better control delete actions in UI

* Fix type check issues

* Change data streams privileges request

* Fixed type check issue

* Fixed api integration test

* Cleaned up not needed code

* Renamed some data streams and added a default value for stats find

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-26 17:04:24 +01:00
Mikhail Shustov
95861a0fb0
[DX] Prettier v2.2 (#83899)
* update prettier with ts version support

* mute type-error

* run prettier on codebase

* fix examples

* fix errors after master merged
2020-11-23 13:17:05 +01:00
Nicolas Chaulet
1b6cfe819d
[Fleet] Rename ingestManager plugin ID fleet (#83200) 2020-11-19 08:43:14 -05:00
Yulia Čech
47d6612bae
Add Managed label to data streams and a view switch for the table (#83049)
* Add Managed label to data streams and a view switch for the table

* Fix i18n errors

* Updated some wording and made filter function easier (managed data streams)

* Update x-pack/plugins/index_management/__jest__/client_integration/home/data_streams_tab.test.ts

Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>

* Renamed view to include (managed data streams)

* Update x-pack/plugins/index_management/public/application/sections/home/data_stream_list/data_stream_list.tsx

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

* Update x-pack/plugins/index_management/public/application/sections/home/data_stream_list/data_stream_list.tsx

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

* Update x-pack/plugins/index_management/public/application/sections/home/data_stream_list/data_stream_table/data_stream_table.tsx

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
2020-11-18 23:16:18 +01:00
Mikhail Shustov
4917df30b9
Update typescript eslint to v4.8 (#83520)
* update deps

* update rules

use type-aware @typescript-eslint/no-shadow instead of no-shadow. do not use no-undef, rely on TypeScript instead

* fix or mute all lint errors

* react-hooks eslint plugin fails on ? syntax

* fix wrong typings in viz

* remove React as a global type

* fix eslint errors

* update version to 4.8.1

* fix a new error
2020-11-18 18:23:08 +01:00
Sébastien Loix
e3c2dccf00
[Runtime fields] Editor phase 1 (#81472)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-11-18 09:10:00 +01:00
Alison Goryachev
fb6d1367a7
[Index Templates] Add test for legacy templates (#83346) 2020-11-16 13:06:33 -05:00
Tyler Smalley
aba2068291
Consolidates Jest configuration files and scripts (#82671)
Jest tests are currently organized into main configuration files (src/dev/jest/config.js and x-pack/dev-tools/jest/create_jest_config.js). Both of these are similar, but very slightly due to  previously being in separate repositories. This change consolidates the scripts referenced in those configs and moves them to the `@kbn/test` project.

OSS contained an alias for `test_utils`. Those aliases have been removed in favor of importing these utilities from `@kbn/test/jest`

Blocker to #72569

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-11-12 16:19:56 -08:00
Yulia Čech
3a849ff104
[Index Management] Add an index template link to data stream details (#82592)
* Add index template link to data stream details

* Fixed ILM policy link and added a check for index template name after navigation

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-12 15:05:08 +01:00
Sébastien Loix
244ce85fb4
[Index management] Fix test in index template wizard (#83150) 2020-11-11 15:51:58 +01:00
Yulia Čech
1de3a02a46
Fix ilm navigation (#81664)
* Fix edit policy page navigation

* Fix edit policy page navigation

* Add links to PR for explanation

* Added more tests and linked to a github issue about navigation issues

* Fix decoding function for undefined values

* Fix type check issues

* Renamed dollar sign to percent sign, added a method for (double) encoded paths and better description in test names

* Deleted Index Management from required bundles in ILM

* Fixed merge conflicts

* Revert "Deleted Index Management from required bundles in ILM"

This reverts commit 5a735dfe

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-10 11:09:37 +01:00
Nicolas Chaulet
441a0d4ec9
[Fleet] Move ingestManager plugin to fleet (#82886) 2020-11-09 11:07:04 -05:00
Yulia Čech
71ec5bd36b
Add ILM url generator and use it in Index Management (#82165)
* Add ILM url generator and use in IM for cross linking to policy edit page

* Fix policy name in the link

* Add review suggestions

* Fix import

* Fix eslint error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-06 15:42:51 +01:00
Greg Thompson
6fdc7eb1fa
Upgrade EUI to v30.1.1 (#81499)
* eui to v30.0.0

* removed unused RecentLinks component

* update compressed -> display prop

* euiformrow compressed -> display

* euipopover remove withtitle

* euibuttongroup prop updates

* remove euibuttontoggle

* src snapshot updates

* tutorial euibuttongroup update

* x-pack snapshot updates

* euibuttongroup test updates

* TODO

* misc. js file updates

* remove euinavdrawer scss references

* translation removals

* more x-pack snapshot updates

* update data-test-subj lookup

* icons logoAMP -> logoObservability

* cypress selector updates

* update euibuttontoggle onchange, test interaction

* Fix auto-update toggle in Visualize

* some more change -> click test updates

* idtoselectedmap change

* Fix feature table button group

* Remove empty SASS file

* Fix feature table button group II

* Using `compressed` to also dictate dual range row

* Fix a few security labels

* An ML fix

* Apply suggestions from code review

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>

* remove unused translation

* update view_type_toggle snapshot

* more snapshot updates

* eui to 30.1.0

* undo temp ts-ignore

* more x-pack snapshot updates

* eui to 30.1.1

* update feature privilege text

* Update x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/feature_table/sub_feature_form.tsx

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>

* reuse i18n token

* Adapt log entry action button to new `minWidth` prop

* clean up label

* Combine auto apply strings into one

* ternary fix

* cases status useCallback

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>
2020-10-30 16:18:27 -06:00
Yulia Čech
2a94139d30
Add uri decode to es_ui_shared and fix navigation issues with special characters (#80835)
* Add uri decode to es_ui_shared and fix data stream issue with % name

* Add a test for data streams tab opened for name with a dollar sign

* Import uri decode function from es_ui_shared and fix navigation issues for filters

* Add tests for data streams with special characters in name

* Revert react router navigate changes (is done in a separate PR)

* Reverting changes to dataManagement es client and get data stream api route

* Fix data stream name filter when activated from a url parameter

* Clean up for better consistency and fixes after
https://github.com/elastic/kibana/pull/81664

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-28 14:04:32 +01:00
Mikhail Shustov
2782204cc1
Get rid of global types (#81739)
* move global typings to packages/kbn-utility-types

* update all imports

* add tests

* mute error

* update docs

* ok

* rename kbn-utility-types/test --> kbn-utility-types/jest
2020-10-28 11:03:04 +01:00
Vishal
6472caae1d
Update force merge warning about read-only index on management UI (#80937)
Community PR
2020-10-22 12:30:51 +02:00
Sébastien Loix
cd19bd3621
[Mappings editor] Add scaled_float and date_range comp integration tests (#81287) 2020-10-21 14:37:23 +02:00
Sébastien Loix
702e0c7d73
[Form lib] Export internal state instead of raw state (#80842) 2020-10-20 13:51:11 +02:00
CJ Cenizal
82478c3559
Revert "Revert "Add support for runtime field types to mappings editor. (#77420)" (#79611)" (#79940)
This reverts commit e01d538e32.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-12 09:12:34 -07:00
CJ Cenizal
e01d538e32
Revert "Add support for runtime field types to mappings editor. (#77420)" (#79611)
This reverts commit 0dc89cb716.
2020-10-06 06:48:47 -07:00
Sébastien Loix
0d378e488c
Form lib enhancements (#78588)
Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-05 18:09:50 +02:00
Sébastien Loix
a8b1b9e281
[Index management] Update TemplateDeserialized interface (#78913)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-05 15:19:36 +02:00
Sébastien Loix
519d4905bc
[Mappings editor] Fix app crash when selecting "other" field type (#79434) 2020-10-05 15:15:38 +02:00
Alison Goryachev
4fe7625f58
[Mappings editor] Add support for version field type (#78206) 2020-10-01 08:44:29 -04:00
Alison Goryachev
cba458e456
[Mappings editor] Fix bug when switching between mapping tabs (#78707) 2020-10-01 08:43:12 -04:00
CJ Cenizal
0dc89cb716
Add support for runtime field types to mappings editor. (#77420)
* Add support for runtime field types to mappings editor.
* Add tests for getTypeLabelFromField util.
* Refine callout appearance in term vector and alias parameters.
2020-09-25 08:25:49 -07:00
CJ Cenizal
07b7b06c11
Remove requirement for manage_index_templates privilege for Index Management (#77377) 2020-09-22 14:47:11 -07:00
Alison Goryachev
05df9efc91
[Mappings editor] Add support for point field type (#77543) 2020-09-21 20:45:30 -04:00
Alison Goryachev
11f100b1ac
[Mappings editor] Add support for histogram field type (#76671) 2020-09-17 12:41:21 -04:00
Alison Goryachev
9ac2fdfe26
[Mappings editor] Add support for constant_keyword field type (#76564) 2020-09-17 09:39:00 -04:00
Sébastien Loix
aae704ab41
[Index management] Unskip jest tests (#76672)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-15 12:39:35 +02:00
Alison Goryachev
cbcd1ebd32
[Mappings editor] Add support for wildcard field type (#76574) 2020-09-14 10:25:59 -04:00
Larry Gregory
2e34eb239f
Hide management sections based on cluster/index privileges (#67791)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-14 09:30:47 -04:00
Alison Goryachev
fde34b129a
[Mappings editor] Add support for positive_score_impact to rank_feature (#76824) 2020-09-14 08:43:51 -04:00
CJ Cenizal
e2cbd89e66
Rename useRequest's sendRequest return function to resendRequest and remove return value (#76795) 2020-09-10 08:23:13 -07:00
Sébastien Loix
1ea58d96cb
[Form lib] Add validations prop to UseArray and expose "moveItem" handler (#76949) 2020-09-09 14:40:29 +02:00
Yulia Čech
a7d742abc3
[ILM] Clean up remaining js files and any typings (#76803)
* [ILM] Clean up remaining js files and any typings

* [ILM] Fix jest test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-07 16:16:20 +02:00
CJ Cenizal
2eb8dac99c
URI encode the index names we fetch in the fetchIndices lib function. (#76584)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-04 07:01:22 -07:00
Yulia Čech
70b4b89270
[ILM] TS conversion of Index Management plugin extension (#76517)
* [ILM] TS conversion of Index Management plugin extension

* [ILM] Implement review suggestions

* [ILM] Fix jest test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-04 13:47:16 +02:00
Sébastien Loix
8b085b9eac
[es_ui_shared] Fix eslint exhaustive deps rule (#76392)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-03 18:45:32 +02:00
Sébastien Loix
ef7246f157
[Form lib] Add useFormData() hook to listen to fields value changes (#76107) 2020-09-01 14:48:11 +02:00
Pierre Gayvallet
e70ef657d4
Delete src/legacy/ui/public folder (#76085)
* delete src/legacy/ui/public folder

* remove jest.mock('ui/XXX'); from tests

* adapt stubbedLogstashIndexPatternService

* remove delete keys from translation files

* fix types import with Capabilities

* remove legacy test utils

* remove dead file referencing ui/newPlatform

* move saved-object-finder styles to timelion plugin
2020-09-01 09:23:22 +02:00
CJ Cenizal
e13d8dcfb7
Fix es_ui_shared eslint violations for useRequest hook (#72947)
* Reconcile request helpers with eslint rules for React hooks.
  - Add clearer cleanup logic for unmounted components.
  - Align logic and comments in np_ready_request.ts and original request.ts.
* Reorganize modules and convert tests to TS.
  - Split request.ts into send_request.ts and use_request.ts.
  - Convert test files into TS.
  - Relax SendRequestResponse type definition to type error as any instead of expecting an Error, since we weren't actually fulfilling this expectation.
* Convert everything to hooks and add test coverage for request behavior.
* Fix Watcher memoization bugs.
2020-08-31 12:55:39 -07:00