Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge master into feature-ingest #52710

Merged
merged 259 commits into from
Dec 11, 2019

Conversation

jen-huang
Copy link
Contributor

No description provided.

XavierM and others added 30 commits November 27, 2019 22:58
* Add creation rule on Detection Engine

* review + bug fixes

* review II + clean up

* fix persistence saved query

* fix eui prop + add type security to add rule

* fix more bug from review III

* review IV

* add edit on creation on rule

* review

* fix status icon color

* fix filter label translation
* Move saved queries service + language switcher to NP

* test fixes

* test fix

* fix ts

* mock search service
* Allow routes to define some payload config values

* Documentation typo

* Move hapi `payload` config under `body` + additional validations

* Update API docs

* Amend explanation in API docs

* Add stream and buffer types to @kbn/config-schema

* Fixes based on PR feedback:
- Add 'patch' and 'options' to valid RouteMethod
- Add tests for all the new flags
- Allow `stream` and `buffer` schema in the body validations (findings from tests)

* API documentation update

* Fix type definitions

* Fix the NITs in the PR comments + better typing inheritance

* API docs update

* Fix APM-legacy wrapper's types

* Fix KibanaRequest.from type exposure of hapi in API docs

* Move RouterRoute interface back to private + Expose some public docs

* Update @kbn/config-schema docs
* Implement new wait for chart rendered function

* Add findByCssSelector to ensure the charts have been rendered
…lastic#51639)

* Fix error returned when creating an alert with ES security disabled

* Add test to ensure error gets thrown when inner function throws
* Enable alerting and actions plugin by default

* Fix test failure

* Fix features test
* introduce IUiSettingsClient on the client

* switch uiSettings service to  IUiSettingsClient

* update uiSettings service tests

* all plugins should use IUiSettingsClient

* stop is not public methods anymore

* remove savedobject attribute type references

* regen docs

* remove all references to UiSettingsClient class

* regen docs

* add migration example for uiSettings

* update consumer types and tests

* address comments
* add eslint rule banning the core to import plugin code

* Ban importing legacy plugin code in the сore

* fix eslint errors

* core cannot import xpack rule

* regen docs
The main goal of this PR is to get rid of explorer_controller.js to unblock the migration to react-router. Previously we already used rxjs observables to migrate away from angular events. Observables were used to trigger actions to manage the react component's state as well as AppState. This PR builds upon this previous work. The actions already were done similar to redux, now the use of observables has been extended to use scan (see rxjs docs) which allows us to transform the actions into state updates.
* [ML] editor to ts

* [ML] custom_urls component to ts

* [ML] custom urls in job creator, define CustomSettings interface

* [ML] custom urls selection

* [ML] custom urls description text

* [ML] description for calendars

* [ML] update layout to full width

* [ML] fix i18n

* [ML] adjust editor test

* [ML] fix type for FormattedMessage

* [ML] fix types

* [ML] add modal edit mode to the custom urls editor

* [ML] fix calendars saving

* [ML] update snapshot

* [ML] add test support

* [ML] update form description text

* [ML] adjust layout

* [ML] set modal width

* [ML] fix total value condition in getTestUrl

* [ML] fix token replacement for string values

* [ML] align calendar selection

* [ML] manage calendars link

* [ML] fix form description ids

* [ML] styles for custom urls description

* [ML] manage calendars as a link

* [ML] refresh calendars button

* [ML] remove redundant css rule

* Revert "[ML] remove redundant css rule"

This reverts commit 6b9a50e

* [ML] update calendar service, move calendars out of the job config

* [ML] fix translation key

* [ML] fix i18n

* [ML] alight calendars selection

* [ML] calendar types

* [ML] update calendars description

* [ML] calendars cloning

* [ML] align additional settings with advanced

* [ML] fix typo, clean up calendars

* [ML] persist created_by for custom urls

* [ML] fix fetchCalendarsByIds

* [ML] extend stashCombinedJob with calendars

* [ML] remove redundant check and fallback for calendars
Shims discover app within local angular instance (or so called inner angular in the code) to enable migration to the new platform without getting rid of all Angular. Note that apart from Discover's main app, also context, doc view and embeddable are part of this shim. 

There a 2 sorts of local angular used, one for the main plugin, and a slimmer one for it's embeddable, that's needed to render the data table. Both are built on first demand.

There are 2 changes of URLs inside

/context/ becomes /discover/context
/doc/ becomes /discover/doc

Legacy url's are redirected, so they are still valid.
* Make a copy of index_patterns module inside NP

