Commit graph

29526 commits

Author SHA1 Message Date
Luke Elmers de4269f8d4
Fix import causing Kibana to crash in IE11. (#52248) 2019-12-09 16:29:47 -07:00
Zacqary Adam Xeper 21f9ab255a
[Logs UI] Refactor log entry data fetching to hooks (#51526)
* Get initialinitial log fetch working with v2 store

* Replicate shouldLoadAroundPosition logic within hooks

* Reload entries on filter change

* Add scroll to load additional entries functionality

* Cleanup types types and remove state/remote folder

* Typescript cleanup

* Remove extraneous console.log

* Fix typecheck

* Add action to load new entries manually

* Typecheck fix

* Move v2 store stuff into logs containers

* Typecheck fix

* More typecheck fix

* Remove filterQuery from log highlights redux bridge

* Rename LogEntriesDependencies to LogEntriesFetchParams

* Fix endless reloading bug

* Fix duplicate entry rendering

* Make sourceId into a dynamic parameter

* Fix bug in pagesAfterEnd not being reported causing endless reload

* Fix bugs with live streaming
2019-12-09 17:24:58 -06:00
Robert Oskamp d429a9a1e8 [ML] Functional tests - fix typing issue (#52167)
* Use char by char typing in all text fields

* Add dely before first typed charakter when typing char by char

* Remove delay before typing again

* Use clearCharByChar option for input fields

* Revert "Use clearCharByChar option for input fields"

This reverts commit e412d7bc64.

* Revert "Use char by char typing in all text fields"

This reverts commit 2fbccc57c6.

* Disable jobCreatorUpdate for tests

* Revert "Disable jobCreatorUpdate for tests"

This reverts commit e178fd82ab.

* Check typing char by char for job wizard inputs

* Remove .only from anomaly detection suite

* Move setValueWithChecks from testSubjects to a ML service
2019-12-09 16:00:36 -07:00
Spencer 3293ede421
remove remaining idx usage (#52354)
* remove remaining idx usage

* handle possibly undefined value

* update NOTICE.txt
2019-12-09 15:59:07 -07:00
Nathan Reese a863dca9c2
[Maps] better style defaults (#52420)
* [Maps] better style defaults

* rename consts
2019-12-09 14:38:46 -07:00
Pierre Gayvallet c692689f21
fix import (#52555) 2019-12-09 22:18:57 +01:00
Ryland Herrick 45df5fdf42
[SIEM] Migrate backend to use New Platform services (#51144)
* Mark incoming plugin members as readonly

These cannot and should not be modifiable.

* Use env var instead of EnvironmentMode

* There doesn't appear to be an EnvMode in the new platform
* We're only using envMode to check whether we're in production
* We're already using process.env.NODE_ENV elsewhere

We can revisit this, but for now I'm simplifying things under this
assumption.

* Pass our setup context to the compose function

We're going to retrieve our router instance from this, for now.

* Remove unused static files route

I spent a few minutes trying to do this in the new platform, only to
realize that this was cargo culted from another plugin's structure and
never used.

* WIP: convert main GraphQL endpoints to New Platform

Splits the existing dual-method route into separate GET/POST
routes, while converting it to the NP routing syntax

TODO:
* Full route schema declarations
* Address context being moved off of the response object and into its
own object; callWithRequest is currently broken for this reason.

* Remove unnecesary Request type

While the defaultIndex patterns can be retrieved on the request itself,
that requires this special case of our FrameworkRequest.

In my smoke testing, the incoming `indices` argument was never different from
the one present on the request payload. Xavier had mentioned that these
might be redundant and a relic of some quick prototyping, so I'm going
to simplify this logic and delete that type under this assumption.

* Retrieve Elasticsearch client from RequestHandlerContext

In order to minimize the amount of noise on this refactor, I'm adding
the RequestHandlerContext to the existing FrameworkRequest object that
we already pass around.

This also removes some adapter methods that were cribbed from infra but
have since become unused. There are likely more.

* Use uiSettings client from RequestHandlerContext

Pulls from the new platform instead of from request.server.

* Remove unused properties from RequestFacade

One of these was obviated by the refactor to NP routing; the other may
never have been necessary.

* Remove unused interface

This is a relic that is no longer used in the codebase.

* Make error response code dynamic

* Handle GraphQL errors

Refactors to use new platform's responses instead of Boom.

Unless we intentionally do not want isGraphQLError error headers, I saw no
reason for the latter two branches of this method (and merged them).

* Fix graphiQL route

We needed to loosen the restriction on our main POST graphQL route, as
the requests coming from graphiQL do not match our normal format.

* Clean up logging

* Remove unused var injection functionality

I could not find a case where we were using these vars within the siem
app.

* Fix typo on config fetching

* Migrate to NP IndexPatterns service

* Removes unused extra parameter on callWithRequest
  * I think this was a relic from the infra code
* Clean up typings of callWithRequest
  * GenericParams is, ironically, not generic enough to handle all ES
  client calls. Instead we type it as Record<string, any> but ensure
  that our function adheres to the APICaller interface.

* Use savedObjects client in request context

These resolvers already receive a request containing the NP context, so
we can retrieve our client directly from that, now.

* Rename dependencies -> plugins to match kibana.json

* Remove unnecessary type annotation

The type of callCluster is already checked due to being passed to the
IndexPatternsFetcher constructor.

* Add siem plugin to new platform

For now this just generates a config observable with some defaults;
everything still lives in the legacy plugin.

* WIP: flattening out plugin initialization

Rather than pass our legacy API around everywhere, let's be explicit
about who needs what, and start flattening things out so that we can
move the legacy-independent stuff over.

* Pass our plugin context to initServerWithKibana

We can get the NP equivalent of `pkg.version` from
context.env.packageInfo.version, so let's do that and remove a usage of
config().

* Simplify siem configuration

As far as I can tell, the only siem config that we're using is
`xpack.siem.enabled`. The `query` was a holdover from infra, and if
we're using the `sources` queries at all, it's only with the default
values. Since our config is not typed, trying to add `sources` config
only results in runtime errors.

This removes the KibanaConfigurationAdapter entirely, and instead passes
what is effectively { sources: {} } to the SourcesConfigurationAdapter.

* Run all legacy-free setup through our plugin

Once this is vetted, we should be able to move the entire tree under the
plugin into the new platform plugin. We can inline the compose and
init_server calls into the plugin once things are vetted and stable; for
now leaving them there cuts down on the diff.

* Temporarily ignore our unused config declaration

* Fix detection engine route tests

While we're passing a properly bound route function in the app, the
tests' interfaces needed to be updated. Adds a helper method for
retrieving a bound route function from a Server object.

* Add some rudimentary schema validation to our graphQL endpoints

* Remove defunct server.config fn

The last remaining usage of this config was removed in #51985.

* Group our dev endpoints together

The graphiQL endpoint is the only thing that currently uses the GET
endpoint; everything else that talks to graphQL uses POST. For that
reason, I'm putting them in the same scope (along with annotating here)
to make that a bit clearer.

* Determine environment from plugin context

The kibana platform did and does provide this interface to check with
environment we're running in.

* Migrate xpack_main to NP features service

* Fix some issues missed in the previous merge

DE added some dependencies on both the server and request objects. Most
have NP equivalents and can be converted, but for now let's just add
them back to the Facades and convert in another PR.

Also changes one function to pull plugins from the server object, rather
than the server object living on the request (as this is how similar
functions are structured right now).

* Fix type resulting from bad merge resolution

* Fix type error due to incorrect usage of Hapi.Request

Pull elasticsearch service off our legacy server object, rather than
indirectly off the request object. Still legacy, but it's one less step
for later.
2019-12-09 15:17:29 -06:00
Nathan Reese cb60a77bb9
[Maps] only show styles that apply to layer feature types in legend (#52335)
* [Maps] only show styles that apply to layer feature types in legend

* update hasLegendDetails check to include style property filters

* clean up
2019-12-09 13:26:50 -07:00
Patrick Mueller 942f5420ed
provide finer detail on action execution errors (#52146)
resolves https://github.com/elastic/kibana/issues/52103
2019-12-09 15:03:18 -05:00
Lukas Olson 25c750b225
Cancel discarded KQL value suggestion requests (#51411)
* Fix filter matches index for filters with partial meta

* Abort discarded KQL value suggestion requests

* Abort server-side connection to ES

* Fix failing test
2019-12-09 12:43:52 -07:00
Frank Hassanabad 4bbe3cf85b
[SIEM][Detection Engine] Removes filter type, fixes bugs, adds more examples (#52452)
## Summary

* This removes the filter type and all the tests associated with it.
* This fixes a critical bug where filter from params was being passed down instead of esFilter
* This adds and cleans up all the rule examples for documenters and developers and users.
* This fixes a bug with empty queries
* This makes it so you can have simple filters which replace the filter capability
* This cleans up info and debug messages more

### Checklist

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

~~- [ ] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)~~

~~- [ ] 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)~~

- [x] [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)~~

### 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-12-09 12:39:06 -07:00
Matt Bargar 77dca06253
Support nested fields in existing filter types (#49537)
* Add automatic support for nested fields in existing filter types

* Index pattern could be undefined

* add test for handleNestedFilter function

* remove console.log

* add tests for all "getFilterField" functions

* update migrateFilters to work on full filter objects so that it doesn't
have to worry about queries that have been wrapped with `nested`

* add test to ensure fromFilters auto wraps filters on nested fields

* Add smoke test for nested filter and move filter editor tests into
their own suite for easier running and debugging

* fix bad type change

* dedupe filterToQuery logic

* fix helper that wasn't doing what it said it did

* Convert test from pre-merge to jest

* Use new time range style
2019-12-09 14:16:15 -05:00
Matt Bargar c7046a080f
Flag nested fields as non-aggregatable (#51774)
* Flag nested fields as non-aggregatable

* Update tests
2019-12-09 13:59:49 -05:00
Tim Roes 419ea47cca
Upgrade typescript-eslint to 2.10.0 (#52528) 2019-12-09 19:49:15 +01:00
Poff Poffenberger 94b2eb4908
[Canvas] Add simple visual test for fullscreen (#51234)
* Add simple visual test for fullscreen workpads in Canvas

* Adding canvas to the config

* Adding sample data visual tests

* Refactor to use new helper method

* Reverting sample data visual test for now

* Forgot to add the awaits
2019-12-09 12:39:06 -06:00
Wylie Conlon 7a629466c1
[Lens] Show keyword fields for pre-7.3 index patterns (#52410) 2019-12-09 13:09:41 -05:00
Kukhyeon Heo 77f4f8c250 ui/management -> new platform (#45747)
Created management plugin under core_plugins.
Filled the plugin with 2 services: IndexPatternManagementService and SavedObjectsManagementService.
Removed related codes in ui/management and changed the paths.
2019-12-09 11:56:51 -06:00
Bill McConaghy b3cb1ca748
adding in updated links for feedback and ask (#52516) 2019-12-09 12:44:59 -05:00
Brandon Kobel 134e70e16d
Fix timing issue with synchronizing the Kibana privileges to ES (#52214) 2019-12-09 12:03:41 -05:00
Greg Thompson ac0f44e6a5
Upgrade EUI to v17.0.0 (#52342)
* eui to 17.0.0

* Fix sass imports and mixin usages

* Fix kbn ui-framework

* snapshot updates

* switch text

* switch functional update

* test subject
2019-12-09 10:51:17 -06:00
Joe Reuter 5a14a7a385
Graph: Stabilize functional test (#52417) 2019-12-09 17:29:08 +01:00
Liza Katz 43c55cf6a4
Move apply filters action to NP (#52156)
* move action

* attach action in start

* Remove uiActions from core_plugins/data

* Don't export apply filters popup

* import DataPublicPlugin after all other deps have loaded

* lint

* Remove unused import
2019-12-09 18:09:44 +02:00
Jean-Louis Leysens 3d36356cab
License Management to New Platform (#51886)
* License Management public -> NP

* - Server to NP
- Slight update to filepicker style (center it)

* Fix snapshots and types

* Server-side: separate new and legacy dependencies [skip ci]

* Fix license upload route after refactor

* Client side: separate new from legacy dependencies

* xpackInfo -> xPackInfo

* Fix types [skip ci]

* Remove kbnUrl, autoLogout. Add history and update paths.

* Update upload license test

* Remove use of legacy chrome, remove use of k7breadcrumbs, replace some common strings with variable and use NP i18n
2019-12-09 14:54:23 +01:00
Joe Reuter 3d2db42b6e
fix flaky test (#52395) 2019-12-09 14:29:48 +01:00
Walter Rafelsberger cffb4dcea8
[ML] Fix table factory usage. (#52486)
Moves calling the table factory out of components to avoid instantiation on every render call. Note all of this is a workaround for our own typescript version of EuiInMemoryTable. Once the original table has been migrated to TS, we should be able to remove the custom code.
2019-12-09 12:48:08 +01:00
Rudolf Meijering e9299092f0
Expose SavedObjectsStart from AppMountContext (#52059) 2019-12-09 12:37:54 +01:00
Artyom Gospodarsky 1530029c35 Cleanup: Replace IndexPatterns types (#52188)
* IndexPatternsContract

* types

* Expose FieldList on indexPattern contract (as its stateful)
Rename FieldListInterface to IFieldList
Remove more exports from ui/index_patterns
Fix Maps import
Move data services initialization to top level of the plugin

* Clean up mocks

* ts

* setFieldFormats from Legacy plugin

* Remove FIeldList export

* Fix checking of error type in management

* Fix security import of indexpatterns

* fix jest tests

* Fix jest tests

* Update snapshots

* Fix mocha tests
2019-12-09 13:31:49 +02:00
Aleh Zasypkin 30edc0f167
Upgrade extend to 3.0.2. (#51902) 2019-12-09 11:19:57 +01:00
Mikhail Shustov dce893bb79
NP licensing plugin improvements (#51818)
* add onPreResponse interceptor

* use onPreResponse interceptor to add license sign

* expose registerPreResponse to plugins

* refresh for license update get the most fresh license

* license plugin injects own header for signature:  'kbn-license-sig'

* add integration tests for license type and license header

* switch config to duration

* don't run interceptor on anon paths. add tests

* add functional tests for licensing plugin

* regen docs

* fix test in security due to updated mocks;

* update snapshots accoring to new mock implementation

* migrate license expired banner to NP

* add readme for the licensing plugin

* remove outdated import. licensing has separate functional tests

* add tag for test to run on CI

* regen docs

* Update x-pack/plugins/licensing/README.md

Co-Authored-By: Josh Dover <me@joshdover.com>

* update tests
2019-12-09 10:40:18 +01:00
Anton Dosov b66af16153
fix data-shared-items-container on visualise page (#52370)
Addresses #52109 (comment)

Should fix #51309,
Regression was introduced in: #46910
2019-12-07 16:50:33 +01:00
spalger 5007bbf3e7 skip flaky suite (#48721) 2019-12-07 08:10:52 -07:00
Maja Grubic 1f9f3a559b
Re-introducing docs on image url (#52458) 2019-12-07 14:54:56 +00:00
Devin W. Hurley 2ab3795f96
[SIEM] [Detection Engine] Set Signal status open closed REST API (#52356)
* adds route to update status on a signal / query result of signals. This also adds some example curl commands in scripts/signals and updates the README with general instructions on how to use the scripts to interact with the new endpoint.

* utilizes 'mget' to allow multiple id's to be passed in. Updates relevant example curl script.

* utilizes updateByQuery instead of querying then updating individual results

* adds tests for set signals status route. Adds tests for set signals route schema. Updates schema to make status a required field.

* fixes type check failures, fixes missing import due to renaming, fixes naming of mocked elasticsearch plugin after rebasing

* removes anys from mocked es plugin, updates example comments in signals scripts

* removes undefined | null from signal status definition, updates put_signal_doc with the get_signals_index script, adds getIndex to open_close_signals_route, updates tests to mock getIndex fn, updates README with instructions to run signals scripts from inside scripts directory.

* removes null/undefined check for callWithRequest

* sets signal status query to object
2019-12-06 20:12:28 -05:00
Nathan Reese d4479b8221
[skip-ci][Maps] Connecting to Elastic Maps Service from an internal network documentation (#48927)
* [skip-ci][Maps] Connecting to Elastic Maps Service from an internal network documenation

* use ascii docs list format

* review feedback
2019-12-06 14:34:34 -07:00
Brittany Joiner 4256d28b85
[APM] add service name to jvm (#50830)
* [APM] add service name to jvm

* removes isLoading
2019-12-06 16:31:17 -05:00
Tony Sleva b1eebaa2a5
Update most-frequent.asciidoc (#52241)
Backporting https://github.com/elastic/kibana/pull/52240
2019-12-06 12:24:14 -09:00
patrykkopycinski df21ec3fcf
Deprecate recompose part 1 (#50806) 2019-12-06 22:24:03 +01:00
Justin Kambic f7f00819dc
Update default path linked on Kibana sidebar to avoid basename warning in browser. (#52008) 2019-12-06 16:17:18 -05:00
Robert Austin 8fb8ef94b1
Add Endpoint plugin and Resolver embeddable (#51994)
* Add functional tests for plugins to x-pack (so we can do a functional test of the Resolver embeddable)
* Add Endpoint plugin
* Add Resolver embeddable
* Test that Resolver embeddable can be rendered
2019-12-06 14:55:16 -05:00
Garrett Spong c3ddb53c66
[SIEM] Adds support for specifying default filters to StatefulEventsViewer (#52413)
## Summary

Finishes plumbing through the `defaultFilters` prop on the `StatefuleEventsViewer` component so that your view will always be constrained by a specified filter. Also adds an example of doing so to the current WIP `SignalsTable`.

### Checklist

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

- [ ] ~This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)~
- [ ] ~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~
- [ ] ~[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)~
- [ ] ~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-12-06 12:31:19 -07:00
Spencer e17539c5da
[ci/pipeline/reportFailures] when aborted, run with --no-github-update (#52355) 2019-12-06 12:27:06 -07:00
Shahzad 6af9f9bea6
update columns (#51892) 2019-12-06 19:55:57 +01:00
Vadim Dalecky e80611483f
State containers (#52384)
* feat: 🎸 add state containers

* docs: ✏️ add state container demos

* docs: ✏️ refrech state container docs

* chore: 🤖 install default comparator

* chore: 🤖 remove old state container implementation

* feat: 🎸 add selectors

* chore: 🤖 move Ensure tyep to type utils

* fix: 🐛 fix useSelector() types and demo CLI command

* test: 💍 add tests for state container demos

* feat: 🎸 add ReacursiveReadonly to kbn-utility-types

* feat: 🎸 shallow freeze state when not in production

* test: 💍 fix Jest tests

* refactor: 💡 remove .state and use BehaviourSubject
2019-12-06 10:53:06 -08:00
Jason Rhodes ab5913d109
Infra server NP shim + config/routing API adoption (#45299)
* Basic cleanup before refactoring for shim work

* shim WIP

* Removes the configuration adapter

* WIP more stuff

* WIP refactoring of shimming work

* WIP continues

* Logging UI now runs on top of new platform shim

* WIP continues

* Removes unused imports and variables

* Basic infra NP server shim in place

* Reimplemented graphql http error handling for infra NP server shim

* Adds new platform infra plugin to handle NP config for legacy server shim

* Basic cleanup before refactoring for shim work

* shim WIP

* Removes the configuration adapter

* WIP more stuff

* WIP refactoring of shimming work

* WIP continues

* Logging UI now runs on top of new platform shim

* WIP continues

* Removes unused imports and variables

* Basic infra NP server shim in place

* Reimplemented graphql http error handling for infra NP server shim

* Adds new platform infra plugin to handle NP config for legacy server shim

* Adds comment about duplicating full config for NP config

* Use New Platform features plugin to registerFeature()

* Re-arranging and relying on request context as uch as possible

* Refactors KibanaRequest for RequestHandlerContext

* fixes types for callWithRequest

* Moves callWithRequest method override types directly into class to get them working, need to fix this when we understand it better

* Fixes callWithRequest framework types

* Removes a few NP_TODO comments

* Fix broken imports

* Ensure GraphQL resolvers are actually passed requestContext and not the raw request, and switch to the savedObjects client via requestContext

* Remove the legacy traces of the savedObjects plugin

* Fixes TSVB access with NP raw requests and requestContext

* Remove unused getUiSettingsService (moved to requestContext)

* Migrate to new Spaces plugin

* Fix calculateMetricInterval after merged changes

* Reinstate and migrate the infrastructure metadata route

* Fix various type check errors

* Amend InfraSources lib unit tests

Mock the savedObjects client differently

* Amend MetricsExplorer API response

Renaming of variable inadvertently broke the response

* Remove GraphQLI references from feature controls tests

* Remove other GraphiQL references

* Fix security / access issue

* Add a framework level registerRoute method which always adds access tags by default

* *Temp* disable test

* Migrate the log rate validation endpoint to the new platform

Fully migrates the [Logs UI] log rate setup index validation #50008 PR to New Platform routing etc

* Amend types

* Example of how to expose APM get indices method in NP

* Fix calls to TSVB bug caused by object mutation
This is a temp fix as the TSVB NP migration will supercede this

* Converts getApmIndices function to accept saved object client, implements usage in infra

* Fix APM setup_request tests

* Fixes some unused references for linting

* Migrate all work from #50730 to NP

* Remove duplicate declaration files for rison_node and add a single source of truth at x-pack/typings/rison_node.d.ts for x-pack uses

* Moved type file back into infra plugin to bypass strange break

* Updates apm indices method signature per feedback from @elastic/apm-ui
2019-12-06 13:35:34 -05:00
Matt Bargar 3368ce096c
Preserve currently loaded Saved Query in Discover when page reloads (#52323)
* Fix import

* Add test that would have failed with previous bug
2019-12-06 13:04:26 -05:00
Tiago Costa 20d30e5b27
chore(NA): add resolution to bump serialize-javascript (#52336) 2019-12-06 17:42:45 +00:00
Mikhail Shustov 2ef6d8d8f7
Add pre-response http interceptor (#52366)
* add onPreResponse interceptor

* expose registerPreResponse to plugins

* address comments

* regen docs
2019-12-06 17:46:25 +01:00
Nathan Reese c4c95e2bc6
[Maps] use style metadata to calculate symbolization bands (#51713)
* [Maps] use style metadata to calculate symbolization bands

* only update style meta when fields change

* load join source style meta

* use style meta data request to populate range

* apply source filter to style meta request

* fix heatmap

* only use style meta range if field supports field meta

* add fieldMetaOptions to style prperty descriptor and add migration script

* add UI for setting fieldMetaOptions.isEnabled

* clean up

* review feedback

* fix can_skip_fetch tests

* review feedback

* only show field meta popover for fields that support field meta

* avoid duplicate fields re-fetching style meta

* clean up problems when first creating grid source

* update text for enabling field meta toggle

* provide UI for setting sigma

* allow users to include global time in style meta request

* update SIEM saved objects

* add less than and greater than symbols when styling by field stats

* fix functional tests

* review feedback

* add support for date fields

* review feedback

* only show less then and greater then in legend when values will be outside of std range

* unnest VectorStyle._getFieldRange

* remove unused function

* only show style isTimeAware switch when style fields use field meta
2019-12-06 09:34:52 -07:00
Dima Arnautov 154f207e38
[ML] Functional tests for Additional settings in the Job wizards (#52269)
* [ML] test custom urls in multi-metric wizard

* [ML] calendars test

* [ML] tests for job cloning

* [ML] single metric

* [ML] advanced job

* [ML] population job

* [ML] update snapshot

* [ML] ensure calendar deleted and created

* [ML] improve custom urls assertation

* [ML] update snapshot

* [ML] update snapshot, fix data-test-subject

* [ML] remove redundant functions

* [ML] add ensureAdditionalSettingsSectionOpen check

* [ML] remove assignCalendar method

* [ML] ensure model window disappears after adding a custom url

* [ML] create calendar logging, remove unused deleteCalendar method, parameterized saveCustomUrl
2019-12-06 16:37:49 +01:00
Dima Arnautov 80eef1ec06
[ML] Fetch the latest job messages and enable sorting by time (#52388)
* [ML] add sorting support

* [ML] change fetch sort to desc for anomaly detection jobs

* [ML] rename param
2019-12-06 16:32:41 +01:00