Commit graph

2912 commits

Author SHA1 Message Date
Kerry Gallagher
ff80382daa
[LogsUI] [InfraUI] Turn source configuration into a tab and standardize the main navigation (#42243) (#42887)
* Setup Logs routing for multiple pages

* Adds nested routing for logs
* Adds an index page to handle shared concerns
* Adds the Stream page at /logs/stream

* Introduce shared settings page

* Introduces shared/settings page
* Adds shared/settings page as a tab in the Logs routes
* Removes previous source configuration flyout traces from Logs pages

* Begin styling adjustments to settings page

* Implements use of EUI Panels
* Centers page content

* Add discard button

* Add discard button to allow resetting the form

* Fix button alignment

* Align Apply and Discard buttons to the right
* Align Loading button to the right

* Add EuiDescribedFormGroup for all form fields

* Add EuiDescribedFormGroup for name panel
* Add EuiDescribedFormGroup for indices panel
* Add EuiDescribedFormGroup for fields panel

* Remove all SourceConfigurationFlyout traces from the Infrastructure UI

* Add a ViewSourceConfigurationButton

* Adds a ViewSourceConfigurationButton component that will route to the /settings page
* Replace all instances of "View Configuration" buttons that were opening the flyout with the new button

* Enable settings tab amongst Infrastructure routes

* Change navigation to mimic SIEM

* Introduces an AppNavigation component
* Amends styling / handling of RoutedTabs to match SIEM implementation
* Adds new AppNavigation component to Infrastructure and Logs indexe pages

* Functional test amendments (WIP)

* Temporarily disable certain functional tests

* Remove unused imports

* Disable imports so build can pass

* Amend I18N errors

* I18N

* Automatically fix issues with i18n (node scripts/i18n_check --fix result)

* Functional tests

* Amend tests so they pass locally. Pending CI test.

* Amend RoutedTabs (without link focus style)

* Tweak RoutedTabs and AppNavigation for better performance / visuals

* Ensure outline isn't cut off
* Ensure only the react-router instance is hit for performance
* Ensure links still have href attributes for things like "Open in a new tab" even if history.push ultimately navigates

* Fix i18n usages

* node scripts/i18n_check --fix

* Amend functional test config (post Master merge fix)

* Remove unused function and fix unused import

* Add a Prompt to notify users when form changes will be lost

* Add aria-label to Button
2019-08-08 10:41:53 +01:00
CJ Cenizal
6225e29b98
Add API endpoint to Rollup Job JSON summary. (#42789) (#42902)
* Switch to using EuiCodeBlock, add description text, and make request copyable.
* Align ILM request flyout.
2019-08-07 21:21:04 -07:00
CJ Cenizal
d8ab8d2c53
Show endpoint in JSON preview of index lifecycle policy editor. (#42791) (#42896)
* Reduce tabs from 4 to 2.
* Increase flyout width to 480px and remove overlay.
* Show line numbers.
* Use EuiCopy component.
* Add description text.
* Update title and endpoint when there is no name specified.
2019-08-07 17:47:48 -07:00
Liza Katz
f3c760140b
Switched graph to use new top nav (#41966) (#42857)
* Switched graph to use new top nav

* Make sure fields and fieldConfig are properly shown

* Removed unused translations

* Hide config section

* removed unneeded var reset

* Fixed css rendering

* Removed unneeded evalAsync

* Removed unused var

* css fixes

* Simplified toggling behavior

* ng-if
2019-08-07 22:52:23 +03:00
Daniil Suleiman
4535f2d686
[Vis: Default editor] EUIficate coordinate map (tile map) options tab (#42517) (#42671)
* EUIficate tile_map_vis_options

* Add basic options

* Get rid of vislib_basic_options

* Move wms_options directive to region_map

* Get rid if TileMapVisParams directive

* Update region_map namespaces

* Support of injecting of any dependency
2019-08-07 16:40:45 +03:00
Alexey Antonov
bc1ce4ac71
[Metric Vis] (Step 2) Shim new platform - renaming metric_vis -> vis_type_metric (#42590) (#42666) 2019-08-06 12:39:31 +03:00
Alexey Antonov
2e325b9921
[Tag Cloud] (Step 2) Shim new platform - renaming tagcloud-> vis_type_tagcloud (#42589) (#42667) 2019-08-06 12:39:17 +03:00
Walter Rafelsberger
7a1348ff09
[7.x] [ML] Use context and custom hooks to manage legacy dependencies. (#42244) (#42572)
* [ML] Use context and custom hooks to manage legacy dependencies. (#42244)
* [ML] [Job wizards] switching to new kibana context provider (#42512)
2019-08-06 08:27:30 +02:00
Matt Bargar
f2d96dfa2e
Allow sorting on multiple columns in Discover (#41918) (#42551)
This commit enables sorting on multiple columns in Discover and in saved search panels on dashboards. The UI is simple and should be familiar based on the way multi-sort works in other common applications like file explorers. Each sortable column has a sort icon indicating which way it is sorted (or unsorted, in the case of two arrows pointing both up and down). Sort priority is determined by which column was clicked most recently, with the most recent being the lowest priority.
2019-08-05 19:30:44 -04:00
Vadim Dalecky
9cefd7e9ce
[7.x] Inspector 👉 New Platform (#42164) (#42530)
* refactor: 💡 remove SASS and clean up InspectorView component

* refactor: 💡 clean up inspector, convert .js -> .ts

* feat: 🎸 add Inspector NP plugin boilerplate

* feat: 🎸 move view registry to NP, move types, add registerView

* docs: ✏️ move inspector README to NP plugin

* refactor: 💡 move ui/inspector/ui to NP

* refactor: 💡 move Inspector adapters to NP

* refactor: 💡 move Inspector.isAvailable to New Platform

* refactor: 💡 move Inspector.open to New Platform plugin

* test: 💍 move Inspector tests to NP plugin

* chore: 🤖 fix imports

* feat: 🎸 update translations

* test: 💍 fix failing translation snapshot

* test: 💍 fix yarn test:browser tests

* Update src/legacy/ui/public/inspector/build_tabular_inspector_data.ts

Co-Authored-By: Stacey Gammon <gammon@elastic.co>

* [ML] [Job wizards] switching to new kibana context provider

* fix: 🐛 specify translation path directly to the plugin

* docs: ✏️ add comment about Webpack config fix

* Update src/legacy/ui/public/inspector/build_tabular_inspector_data.ts

Co-Authored-By: Stacey Gammon <gammon@elastic.co>

* Update src/legacy/ui/public/inspector/build_tabular_inspector_data.ts

Co-Authored-By: Stacey Gammon <gammon@elastic.co>

* feat: 🎸 improve types as per review

* fix: 🐛 remove <InspectorView> comp and fix view layouts

* test: 💍 improve mocks
2019-08-02 18:36:18 +02:00
Zacqary Adam Xeper
6b6e979063
[Logs UI][a11y] Announce name of column on remove column button (#41695) (#42529)
* [Logs UI][a11y] Announce name of column on remove column button

* Use title instead of aria-label

* ariaColumnName => columnDescription

* Move template string out of i18n

* Revert label id change

* Inject i18n to field title

* Change title to Remove {columnDescription} column

* Replace injectI18N with i18n.translate

* Fix i18n
2019-08-02 11:29:45 -05:00
Liza Katz
27a04dcb46
Move SearchBar back to data plugin. (#42449) (#42492)
Restored an empty service for Saved Queries to use
2019-08-02 09:13:06 +03:00
Michael Marcialis
51f71683f1
[SIEM] table tweaks (#42195) (#42413)
* pagination media query, rm extraneous elms, clean

* make tooltip icons consistent

* remove unnecessary icon headers

* timeline table cleanup

* update tests

* correct translation casing and cleanup

* update translations

* update tests and snapshots

* update casing

* fix console warning

* restore missing translations

* update snapshot

* update casing
2019-07-31 23:07:57 -04:00
Mengwei Ding
2274421436
[Code] disk watermark check for clone and update (#42174) (#42383)
* [Code] disk watermark check

* apply disk check

* switch to one config

* Add i18n

* Add unit tests

* update i18n message id
2019-07-31 14:53:35 -07:00
Mike Côté
38226a120e
Add createApiKey support to security plugin (#42146) (#42381)
* Add createApiKey support to security plugin

* Expiration is optional

* Start moving code to new platform

* Add unit tests

* Fix jest test

* Apply PR feedback

* Apply PR feedback

* Apply PR feedback pt2
2019-07-31 16:49:19 -04:00
Fuyao Zhao
d423420b90 [Code] Add localization for Code (#42368) 2019-07-31 11:53:40 -07:00
Jen Huang
b8e91e3cb7
[SR] Allow custom index pattern to be used instead of selectable list when choosing indices to restore (#41534) (#42319)
* Allow user to use custom input instead of selectable list

* Small copy change, fix indices toggle link

* Remove unused translation

* Adjust copy and change index pattern input to combo box

* Address PR feedback
2019-07-31 09:27:42 -07:00
Daniil Suleiman
76493a7a09
[Vis: Default editor] EUIficate tag cloud options tab (#42070) (#42340)
* EUIficate pie chart options tab

* Fix tests

* Size titles down to xs

* Use FormattedMessage

* EUIficate tag_cloud_vis options tab

* Get rid of ticks in the range

* Update snapshots

* Fix comments

* Change label

* Create a components folder
2019-07-31 17:42:58 +03:00
Tim Roes
93b6b727d4
Add missing i18n call (#42234) (#42266)
* Add missing i18n call

* Fix filter applied message

* Add another missing translation
2019-07-30 19:56:25 +02:00
Sébastien Loix
738e1fbcbc [ES-UI] Authorization lib to control access to feature & app sections (#40150) (#42168) 2019-07-29 14:29:58 -07:00
Walter Rafelsberger
82ac64dbe3
[ML] Migrates single metric viewer to React. (#41739) (#42166)
Migrates the overall page of Single Metric Viewer to React.
2019-07-29 20:09:16 +02:00
Gergely Kalapos
824078846c
[APM] Update .NET Agent instructions (#42124) (#42149)
* Update src/legacy/core_plugins/kibana/server/tutorials/apm/instructions/apm_agent_instructions.js

.NET Agent:
- removed beta warning
- updated the text with the updated pacakge and `UseAllElasticApm()` method
- fixed 1 minor typo

* Update translations files
2019-07-29 19:37:41 +02:00
Maryia Lapata
1fb0b65c7f
[Vis Editor] EUIfication of agg and agg-group directives (#40866) (#42126)
* Create default_editor_agg.tsx

* Create default_editor_agg_group

* Apply drag and drop

* Remove unused dragula dependency

* Remove old mocha tests

* Add ts for state

* Update functional tests

* Update touched condition

* Apply styles for accordion button content

* Apply truncate for agg description

* Remove unused styles

* Separate common props

* Move aggGroupNamesMap to agg_group.js

* Update _sidebar.scss

* Pass schemas prop

* Prevent scroll bar and add space

* Remove unused min from stats

* Add OnAggParamsChange type

* Show error as an icon

* Update background color

* Update title size

* Remove Schema.deprecate since it's not used
2019-07-29 16:46:55 +03:00
Tim Roes
92d1e5f5df
GoodBye Notifier (#41663) (#42122)
* Begin notifier removal

* Remove remaining notifier traces

* Remove dead translations

* Remove Angular from config listener

* Import angular-sanitize explicitly in map
2019-07-29 14:32:36 +02:00
Daniil Suleiman
73ab20ed80
[Vis: Default editor] EUIficate pie chart options tab (#41901) (#42125)
* EUIficate pie chart options tab

* Fix tests

* Size titles down to xs

* Use FormattedMessage
2019-07-29 14:56:39 +03:00
Alexey Antonov
bb7aaf2e77
[Table Visualization] (Step 2) Shim new platform - renaming table_vis -> vis_type_table (#41872) (#42090)
* [Table Visualization] (Step 2) Shim new platform - renaming table_vis -> vis_type_table

* fix PR comment
2019-07-27 00:12:23 +03:00
Bart Van Remortele
00db7eab47 [APM] Add support for very high durations (minutes and hours) (#41640) (#42068) 2019-07-26 17:53:46 +02:00
Aleh Zasypkin
bbf8da002f
[7.x] Add support for Kerberos output/response tokens. (#42013) 2019-07-25 23:08:55 +02:00
Matthias Wilhelm
509531fc64
De-angularize discover kbnTableHeader (#41259) (#41979)
* Add TableHeader + TableHeaderColumn react components

* Migration of kbnTableHeader to use react component

* Disable mocha tests

* Add jest tests
2019-07-25 19:50:13 +02:00
Mikhail Shustov
2dcc69c4fe
AuthResultData configures response headers (#41775) (#41948)
* extend AuthResultData with response headers

* add tests

* update docs

* rename headers --> requestHeaders to clarify intention

* update docs

* address comments
2019-07-25 08:50:49 +02:00
Michael Marcialis
c079154abd
[SIEM] Table Widget Loading Tweaks (#41596) (#41935)
* add new loader comp

* update load more and paginated tables with new load comp

* remove loadingTitle prop

* add loader to anomalies tables

* fix condition

* add test

* correct inspect button position

* add background prop

* add loader to host and ip details overviews

* update tests and snapshots

* rm unused import

* wip -> when table is loading the first time

* apply xavier’s fix for initial loading state

* rename isEmptyTable to loadingInitial

* possible solution for initial load on anomaly tables

* resolve conflicts

* updating tests

* correct conditionals & enhance loader for future

* make header supplements conditional

* rm unused imports

* change “Rows” to “Rows per page”

* fix row select font size, margin & shift load more

* sentence case for load more button

* correct unused or misnamed translations

* fix tests

* move state hook to useEffect

* move loader to index

* update snapshots

* better translations ids, per xavier

* proper camel case for data-test-subj

* correct console errors per frank

* account for potential -1 count during loading
2019-07-24 21:18:26 -04:00
Liza Katz
44a574bcff
Clean up top nav \ search bar \ query bar directives (#41636) (#41761)
* Move timepicker (to be deprecated) into old kbn_top_nav

* Deleted search-bar and query-bar directives!

* moved search bar to kibana_react (it's a generic react component, not a service)

* translations

* Moved superDatePicker directive to kbn_top_nav (to be deprecated)
Deleted unused react_component directives call-out and tool-bar-search-box

* TS test fix

* Delete relative options
2019-07-23 16:59:23 +03:00
Mikhail Shustov
8058093241
core doesn't use Record<string, unknown> for public API (#41448) (#41742)
* core contracts don't use unknown to support type assignment

limitations of https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#-k-string-unknown--is-no-longer-a-wildcard-assignment-target

* regenereate docs

* remove type over-write
2019-07-23 11:25:26 +02:00
Alexey Antonov
e8385ac240
[Vega] (Step 2) Shim new platform - renaming vega -> vis_type_vega (#41565) (#41650) 2019-07-22 12:15:06 +03:00
Aleh Zasypkin
e19a03bb7b
[7.x] Migrate authentication subsystem to the new platform. (#41593) 2019-07-22 10:47:54 +02:00
Liza Katz
c3217640d2
Reactify Top Nav Menu (kbn_top_nav) (#40262) (#41637)
* kbn top nav in discover

* New top nav in dashboard and vis editor

* Stop using template feature of kbn top nav

* Changed console menu to new directive

* Use search bar in top nav in discover and maps
Support search bar with no filter bar (TS)

* Moved storage instantiation to angular directive

* Make index patterns optional (for timepicker only setup)

* Moved discover result count away from top nav

* Removed unused name attribute in top nav. Use app-name instead.
2019-07-21 16:26:50 +03:00
Alison Goryachev
4dcc99fe34
[IM] Index Templates UI list view (#39922) (#41451) 2019-07-18 13:57:40 -04:00
Nathan Reese
d96e33bc72
[Maps] remove duplicated logic between heatmap layer and vector layer (#41171) (#41369)
* [Maps] remove duplicated logic between heatmap layer and vector layer

* removed unused getGeoJsonPoints function from geo_grid_source

* cleanup i18n translations

* review feedback

* fix jest test
2019-07-17 10:15:29 -06:00
Walter Rafelsberger
0344e92b16
[ML] Data Frames: Rename job to transform. (#41219) (#41324)
This PR renames directories and variables of occurrences of job in the context of data frames to transform across the code.
2019-07-17 11:51:18 +02:00
Andrew Cholakian
852819eccb
[Uptime] Display pings over time instead of status over time (#40759) (#40888)
This PR changes the reverts the data shown in the status over time chart to what we showed in older versions. This makes it display simple ping counts instead of the weird metric it currently displays. The current count doesn't make any sense with coalesced locations like we have in 7.3. Given that the current chart is so confusing as to be harmful I'm marking this a bug.
2019-07-17 03:00:39 -05:00
Ahmad Bamieh
9ffb76487b
[i18n] french and german SIEM app translations (#41182) 2019-07-16 12:30:27 +03:00
Michael Marcialis
d453b7858f
[SIEM] Update Add Data References of "Security analytics" to "SIEM" (#40899) (#41043)
* change add data security references to siem

* update links to siem add data page

* update snapshot

* fix translations
2019-07-12 16:45:10 -04:00
Stacey Gammon
458de86dd8
Use embeddable v2 (#39126) (#41042)
* Final Embeddable API V2 PR

* fix: import discover embeddable scss file

* address code review comments

* Add a functional test that would have caught the bug... will look to add a unit version once I discover the error.

* Fix bug cause by async loading calls and changes to parent input while child is being created. added jest test

* remove outdated readme in dashboard folder

* need to always refresh dashboard container, not just when "dirty"

* add a wait, this issue started appearing right when I added this to the test

* Remove test that kills kibana ci so it's not a blocker. jest test was added for this scenario

* fix issues when panel is added then removed before it completes loading

* fix logic error with maps embeddable and isLayerTOCOpen
2019-07-12 16:28:29 -04:00
Catherine Liu
5287d1ef5b
[7.x] [Canvas][Docs] Merge Canvas function references (#38300) (#40917)
* [Canvas][Docs] Merge Canvas function references (#38300)

* Synced up docs with function defs

* Updated docs with changes from PR #37305

* Merged canvas function ref into a single doc

* Fixed arg order

* Fixed typo

* Added alphabet links

* Added alphabet headers

* Removed B header

* Added missing args from

* Added edits from PR #37614

* Updated containerStyle

* Removed metafields. ESSQL doesn't support retrieving metafields

* Edits to function copy

* More edits

* More edits

* Final round of edits

* Fixed i18n errors

* Addressing feedback

* Fixed jest test

* Fixed missing import

* Fixed i18n error

* Restored metaFields arg in esdocs

* Extracted i18n string constants

* Fixed i18n errors

* Updated translation files

* Fixes Canvas doc headers (#40921)
2019-07-11 17:14:05 -07:00
Lukas Olson
bb6d66851a Cancel Discover fetch requests if a new one is submitted (#39963)
* Cancel discover fetch requests if a nnew one is submitted

* Add comment

* Remove unused translations
2019-07-10 14:02:31 -07:00
Søren Louv-Jansen
b50c4c4dfe
[APM Tutorial] Fix APM Server link on Cloud (#40711) (#40775)
* [APM Tutorial] Fix APM Server link on Cloud

* fix translations
2019-07-10 22:31:49 +02:00
Dario Gieselaar
7a5730639a
[APM] Make sure stacked area charts handle no data points inco… (#40353) (#40731)
* [APM] Make sure stacked area charts handle no data points incorrectly

Closes #40351.

* Refactor CustomPlot/TransactionCharts

- [x] Keep API calls in a separate file from the useTransactionBreakdown hook
- [x] Bail out of render function early when `receivedDataDuringLifetime` is false
- [x] Use `cluster` prop to draw lines over area instead of creating a new plot
- [x] can lineseries be stacked without creating a new plot?
- [x] Move functionality of SyncChartGroup to ChartsTimeContext (renamed to ChartsSyncContext)
- [x] Only determine noHits inside of CustomPlot instead of using hits.total
- [x] Remove use of getEmptySeries except for testing
- [x] Send TimeSeries from the API instead of mapping data inside of the component
- [x] Use default data in useTransactionBreakdown to prevent is-null checks
- [x] Remove usage of start, end in CustomPlot

* Additional cleanup on aisle five

* Don't show GridLines or YAxis component if there is no data

* Make formatters less defensive

* Fix loading state for TransactionCharts

* Update translation files
2019-07-10 15:06:14 +02:00
Walter Rafelsberger
46ee4cbc2b
[ML] Data Frames: Fixes search triggering onChange on every keystroke. (#40607) (#40635)
- Replaces EuiFieldSearch with EuiSearchBar for the data frames transform wizard. EuiSearchBar has an incremental prop, when set to false, onChange will only trigger on enter instead on every keystroke.
- Fixes a bug where no search results would trigger an error callout for the source data table.
2019-07-09 17:58:45 +02:00
Walter Rafelsberger
e28c79901d
[ML] Data Frames: Fixes start/stop/delete for failed transforms. (#40532) (#40632)
- Fixes handling of failed transforms according to #40298 (comment). This adapts the API endpoints to allow force/wait_for_completion flags where applicable.
- Renamed DATA_FRAME_RUNNING_STATE to DATA_FRAME_TASK_STATE to better reflect the API naming.
- #40129 introduced an observable to refresh the transform list. The transform list actions now make use of this too and no longer require getJobs() to get passed around as a deeply nested prop.
- The state handling for overall loading and errors for the transform list is fixed/improved by this PR.
- On initial load, the list no longer shows No data frame transforms found, only the loading indicator.
- If loading the transform list data fails, the list gets replaced by an error-callout to avoid displaying out-of-date data and access to actions which might not work anymore.
- Fixes a bug where the transform list would no longer pick up refresh triggers after the request returned an error.
- Failed state in in the transform list uses now the danger color for the badge and adds a tooltip with the text provided in the reason field of the transform's stats.
- Fixes a regression where the messages pane would no longer load.
2019-07-09 17:51:59 +02:00
Pete Harverson
ead0648148
[ML] Fixes anomalies table sort behavior when sorting on severity (#40600) (#40624) 2019-07-09 16:29:20 +01:00