Chris Cowan
cc0d6c1b1f
[Metrics UI] Converting legend key to optional ( #83495 )
...
* [Metrics UI] Converting legend key to optional
* Adding check and default to legend component
2020-11-18 08:28:16 -07:00
Alejandro Fernández Gómez
00c0535946
[Logs UI] Update <LogStream /> internal state when its props change ( #83302 )
...
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-18 11:44:14 +01:00
Phillip Burch
bcc2afa9e2
Don't show loading screen during auto-reload ( #83376 )
...
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-17 14:40:02 -06: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
Dima Arnautov
169dcef2bf
[ML] Persisted URL state for the "Anomaly detection jobs" page ( #83149 )
...
* [ML] table config in the URL state
* [ML] fix job list on the management page
* [ML] store query filter in the URL
* [ML] fix context for the management page
* [ML] update module_list_card.tsx in Logs UI
* [ML] fix unit tests
* [ML] fix unit tests
* [ML] fix unit tests
* [ML] move utils functions
* [ML] url generator to support both job and group ids
2020-11-12 15:16:23 +01:00
Alejandro Fernández Gómez
0e7bcf6164
[Logs UI] Add pagination to the log stream shared component ( #81193 )
...
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-12 15:11:43 +01:00
Phillip Burch
88312d83a4
[Metrics UI] Add basic interaction and shell for node details overlay ( #82013 )
...
* Add basic interaction and shell for node details overlay
* Fix typecheck
* Remove context menu tests because context menu doesn't exist
* Remove outdated tests
* Remove unused variable
* Show the old overlay by default
* Fix typecheck
* Fix typo
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-11 11:19:00 -06:00
Alexey Antonov
b2d6b66fe5
[bundle optimization] fix imports of react-use lib ( #82847 )
...
* [bundle optimization] fix imports of react-use lib
* add 2 more files
* add rule into eslintrc.js
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-10 17:15:26 +03:00
Alejandro Fernández Gómez
6110ef82a3
[Logs UI] Fix errors during navigation ( #78319 )
...
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-09 12:43:11 +01:00
Mike Côté
1ecd12cdf3
Add description and documentation link in alert flyout ( #81526 )
...
* Add description and documentation URL in alert flyout
* Add unit tests
* Fix type check
* Add horizontal rule
* Design fixes
* Fix uptime alert link
* Fix uptime urls
* Add anchor tag
* Fix jest test failures
* Fix monitoring links
2020-11-05 19:50:50 -05:00
Zacqary Adam Xeper
250fe67828
[Metrics UI] Add full custom metric UI to inventory alerts ( #81929 )
...
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-05 12:23:57 -06:00
Mike Côté
eb43158bdd
Add descriptions to alert types ( #81850 )
...
* Initial attempt at adding descriptions to alert types
* Fix typecheck failures
* Fix i18n check
* Fix failing jest test
* Fix i18n check again
* Apply changes for Uptime
* Update x-pack/plugins/apm/public/components/alerting/register_apm_alerts.ts
Co-authored-by: Casper Hübertz <casper@formgeist.com>
* Update x-pack/plugins/apm/public/components/alerting/register_apm_alerts.ts
Co-authored-by: Casper Hübertz <casper@formgeist.com>
* Fix jest test
* Update geo threshold description
* Update description of some alert types based on feedback from Gail
* Update description of some alert types based on feedback from Gail
* Fix i18n
* Fix i18n
* Fix ESLint
* Update some copy
* Update uptime alert description
* Fix typos
Co-authored-by: Casper Hübertz <casper@formgeist.com>
2020-11-03 14:09:41 -05:00
James Gowdy
a0fded52eb
[ML] Adding space aware jobs ( #77916 )
...
* [ML] Adding space aware jobs
* adding mlClient
* switching to type includes
* adding additional job checks
* fixing conflict
* adding dfa checks
* refactoring jobs in spaces checks
* filtering calendars
* adding initial job object status and repair endpoints
* enabling repair endpoint
* fixing listed jobs in status
* adding datafeed repair
* updating shared services
* adding results job id check
* fixing conflicts
* don't remove SO on delete
* fixing non-ml plugins
* filtering job audit messages
* fixing types
* fixing tests
* adding job ids wildcard support
* removing empty migration test
* fixing tests and disabling spaces test user
* adding saved objects all permission
* fixing calendars
* updating job 404
* updating job wildcard search
* renaming services
* fixing conflicts
* fixing log tests
* disabling apm test
* skipping more apm tests
* optimzing repair
* fixing types
* updating apm test archive to include ML saved objects
* enabling disabled test
* removing comment
* adding space assigning endpoints
* adding saved object default permissions
* removing commented code
* loading all jobs for all spaces for status check
* adding spaces list endpoint
* adding job spaces to management page
* adding trained model fltering
* fixing trained model id check and job wildcard check
* fixing types
* fixing bug when adding new job to calendar
* changes based on review
* updating schema
* changes based on review
* fixing types
* rolling back http service injection
* fixing http service injection
* adding errrors to repair endpoint response
* updating api doc
* improving types
* disabling id check on ad get endpoints
* fixing tests
* fixing group requests
* adding comments
* using filter in saved object search
* fixing fake request issue
* removing console log
* making job saved object hidden
* removing acccidentally included file
* renaming saved object client
* updating apidoc
* unhiding ml saved objects
* moving route guard
* improving error when SOC is null
* fixing types after merge with master
* fixing tests
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-03 15:34:35 +00:00
Thomas Watson
700225061a
Upgrade to hapi version 18 ( #80468 )
2020-11-02 13:18:00 +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
Chris Cowan
eedf0673d3
[Metrics UI] Add endpoint for Metrics API ( #81693 )
...
* [Metrics UI] Add endpoint for Metrics API
* Adding the ability to caculate the interval based on a module
* fixing types
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-29 13:55:50 -07:00
Jason Rhodes
d84ac13a4a
[Logs App] Fix logs permissions for alert management ( #81199 )
...
* Mimics metrics permissions for alert mgmt in logs feature
* Updates logs security functional tests
Alert management permissions were added for read and all logs users in this PR, so both of these users now have "Stack Management" appear in the nav.
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-29 14:04:37 -04:00
Zacqary Adam Xeper
6272f4e0fd
[Metrics UI] Fix a Chrome bug with Inventory View flickering at certain sizes ( #81514 )
...
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-28 13:03:36 -05:00
Felix Stürmer
756c3f16e3
[Logs UI] Transmit and render array field values in log entries ( #81385 )
...
Co-authored-by: Alejandro Fernández Gómez <antarticonorte@gmail.com>
2020-10-28 12:53:02 +01:00
Chris Cowan
43b31e1b2b
[Metrics UI] Fix Metrics Explorer API to return empty results when field is missing from aggregation ( #80919 )
...
* [Metrics UI] Fix Metrics Explorer API to return empty results when field is missing from aggregation
* Update x-pack/plugins/infra/server/routes/metrics_explorer/lib/convert_request_to_metrics_api_options.ts
Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
* Fixing type
Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-26 08:59:46 -07:00
Matthew Kime
50a93222f1
Index Patterns API - Remove legacy es client usage for field caps ( #80116 )
...
* remove legacy es client usage
2020-10-22 22:46:33 -05:00
Chris Cowan
2a82bddfe2
[Metrics UI] Add timerange and sorting to node detail metadata request ( #81033 )
2020-10-21 08:10:31 -07:00
Larry Gregory
bf0f8bbb42
Cleanup feature registration ( #80909 )
2020-10-20 12:53:43 -04:00
Jason Rhodes
8f3ec3a73d
Adjusts observability alerting perms to require "all" ( #79896 )
...
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-15 15:22:24 -04:00
Zacqary Adam Xeper
f3ee7a32ca
[Metrics UI] Inventory view cleanup ( #79881 )
...
* Add background to Show History
* Fix legend centering
* Fix sentence casing in timeline popovers
* Improve small-screen responsiveness of filter dropdowns
* Improve top action responsiveness
* Remove unneeded align center
* Improve waffle map small screen responsiveness
* Fix inventory timeline color legend
* Fix loading spinner wrap
* Fix color legend
* Improve filter responsiveness
* Fix z-index on view switcher
* Move manage views flyout into portal
* Set waffle map to di display: static at s breakpoint
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-14 16:34:35 -05:00
Kerry Gallagher
74561d83fb
[Logs UI] Sync logs timerange with wider Kibana ( #79444 )
...
* Sync logs timestamps with wider Kibana
Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2020-10-08 22:54:33 +01:00
Phillip Burch
bd153c48cb
Show callout for K8s jobs ( #79610 )
2020-10-06 17:27:30 -05:00
István Zoltán Szabó
b7057bc274
Fine-tunes ML related text on Metrics UI ( #79425 )
...
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2020-10-06 16:25:08 +02:00
Kerry Gallagher
2ba729f904
[Logs UI] Add timestamp as a context variable to log threshold alerts ( #78932 )
...
* Add timestamp context variable
2020-10-06 11:12:20 +01:00
Saravanan Selvamohan
663175c8c4
Change plugin id for triggers_actions_ui
to triggersActionsUi
( #78555 )
...
* Rename triggers_actions_ui plugin id to triggersActionsUi
* Rename triggers_actions_ui plugin id to triggersActionsUi
* Removed disable linting line
* ran docs generation script
* Fixed type check issue
* FIxed eslint error
Co-authored-by: Yuliia Naumenko <yuliia.naumenko@elastic.com>
2020-10-05 14:17:06 -07:00
Alejandro Fernández Gómez
2899e83df8
[Logs UI] Remove legacy singletons ( #77743 )
...
Removes the `npStart` legacy singleton used during the migration to the new platform. The singleton was used in API calls to access the `http.fetch` service. To remove the singleton we have injected `fetch` as a dependency in all functions.
2020-10-02 18:57:50 +02:00
Phillip Burch
1841495322
[Metrics UI] Override anomaly detection partition field ( #79214 )
...
* Add ability to override datafeeds and job config for partition field
* Remove debug
* UX cleanup
* Fix types, delete dead code
* Fix types
2020-10-01 18:54:46 -05:00
Jonathan Budzenski
085f8a17ff
Revert "[Metrics UI] Add ability to override datafeeds and job config for partition field ( #78875 )"
...
This reverts commit ee7672aaf0
.
2020-10-01 12:42:37 -05:00
Zacqary Adam Xeper
7836998e76
[Metrics UI] Display No Data context.values as [NO DATA] ( #78038 )
...
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-01 11:31:39 -05:00
Phillip Burch
ee7672aaf0
[Metrics UI] Add ability to override datafeeds and job config for partition field ( #78875 )
...
* Add ability to override datafeeds and job config for partition field
* Remove debug
* UX cleanup
* Fix types, delete dead code
2020-10-01 10:51:55 -05:00
Zacqary Adam Xeper
3599edbea9
[Logs UI] Move alerting components to public/alerting ( #79035 )
...
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-01 09:42:18 -05:00
Alejandro Fernández Haro
97ac553d03
[Usage Collection] [schema] infra
( #78581 )
2020-10-01 13:30:39 +01:00
Quynh Nguyen
2344dcfae8
[ML] Migrate machine learning URLs to BrowserRouter format for APM, Security, and Infra ( #78209 )
...
* [ML] Adds ability to pass multiple jobIds to job management url
* [ML][APM] Update links to jobs management page for MLLink and LegacyJobsCallout
* [ML][APM] Update useTimeSeriesExplorerHref
* [ML][APM] Update tests
* [ML][APM] Move test from useTimeSeriesExplorerHref to MLJobLink.test.tsx
* [ML][Infra] Update ML links in infra to non-hash paths
* [ML] Move MlUrlGenerator registration outside of licensing block for security solution
* [ML][Security] Update ml links in security
* [ML][APM] Update test snapshots
* [ML][APM] Update snapshots
* [ML][Security solution] Update tests
* [ML] Update MLLink to include globalState
* [ML] Update useTimeSeriesExplorerHref
* [ML] Update apm and security_solution to use useMlHref hook
* [ML] Update APM to use useUrlParams hook, update security solution hook
* [ML] Update tests, fix duplicate imports
* [ML] Update imports, remove ml exports to shared cause it's not needed
[ML] Add import
* [ML] Update snapshot
* [ML] Fix warnings for jobs_table.test.tsx
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-30 18:53:17 -05:00
Spencer
06d1628a00
[ts] enable "resolveJsonModule" and disable existing failures ( #78855 )
...
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-30 15:44:43 -07:00
Nathan L Smith
564a7b1a17
Storybook 6 and config changes ( #75357 )
...
Upgrade to Storybook 6 and attempt to use the declarative configuration.
The goals of this PR (as part of Kibana's Storybook roadmap, are:
Upgrade to Storybook 6
Still allow running Storybooks with yarn storybook plugin_name
Use the declarative configuration to (hopefully) make the configuration simpler to use an easier to understand, as well as avoiding deprecation warnings and loss of future compatibility
The ways in which what I have so far differs from how we do things today are:
In the alias configuration it takes a path to a storybook configuration directory instead of the storybook.js file from before
Each plugin (it doesn't have to be a plugin; can be any directory) has a .storybook/main.js (the aliases file in @kbn/storybook specifies these locations) where they can define their Storybook configuration. You can require('@kbn/storybook').defaultConfig to get defaults and override them
@kbn/storybook has a preset that can provide Webpack and Babel configuration and Storybook parameters and decorators
Instead of dynamically creating the list of stories to import, we define them in the globs of the stories property in .storybook/main.js.
Do not build a DLL. We are using @kbn/ui-shared-deps as externals. Startup time is not quite as fast but still acceptable.
Other things done in this PR:
Allow default exports in .stories. to allow for Common Story Format CSF stories
Add guard in Webpack configuration needed for overriding CSS rules
Update filename casing check to allow for files with required names in Storybook
Clean up observability stories
Rename *.examples.tsx and *.story.tsx to *.stories.tsx
2020-09-29 19:34:05 -05:00
Phillip Burch
46a595947e
[Metrics UI] Add anomalies to timeline ( #78602 )
...
* Add ability to fetch anomalies by metric
* Add ability to fetch anomalies to timeline
* Show anomaly annotation on timeline
* Fix type check
* Fix typos
* Add influencers to tooltip, add legend
* Remove unused variable
* Only show anomalies with a score greater than 50
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-29 18:06:38 -05:00
Chris Cowan
1edda05813
[Metrics UI] Inventory shows * node when there are no results ( #78371 )
...
* [Metrics UI] Inventory shows * node when there are no results
* fixing tests to handle the new behavoir
2020-09-29 12:55:09 -07:00
Kerry Gallagher
33d051b73c
[Logs UI] Log threshold ratio alerts ( #76867 )
...
* Add ratio alerting to log threshold alerts
* Fix i18n
* Move grouped query must not filtering from outer to inner clause
* Use new ratio alerting layout
* Use better defaults for ratio alerts
* Remove div wrapper
* Remove type casting, use user-defined type guards
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-29 14:59:18 -04:00
spalger
34b63bb498
fix eslint violation
2020-09-24 10:54:43 -07:00
Brittany Joiner
63ce752dc2
Adding comment about importing lodash library ( #78156 )
...
* added comment about importing lodash library
* fixed space with prefer
* cleaned up extra space and removed comments for lodash/fp
* took out the comment in server files
* Remove newlines
Co-authored-by: Nathan L Smith <smith@nlsmith.com>
2020-09-24 11:38:11 -05:00
Mikhail Shustov
8ba60a4004
bump query-string version to remove manual type definitions ( #78143 )
...
* bump query-string version to remove manual type definitions
* remove manual type declaration
* fix cypress tests
* add )
2020-09-24 17:15:15 +02:00
Felix Stürmer
3f2e9f7705
[Logs UI] Add dataset-specific categorization warnings ( #75351 )
...
This adds dataset-specific categorization warnings for the categorization module. The warnings are displayed in call-outs on the relevant tabs as well as the job setup screens if a prior job with warnings exists. To that end this also changes the categorization job configuration to enable the partitioned categorization mode.
Co-authored-by: Alejandro Fernández Gómez <antarticonorte@gmail.com>
2020-09-24 17:02:23 +02:00
Anton Dosov
89e1f087a2
bump @testing-library ( #78270 )
2020-09-24 15:02:59 +02:00
Chris Cowan
ca27ec8385
[Metrics UI] Fix EC2 Query to only include aws.ec2 nodes ( #78236 )
...
* [Metrics UI] Fix EC2 Query to only include aws.ec2 nodes
* Making the filter more generic so we can apply it easily to any inventory model
2020-09-23 16:32:24 -07:00
Chris Cowan
8ea5c575eb
[Metrics UI] Reduce the pagination size for snapshot request ( #78051 )
...
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-23 16:31:34 -07:00