* Sync changes of index patterns

* Remove UI component from service

* Remove redundant exports from index_patterns

* Sync old index_patters changes

* Make common namespace of IndexPattern

* Make re-exports of old IndexPatter dependencies

* Remove utils and error of the old indexPattern

* Plug InterPatternService in data plugin

* Make shortenDotString in new data plugin

* Remove field folder

* Fix wrong merge

* Remove index_pattern folder

* Remove _LEGACY from service

* Remove static code from service

* Fix start contract

* Remove services from the old plugin

* Remove index_patterns_service

* Fix filter.meta.index type

* Fix reviews

* Fix type error
Re-merging a fixed merge PR by @Avinar-24
* TableVis uses local angular

* Clean up

* Fix TS

* Update angular_config

* Fix export

* Update render_app.ts

* Cetralize ui deps

* Fix loading KbnTableVisController in Dashboard

* Fix graph

* Rename const

* Add table vis mocks

* Fix kbn_top_nav

* Add TS for test

* Complete conversion paginated_table test to Jest

* Convert table_vis_controller test to Jest

* Convert table_vis_controller test to Jest

* Create agg_table.test.ts

* Fix mocha tests

* Refactoring

* Remove module dep

* Remove LegacyDependenciesPlugin

* Move file

* Fix path

* Fix path

* Fix TS

* Fix Jest test
* Fix TSVB not saving correctly

* Address review

* Add functional test
…ic#51832)

* [ML] Adds functional tests for the index based data visualizer

* [ML] Address comments from review on data viz tests

* [ML] Skip data visualizer functional tests on Firefox
jgowdyelastic and others added 8 commits December 11, 2019 15:58
* [ML] Replacing angular routing

* removing old files

* changing overview

* renaming overview route

* adding df analytics routes

* adding timeseriesexplorer route

* removing old files

* adding route for explorer

* adding access denied page

* adding module view or create redirect

* fixing job cloning

* adding breadcrumb system

* removing old breadcrumbs files

* fix include

* enabling management section

* injecting app dependencies

* fixing missed dependencies

* fixing saved searches

* fixing type errors

* removing included data start

* code clean up

* updating translations

* fixing router test failures

* fixing functional tests

* removing last use of SavedSearch

* removing comment

* fixing bug in line chart query

* improving saved search jobs

* fixing data viz functional test

* adding comment

* dealing with time range error

* removing unnecessary chrome imports

* cleaning up code

* moving resolver to own file

* changes based on review

* fixing index data viz on basic license

* fixing edit calendar

* adding create job breadcrumb

* fixing results appstate

* fixing management links

* updating new job constants file

* fixing rebase conflicts

* removing commented out code

* adding additional text to the resolver error
* adds route for querying signals index, also updates signal status type names

* first pass at happy path tests

* fixes stuff after rebase with master

* utilizes removes search_query from payload and replaces it with just query, adds aggs to signals search api, updates route and validation tests

* removes _headers parameter from route handler and updates comment for aggs script
…2601)

* [kbn/dev-utils] target ES2019 to transpile ??

* Retry uiSettings.replace() calls up to 5 times

* share logic for selecting junit report name to ensure they are unique

* convert to junit report path helper
@jfsiii
Copy link
Contributor

jfsiii commented Dec 11, 2019

@elasticmachine merge upstream

elasticmachine and others added 4 commits December 11, 2019 09:04
Spot checked other files modified by dce893b like x-pack/scripts/functional_tests.js and x-pack/plugins/licensing/server/plugin.ts and all seemed ok. Assuming/hoping the issue was just git merge algo having a hard time with the deleted line between our additions
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@jen-huang jen-huang marked this pull request as ready for review December 11, 2019 20:49
@jen-huang jen-huang requested a review from a team as a code owner December 11, 2019 20:49
@jen-huang jen-huang requested review from a team December 11, 2019 20:49
@jen-huang jen-huang requested review from a team as code owners December 11, 2019 20:49
@jen-huang jen-huang requested a review from a team December 11, 2019 20:49
@jen-huang jen-huang requested review from a team as code owners December 11, 2019 20:49
@jen-huang jen-huang merged commit 9b0ba9b into elastic:feature-ingest Dec 11, 2019
@jen-huang jen-huang deleted the feature-ingest branch December 11, 2019 20:49
@jen-huang jen-huang added the Team:Fleet Team label for Observability Data Collection Fleet team label Mar 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

Successfully merging this pull request may close these issues.