Commit graph

233 commits

Author SHA1 Message Date
Alejandro Fernández Haro 5342877a32
[HTTP] Apply the same behaviour to all 500 errors (except from custom responses) (#85541)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-18 17:31:18 +00:00
Greg Thompson 8126488021
Upgrade EUI to v31.7.0 (#91210)
* eui to 31.6.0

* flyout, collapsible snapshot updates

* initial overlaymask removal

* undo jest

* overlaymask src snapshot updates

* more overlaymask removals

* overlaymask removal xpack test updates

* saved objects modal form

* eui to 31.7.0

* code, codeblock types

* snapshot update

* tooltip

* remove ownFocus from ConfirmModal

* remove fragments
2021-02-16 14:06:25 -06:00
Joe Portner 2ef468ef82
Fixes session idle timeout (#91070)
* Fix calls to `/api/saved_objects_tagging/tags`

Seen on all pages.

* Fix calls to `/api/ui_counters/_report`

Seen on all pages.

* Fix calls to `/api/index_management/indices/reload`

Seen on page: /app/management/data/index_management

* Fix calls to `/api/watcher/watches`

Seen on page: /app/management/insightsAndAlerting/watcher/watches

* Fix calls to `/api/rollup/jobs`

Seen on page: /app/management/data/rollup_jobs/job_list

* Fix calls to `/api/cross_cluster_replication/follower_indices`

Seen on page: /app/management/data/cross_cluster_replication/follower_indices

* Fix calls to `/api/cross_cluster_replication/auto_follow_patterns`

Seen on page: /app/management/data/cross_cluster_replication/auto_follow_patterns

* Fix calls to `/api/transform/transforms` and `/api/transform/transforms/_stats`

Seen on page: /app/management/data/transform

* Fix calls to `/api/console/proxy`

Seen on page: /app/dev_tools#/console

* Fix calls to `/api/monitoring/v1/clusters` and `/api/monitoring/v1/elasticsearch_settings/check/cluster`

Seen on page: /app/monitoring
2021-02-16 07:19:41 -05:00
Brandon Kobel 4584a8b570
Elastic License 2.0 (#90099)
* Updating everything except the license headers themselves

* Applying ESLint rules

* Manually replacing the stragglers
2021-02-03 18:12:39 -08:00
Christiane (Tina) Heiligers 9bee677f68
Migrates index_management & runtime_fields to TS project refs (#89809) 2021-02-03 07:21:38 -07:00
Mikhail Shustov 4380c49d38
remove type dependency between index_management and fleet (#89699)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-01 19:32:55 +01:00
Shahzad 88f76b5995
Reduce index management plugin page load bundle size (#88656)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-26 12:26:11 +01:00
Mikhail Shustov b3a9754394
[Core] Explicit typings for request handler context (#88718)
* move context to server part. couple with RequestHandlerContext

Context implementation will be simplified in follow-up.

* adopt core code

* adopt bfetch code

* adopt data code

* adopt search examples

* adopt vis_type_timelion

* adopt vis_type_timeseries

* adopt plugin functional tests

* adopt actions

* adopt alerting plugin

* adopt APM plugin

* adopt beats_management

* adopt case plugin

* adopt cross_cluster_replication

* adopt data_enhanced

* adopt event_log

* adopt global_search

* adopt index_management

* adopt infra

* adopt licensing

* adopt lists

* adopt logstash

* adopt reporting

* adopt observability

* adopt monitoring

* adopt rollup

* adopt so tagging

* adopt security

* adopt security_solutions

* adopt watcher

* adopt uptime

* adopt spaces

* adopt snapshot_restore

* adopt features changes

* mute error when null used to extend context

* update docs

* small cleanup

* add type safety for return type

* refactor registerRouteHandlerContext type

* update docs

* update license header

* update docs

* fix type error. fetch body does not accept array of strings

* fix telemetry test

* remove unnecessary ts-ignore

* address comments

* update docs
2021-01-21 15:20:22 +01:00
Jonathan Budzenski 51ba94d3e5
[dev] Replace sass-lint with stylelint (#86177)
Co-authored-by: Tyler Smalley <tylersmalley@me.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dave Snider <dave.snider@gmail.com>
2021-01-15 11:52:29 -06:00
Matthew Kime 109bed0768
revert runtime fields editor plugin (#88132) 2021-01-13 08:34:30 -06:00
Sébastien Loix 6d6a805734
[Index templates] Keep configuration of data stream when editing (#87666) 2021-01-07 21:42:12 +00:00
Matthew Kime 021bb4e3e9
Create runtime field plugin, runtime field editor plugin (#87387)
* create runtime field plugin, runtime field editor plugin
2021-01-07 13:10:30 -06:00
Yulia Čech 932bdd3d29
[Index Management] Managed data streams renamed to Fleet-managed and table layout improvement (#86285)
* Updated fleet managed labels and table layout

* Added default width to health column
2020-12-18 11:48:18 +01:00
CJ Cenizal 7bac741a1e
Fix bug in which Index Management data streams were being sorted incorrectly by storage size. (#86204)
They were previously being sorted alphabetically using the humanized size value. Now they're sorted numerically by the raw bytes value.
2020-12-17 09:52:16 -08:00
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