Commit graph

2912 commits

Author SHA1 Message Date
Ahmad Bamieh
e78e142d85
integrate translation files ja and zh (#54720) 2020-01-14 16:49:16 +02:00
Brandon Kobel
42da86a09e
Using the server's basePath when building the SAML ACS (#51391) (#51638)
* Using the server's basePath when building the SAML ACS

* Fixing getACS call
2019-11-25 17:32:59 -05:00
patrykkopycinski
d2b7f9636c
[SIEM] Fix typo in Palo Alto Networks (#51570) (#51594) 2019-11-25 18:15:35 +01:00
Cauê Marcondes
ab7fa7aa10
[APM] Duration by Country map doesn't take transactionName into account (#50315) (#50618)
* filtering country map by transaction name

* filtering country map by transaction name

* filtering country map by transaction name
2019-11-14 10:50:41 +01:00
Joel Griffith
e9c34c4bcd
[7.5] [Telemetry] Remove telemetry splash page and add conditional messaging (#50189) (#50430)
* [Telemetry] Remove telemetry splash page and add conditional messaging (#50189)

* Removing tel splash page in UI layer

* Removing more components

* New disclaimer text

* Removing telemetry i18n text

* More i18n text removals

* Snapshot updates

* Snapshot tests + quick links for tel opt-out when possible

* Fixing TS issues in test

* Fixing broken telemetry updates

* [ML] Removes ChartTooltip component, artefact from backport gone wrong. (#50300)

* [7.5] [ML] Skip advanced wizard categorization test (#50141) (#50156)

* [ML] Skip advanced wizard categorization test (#50141)
* Re-enable other advanced tests

* [DOCS] Adds link to 7.5 breaking changes doc (#50496)

* Fixing mock interface in jest
2019-11-13 12:28:52 -08:00
Patrick Mueller
180d7fc5f3
[7.5] update telemetry banner notice text (#50403) (#50479)
* remove exclamation from CN telemetry.welcomeBanner.title
* remove unused i18n keys via `scripts/i18n_check.js --fix`
2019-11-13 14:38:21 -05:00
Mike Côté
6145a00efa
Add "Get Help" and "Kibana Feedback" links to the help popover (#49797) (#50234)
* Initial work

* Move links to constants

* Update UI based on design and copy

* Apply PR feedback

* Remove unused translations

* Apply requested changes

* Remove some icons
2019-11-12 13:09:23 -05:00
James Gowdy
776c00e12a
[ML] Adding cloud specific ML node warning (#50139) (#50282)
* [ML] Adding cloud specific ML node warning

* fixing include

* adding callout and cloud checks

* fixing translations

* removing positive look behind in regex
2019-11-12 11:05:19 +00:00
Ahmad Bamieh
c8c2de0dbf
[i18n] integrate translations after 7.5 FF (#50055) 2019-11-07 11:19:27 +02:00
Felix Stürmer
577bcbeb86
[7.5] [Logs UI] Fix log rate analysis tab title and route (#49… (#49780)
Backports the following commits to 7.5:
 - [Logs UI] Fix log rate analysis tab title and route (#49646)
2019-10-30 23:33:12 +01:00
Felix Stürmer
b76f1a4a4f
[7.5] [Logs UI] Fix chart and table state loss due to loading… (#49606)
Backports the following commits to 7.5:
 - [Logs UI] Fix chart and table state loss due to loading indica… (#49356)
2019-10-29 13:12:25 +01:00
Court Ewing
78ccc24a68
Remove experimental code app (#49404) (#49527)
* Fix erroneous code plugin import in apm

* Stop running legacy code plugin

* Stop testing code app and apis

* Remove code plugin source and deprecate config

* Remove code plugin docs

* Remove xpack.code translations

* Remove code import on api_integration

* Remove code privilege from security test

* remove two more mentions of code

* remove code es_archives

* remove code doc images
2019-10-28 17:06:32 -04:00
Michael Marcialis
bf262840b0
[SIEM] Map Docs Link & Intrinsic Ratios (#49267) (#49421)
* rough out markup and intrinsic ratio poc

* reorganize comps

* media queries for aspect ratios

* disable ratio when error; add translations

* unit tests, translations & cleanup

* update copy per ben’s suggestions

* snapshots and translations

* move paddingSize prop inline

* change panel selector

* fix FormattedMessage id

* update snapshots
2019-10-25 20:10:03 -04:00
Walter Rafelsberger
96bdc33f6d
[ML] Transform: Fix permissions. Fix error messages. (#49025) (#49055)
- Updated internal permissions docs.
- Fixes regression to change data_frame to transform for privileges.
- Fixes error messages for wizard source table. An error triggered by Elasticsearch would not properly be passed through, just a generic JS error would be reported. Now the error for both source table and pivot preview get passed through.
- Fixes correctly reporting an error if the wizard fails to create the transform, previously a success toast would show in any case.
- The screenshot below also shows the fix for #46434: A snipped of the full error message is now shown within the toast.
2019-10-24 01:36:43 -07:00
Chris Davies
64a54c64d5
Add Lens to dashboard privileges (#49066) (#49109) 2019-10-23 17:40:45 -04:00
Garrett Spong
5eec13d3bf
[SIEM] Fixes map tooltip showing 'Error loading map features' when features exist (#48855) (#49006)
Resolves https://github.com/elastic/kibana/issues/48213 which was the result of an indexpattern mismatch (value is returned for a field but index pattern doesn't have said field). We now generate the filter on our own instead of calling into the Maps API which was checking the index pattern.

This also cleans up usage of the `AddToKql` component.

Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR.

- [x] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)
- [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)
- [ ] ~[Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials~
- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
- [ ] ~This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~

- [ ] ~This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~
- [ ] ~This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~
2019-10-22 21:35:01 -06:00
Felix Stürmer
094969b5ce
[7.5] [Logs UI] Provide index name pattern choice during ML jo… (#48849)
Backports the following commits to 7.5:
 - [Logs UI] Provide index name pattern choice during ML job setup (#48231)
2019-10-22 12:15:10 +02:00
WangQianliang
6338d17bd1
[Code] diff page (#46714) (#48725)
* fix(code/frontend): enable diff page
2019-10-21 19:51:43 +08:00
James Gowdy
1d6dcdb6ae
[ML] Fixing missing advanced job summary items (#48537) (#48622)
* [ML] Fixing missing advanced job summary items

* updating translations
2019-10-18 11:55:31 +01:00
Walter Rafelsberger
bc375cacab
[ML] Transforms: Fix error toasts. (#48509) (#48611)
Previously, error messages were just output within the toast as raw text which could result in overflows and overall unreadable results. This update fixes it by providing a "View details" button which opens a modal with the properly formatted error message. Plain text error message up to 140 character will still be shown in the toast itself.
2019-10-18 02:40:23 -07:00
Yang Yang
763098d809
Space aware 1 on 1 (#47981) (#48486)
* [Code] makes Code space aware.

For APIs related to repository, file, and search, user should only see
contents from repositories belongs to his/her space.

When the same repository is added in different spaces, they should point
to the same underlying repository. We use references from spaces to
repositories to represent this relationship.

This patch implements the 1:1 model, which means a repository can only be imported in on space.
2019-10-17 18:58:50 +08:00
James Gowdy
f4485bb25c
[ML] Removing old angular directives (#48382) (#48435)
* [ML] Removing old angular directives

* reverts small change

* typescriptifying access denied page

* changing access denied text

* updating translations
2019-10-16 20:19:31 +01:00
Rudolf Meijering
05c76f293c
Ignore missing references on saved object exports (#47685) (#48388)
* add saved object export details in ndjson response

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* update core doc

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* exclude export details for space copy

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* fixing tests

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* display warning instead of success if export contains missing refs

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* nits/typo

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* properly updates api integration tests

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* fix typings

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* add test on objects_table component

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* remove added translations from jp/cn bundles

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* restoring line feeds

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* improve doc and user alert message

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* restoring line feeds on server.api.md

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* warning test label

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>
2019-10-16 15:39:17 +02:00
Ahmad Bamieh
e51369a72a
[7.x] [Telemetry] Move to OSS (#45769) (#48370) 2019-10-16 11:50:17 +03:00
Garrett Spong
e5ac41a969
[SIEM] Show all SIEM ML Jobs in Anomaly Detection UI by default (#48067) (#48361)
## Summary

Resolves https://github.com/elastic/kibana/issues/46874 by showing all SIEM ML Jobs in the Anomaly Detection UI by default -- no installation necessary! These changes also check for job compatibility using the ML API's `recognize` endpoint, and will display an alert message for those jobs that are not compatible. This also introduces the ability to filter by groups, and refactors/cleans up functions within this feature that were being used elsewhere in the app. Finally, there is improved error support in that errors are filtered to only the job the user is trying to install/enable instead of showing errors for the entire module.

##### Compatibility Callout
![image](https://user-images.githubusercontent.com/2946766/66734388-247c4980-ee20-11e9-8d5d-fa685fa3daf4.png)

##### Filter by Groups
![image](https://user-images.githubusercontent.com/2946766/66734663-36aab780-ee21-11e9-9685-9305e53f2263.png)



### Checklist

Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR.

- [x] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)
- [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)
- [ ] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials -- will work with @benskelker on creating updated documentation.
- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
- [ ] ~This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~

### For maintainers

- [ ] ~This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~
- [x] This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)
2019-10-15 23:54:02 -06:00
James Gowdy
fa8ba4ce11 [7.x] [ML] Removing old job wizard code (#48240) (#48289)
* fixing conflicts

* updating translations
2019-10-15 20:33:58 -04:00
Felix Stürmer
6d54e58be4
[Logs UI] Adapt log entry rate data visualisations (#47558) (#48278)
Backports the following commits to 7.x:
 - [Logs UI] Adapt log entry rate data visualisations (#47558)
2019-10-16 00:31:23 +02:00
Brandon Kobel
fd9f4a4cd6
Removing the lens feature, using visualize instead (#48041) (#48272)
* Removing the lens feature, using visualize instead

* Updating /api/features test because lens isn't a feature anymore

* Updating capability from lens to visualize in test

* Fixing api integration test
2019-10-15 15:28:49 -07:00
Josh Dover
82fc2608aa
[7.x] Make generated type docs more explorable (#47069) (#48252) 2019-10-15 17:05:59 -05:00
Walter Rafelsberger
809a0efb93
[ML] Migrates chart tooltip to react. (#48122) (#48264)
- The tooltip styling, code and features have been updated to be more in line with Elastic Charts tooltips. This prepares us should we want to use Elastic Charts' tooltip as is at some point.
- jQuery is no longer used in mlChartTooltipService.
- The tooltip content is no longer raw HTML, a mostly Elastic Charts compatible data structure is now passed around by mlChartTooltipService.
2019-10-15 14:03:11 -07:00
Melissa Alvarez
5f3faad168
[ML] Data Frame Analytics: Regression creation and results view (#48159) (#48248)
* Add regression job type option and fields

* fetch dependent variable options when regression

* convert modal to flyout.disable delete if job not stopped

* update modelMemoryLimit for regression

* ensure eventRateFieldId not included in numerical fields

* add evaluateDataFrameAnalyticsRegression endpoint

* create regression result page generalization and training error panel

* update advancedEditorToggle help text

* remove unused translations

* rename creationModal test to creationFlyout

* Updates from PR feedback
2019-10-15 13:50:03 -04:00
Liza Katz
570cbf7d51
Remove indexPatterns dependency from filter service (#47471) (#48217)
* Get rid of addFiltersAndChangeTimeFilter

* ts fix

* remove timefilter dependency from filter manager

* code review change

* Fixed bug in tests

* changeTimeFilter

* Refactored mappers and filter service to have no dependency on indexPatterns by generating the filter disaplyName in the relevant components.

* Fix map and flatten test

* Fixed filter state manager test

* Remove async from addFIlters and setFilters

* Fixed saved objects test - removed (display)value from url

* Make removeAll sync

* defer setFilters and removeAll in dashboard controller - temp hack

* fixed translation in filter view

* update strings

* Fixed range rendering

* map range converter
2019-10-15 19:23:01 +03:00
Larry Gregory
30f69df238
[7.x] Spaces - server-side to NP plugin (#46181) (#48222) 2019-10-15 11:15:41 -04:00
James Gowdy
3cf395ef0e
[ML] Adding datafeed validation to advanced wizard (#48050) (#48202)
* [ML] Adding datafeed validation to advanced wizard

* shared invalid time format message

* updating translations

* adding time format validation function
2019-10-15 11:05:17 +01:00
Ben Skelker
aacc2eda63
[SIEM] Update SIEM ML license requirements popup text (#47445) (#48198)
* Update SIEM ML license requirements text

* Updates ML license popup with link to cloud

* Added updated translation json files
2019-10-15 12:32:34 +03:00
Justin Kambic
bad9c8b762
[Uptime] Add Donut chart (#47176) (#48037)
* Add donut chart.

* Merge donut chart with snapshot histogram panel.

* Update broken test snapshot.

* Undo removal of gray color from histogram chart.

* Use proper color values for donut chart and legend.

* Move donut chart to charts directory.

* Add snapshot tests for new chart components.

* Merge donut chart with snapshot histogram panel.

* Revert d3 version.

* Revert yarn.lock.

* Revert code to be compatible with older d3 version.

* Delete duplicated files.

* Clean up code.

* Improve const names.

* Update outdated snapshots.

* Fix broken type.

* Simplify function, add comment.

* Remove unused translations.

* Fix broken chart component.

* Implement designer feedback.

* Fix regression.

* Implement additional designer feedback.

* Fix issue that caused residual paths to remain on subsequent paints of donut chart.

* Update obsolete test snapshots.

* Revert yarn.lock.

* Rename repurposed translation.

* Delete obsolete translations.

* Update busted test snapshot.
2019-10-14 22:09:13 -04:00
Steph Milovic
7b75332edb
[SIEM] Source/Destination Ip Table on Ip Details (#47608) (#48170) 2019-10-14 16:17:57 -07:00
James Gowdy
7ff6fa93ec
[ML] Adding advanced job wizard (#46781) (#47970)
* [ML] Adding advanced job creator

* removing comment

* initial UI changes

* initial detector modal

* adding datafeed step

* adding json link to datafeed step

* linking json editor to jobCreator

* improvements to detector modal

* improving detector modal

* updating start datafeed behaviour

* fixing types

* i18n fixes

* updating descriptions based on old tooltips

* adding default frequency

* adding default query delay

* adding scroll size default

* possibly fixing translation issue

* fixing jest test

* fixing job cloning

* data test subject ids

* using default mml for population and advanced

* adding no detector warning

* removing index signature

* adding frequency custom hook

* adding mlcategory constant

* i18n changes

* removing children prop

* setIsValidQuery

* updating custom  hooks

* disabling future steps

* disabling future steps

* misc changes based on review

* removing early return from hook based components

* adding mlcategory to influencer list

* using job type constants

* fixing type failures

* disabling flaky mml functional test

* correcting disabled test

* fixing function test expect

* disabling all ml function tests
2019-10-14 07:09:01 +01:00
Joe Reuter
09e3f7cce3
[Graph] Improve wording (#47324) (#47983) 2019-10-12 02:32:18 +02:00
Mengwei Ding
2376a067d6
[Code] Fix new platform configs (#47881) (#48011)
* [Code] Fix new platform configs

* fix path
2019-10-11 12:10:21 -07:00
Nathan Reese
8cb0b75485
[Maps] retrieve geo_point value from docvalue_fields instead of _source (#47389) (#47917)
* [Maps] retrieve geo_point value from docvalue_fields instead of _source

* add functional test ensuring _search request only pulls what is needed

* clean up i18n translation fiels
2019-10-10 20:15:46 -06:00
Joe Reuter
06764edfc7
improve wording of save modal and listing page (#47443) (#47823) 2019-10-10 16:42:44 +02:00
Aleh Zasypkin
da745fad97
[7.x] Preserve URL fragment during SAML handshake. (#47742) 2019-10-10 14:36:49 +02:00
Søren Louv-Jansen
0d77169b64
[7.x] [APM] Use new platform for toast notifications (#47276) | [APM] Agent configuration phase 2 (#46995) (#47806)
* [APM] Use new platform for toast notifications (#47276)

* [APM] Use new platform for toast notifications

* fix more tests

* remove comment

* [APM] Agent configuration phase 2 (#46995)

* [APM] Agent Config Management Phase 2

* Add status indicator

* Extract TimestampTooltip component

* Remove unused StickyTransactionProperties component

* Fix snapshot and minor cleanup

* Minor cleanup

* Display settings conditionally by agent name

* Fix client

* Format timestamp

* Minor design feedback

* Clear cache when clicking refresh

* Fix test

* Revert t() short hand

* Fix translations

* Add support for “all” option

* Fix API tests

* Move delete button to footer

* Fix snapshots

* Add API tests

* Fix toasts

* Address feedback and ensure order when searching for configs

* Fix snapshots

* Remove timeout
2019-10-10 13:51:15 +02:00
Cauê Marcondes
9b8979424a
[APM]Show span.http.response.status_code and span.http object in Span details flyout (#47322) (#47793)
* Extracting HttpStatusBadge component, in order to be used on SpanFlyout

* Changing tab labels to metadata

* Changing tab labels to metadata

* Refactoring section labels

* Refactoring section labels

* Refactoring section labels

* Refactoring http info component

* adding new translation

* Refactoring section

* fixing type check on test

* Using lodash pick to get the correct properties
2019-10-10 13:37:29 +02:00
Dima Arnautov
e56e60dd0a
[ML] Converts Recognizer job page to React (#47429) (#47804)
* [ML] wip recognize job

* [ML] error handling

* [ML] layout enhancements

* [ML] errors handling

* [ML] fix badges alignment and error message

* [ML] components split

* [ML] load module from the component, reset support

* [ML] validators

* [ML] check view route and resolver

* [ML] validation

* [ML] remove angular code

* [ML] change layout, fix patterns

* [ML] job response fix

* [ML] directive test

* [ML] directive test

* [ML] remove lookbehind regexp

* [ML] fix IE11 layout issues

* [ML] remove form tag, refactor to formState

* [ML] aria labels, remove unused i18n

* [ML] align kibana objects and reset button

* [ML] column layout for jobs response

* [ML] align icons and buttons

* [ML] check existing kibana objects

* [ML] don't display kibana objects panel if empty

* [ML] result and reset button order

* [ML] add EuiHorizontalRule

* [ML] use time range and full index dat

* [ML] no check icon for existing objects

* [ML] toast for exception during a jobs setup

* [ML] disable panels growth, advanced settings with described form

* [ML] fix timeRange for results url

* [ML] fix i18n

* [ML] use EuiSwitch

* [ML] PR remarks

* [ML] job settings form component

* [ML] i18n

* [ML] onChange fix

* [ML] custom hook for partial state update

* [ML] jobGroups update

* [ML] PR remarks

* [ML] fix imports
2019-10-10 13:27:41 +02:00
Walter Rafelsberger
b6e7432e8b
[transform] Move ML "Data Frame Transforms" to Kibana management section "Transforms". (#45880) (#47745)
Moves "Data frame transforms" from the ML plugin to its own "transform" plugin within the Kibana management section.
2019-10-09 12:21:47 -07:00
Nathan Reese
b05c68b0e5
[Maps] Move sort out of top hits configuration for ES documents source (#47361) (#47732)
* [Maps] Move sort out of top hits configuration for ES documents source

* add migration script to convert topHitsTimeField to sortField

* update i18n translations

* add jest test for es docs source UpdateSourceEditor component

* remove time configuration from top hits docs

* update migrations integration expect statement

* review feedback

* reverse hits list so top documents by sort are drawn on top

* update functional test expect to account for reversing hits order

* update another functional test expect clause for reversing hits
2019-10-09 11:52:04 -06:00
Daniil Suleiman
e849663cff
[Vis: Default Editor] Euificate table options tab (#46013) (#47666)
* Euificate table options tab

* Add validation

* Use SchemaConfig for dimensions

* Update snapshots
2019-10-09 18:03:36 +03:00
Daniil Suleiman
8d8eade804
[Vis: Default editor] Euification of Metric options tab (#46930) (#47630)
* EUIfication of metric_vis_options

* Small fixes

* Remove unused translations

* Fix style comments

* Remove unused styles
2019-10-09 10:48:35 +03:00