* Initial work converting UI to use new server side APIs
* Remove missed file
* Fix jest tests
* Code cleanup pt1
* Fix file casing
* Fix jest tests
* Modify UI to support including nested references
* Fix button layout
* Connect includeReferencesDeep, remove references_missing_references logic
* Fix broken tests
* Cleanup
* Display success notifications and auto close modals on export
* More code cleanup
* Log to server when user imports using legacy .json file
* Final cleanup
* Update test snapshots to match updated text
* Apply PR feedback pt1
* Remove isLoading and wasImportSuccessful state variables, use single status variable instead
* Move business logic out of flyout component
* Apply PR feedback
* Update wordings
* [services/lib/web_element_wrapper] set custom wait for findAll
* [services/remote] print browser name and version on init
* [services/combo_box] fix return statement
* fix lint error
* Move ui/flyout to overlay core service
* Remove onClose in parameter (use FlyoutSession instead)
* Fix tests
* Remove old inspector tests
* Proper TODO message
* Convert flyout service to class
* Use correct i18n
* Resolving weird merge conflicts
* Fix panel plugin test
* Change new platform access
* Add more tests
* Remove commented tests
* Revert test fix (core is actually not fixed yet)
* Fix tests
* Expose onClose as Observable
* Use jest.doMock
* Fix typos
* Core start() -> setup()
* Remove @extends EventEmitter docs
* Refactor and test flyoutservice
* Fix comments: promise -> observable
* Fix tests
* Explicitly define OverlaySetup
* Fix OverlaySetup type signature
* Update Core API review file and docs
* Remove redudant if case
* Change FlyoutRef.onClose into a promise
* Remove redundante cleanup
* Use promise.finally
* Remove targetDomElement from openFlyout()
There's no need to support multiple targetDomElements per FlyoutService
and the current implementation handled this use case incorrectly.
Instead of adding complexity to try to support it, remove this from the
function signature.
* Fix + test to ensure child components are unmounted when a new flyover is displayed
* Wrap flyover in i18n Context component
* TSlint -> ESlint + test improvements
Now you can use the Enter key to submit the form used e.g. when saving a new dashboard
Good for a11y + a time saver
Adds Form element, migration of Button onClick to Form's onSubmit
Adds functional test for Enter key submission
Fix#30831
* Modify import APIs to handle special use cases from the previous import process
* Cleanup
* Add more examples to the docs
* Make title come from data inside file
* Fix some broken tests
* Fix docs
* Fix docs wording
* Apply PR feedback pt1
* Apply PR feedback pt2
This commit introduces two changes:
- Adds new platform plugins as a new bundles to the optimizer
- A PluginsService in the UI that loads plugin bundles, initializes plugins, and manages the lifecycle of plugins.
Adds two fields to the IndexPattern Field:
* parent - the name of the field this field is a child of
* subType - The type of child this field is. Currently the only valid value is multi but we could expand this to include aliases, object children, and nested children.
The thinking behind implementing these two new properties instead of a simple isMultiField flag is that it should be generic enough to describe other sorts of parent -> child relationships between fields.
* EUIficate agg-select
* Improve validation; update TS
* Apply styles for helpLink
* Fix unit test
* Update functional tests
* Adjust comboBox service to chose the item where the text mates exactly
* Update vis page object
* Add default value for agg
* Move aggs grouping function to a separate file
* Use labelAppend prop for help link node
* Add watcher for aggType to manage to discard changes
* Add default value for agg type title
* Fix defining selected option when aggType is defined
* Fix validation issues
* Remove a bootstrap specific class
* Change css selector in test
* Update according to SASS guidelines
* Update functinal comboBox service
* Added check for undefined
* Add jsdoc for groupAggregationsBy function
* Add unit tests for groupAggregationsBy
* Move setValidity invocation to DefaultEditorAggSelect component
* Wrap setValidity into useEffect due to react warning when select is cleaned at the first time
* Move help link definition to select component
* Track user actions for creating, updating, and deleting and index lifecycle policy.
* Track user actions for attaching an index, attaching an index template, and detaching an index.
* Track app load action.
* Track usage of cold phase, warm phase, set priority, and freeze index.
* Track retry step user action.
* Track clicks on the policy name to edit it.
* Refactor constants to be in root of public.
* Add support to user actions API for comma-delimited action types.
* Refactor rollups trackUserRequest to be easier to understand.
* Use underscores instead of dashes for user action app names.
* Switch from componentWillMount to componentDidMount/useEffect.
- Standardize use of HashRouter within app.js to avoid calling useEffect when leaving the app.
* use css selector instead of className, set implicit wait to 0
* set implicitWait to 2 sec
* set default implicitWait to WAIT_FOR_EXISTS_TIME
* set timeout to 1 sec, retry for query bar test
* sleep 5 sec waiting zoom is finished
* sleep is the only way to wait
* run x-pack-ciGroup3 20x times
* Revert "run x-pack-ciGroup3 20x times"
This reverts commit 55482de330.
* Typescript sample panel action
* Update EUI version to match main cabana version
* update yarn.lock
* add back typings include
* use correct relative path
* [@kbn/expect] "fork" expect.js into repo
* [eslint] autofix references to expect.js
* [tslint] autofix all expect.js imports
* now that expect.js is in strict mode, avoid reassigning fn.length
I'd like to add another custom eslint rule, but there isn't a very good place to do that right now. We have the `eslint-plugin-kibana-custom` package, which is super simple but isn't in the `@kbn` namespace and isn't included in the root eslint config, and `@kbn/eslint-plugin-license-header` is too specific, so I've merged those two packages into `@kbn/eslint-plugin-eslint`, which is a little redundant but allows is to refer to the rules within it as `@kbn/eslint/{rule}`, which feels nice.
Thoughts?
_**NOTE:**_ merging the eslint rules from the two packages means enabling prettier for the code from `@kbn/eslint-plugin-license-header`, all those changes are made in 42c7da6fe2. [View the changes without the prettier updates](b647f2b...74e07a0)
* EUIficate string control
* Fix tests
* Update unit test
* Add data-test-subj for input
* Remove unused props
* Refactoring
* Add value prop to be able to discard changes on form
* Refactoring
* Set ng-model
* Remove unnecessary check and specify model name
* Set full width to be consistent with other controls from the form
* cherry-pick fd2bc9b
* Return errors when objects are missing references
* Fix import tslint
* Fix failing jest tests
* Fix x-pack integration tests
* Rename ensureReferencesExist to validateReferences
* Fix test naming to use validateReferences
* Update resolve_import_errors API to reflect new type attribute
* Validate references for search type as well
* Clarify comment
* Apply PR feedback
* Modify saved object bulkGet to be able to filter fields
* Apply PR feedback
* update for new eui nav drawer
* remove extraAction on flyout
* fix mobile menu toggle
* add i18n for recently reviewed nav link
* progress on updating tests
* replace EuiListGroup with EuiNavDrawerGroup
* Quick label fixes
- Removing aria-label if the same as label since the `EuiNavDrawerGroup` takes care of that
- Truncating any recent items to just 64 characters and applying the `title` attribute to display the whole label.
* Adding a truncation buffer
* fix navDrawerRef
* Update to EUI 9.3.0
Also comments out some logos that don’t exist that were throwing console errors
* remove unused import
* typo fix
* One DTS too many in test
* …all the small things…
* Upgrade plugin dependencies and fix nav drawer test
* update for new eui nav drawer
* remove extraAction on flyout
* fix mobile menu toggle
* add i18n for recently reviewed nav link
* progress on updating tests
* replace EuiListGroup with EuiNavDrawerGroup
* Quick label fixes
- Removing aria-label if the same as label since the `EuiNavDrawerGroup` takes care of that
- Truncating any recent items to just 64 characters and applying the `title` attribute to display the whole label.
* Adding a truncation buffer
* fix navDrawerRef
* Update to EUI 9.3.0
Also comments out some logos that don’t exist that were throwing console errors
* remove unused import
* typo fix
* One DTS too many in test
* …all the small things…
* Upgrade plugin dependencies and fix nav drawer test
* Add support for normal image paths
Updated to EUI 9.4.0
* update testing appMenu.clickLink selector
* leave appsMenu closed while reading and clicking links
* use saveVisualizationExpectSuccess to ensure modal is closed before continuing
* Refactor es queries and associated components/endpoints.
* Add unit tests, repair broken tests.
* [Uptime] Add API functional tests for uptime graphQL (#29128)
* Add API functional tests for uptime graphQL.
* Remove obsolete code.
* Add CI group for UI functional tests.
* Delete obsolete code, rename heartbeat es archive.
* Refactor adapter methods.
* Refactor adapter methods.
* Attempt to fix ci-group tag error.
* Skip functional app tests until later PR.
* Remove unused code.
* Optimize test runs.
* Add uptime to api test index.
* Fix formatting.
* Add HB 7.0 data for API tests.
* Configure first error_list test to work with 7.x data.
* Configure error_list filtered by id to work with 7.x data.
* Configure error_list functional tests to work with 7.x data.
* Update snapshot test to work with 7.x data.
* Update snapshot down filtered test to work with 7.x data.
* Configure snapshot up test to work with 7.x data.
* Configure ping list tests to work with 7.x data.
* Configure monitor list tests to work with 7.x data.
* Configure monitor status bar tests to work with 7.x data.
* Configure filterBar tests to work with 7.x data.
* Configure docCount tests to work with 7.x data.
* Simplify code based on PR feedback.
* Add loading spinner to monitor page title based on PR feedback.
* Rename GQL type based on PR feedback.
* Remove use of 'undefined' in ES query based on PR feedback.
* Simplify code based on PR feedback.
* Add definite size/shard_size for terms agg based on PR feedback.
* Simplify ES query based on PR feedback.
* Update x-pack/plugins/uptime/server/lib/adapters/monitors/elasticsearch_monitors_adapter.ts
Implement PR feedback.
Co-Authored-By: justinkambic <justin.kambic@elastic.co>
* Increase size for ES errors query based on PR feedback.
* Fix hardcoded field in terms filter based on PR feedback.
* Simplify get code for monitors function.
* Reduce unnecessarily large size for terms agg based on PR feedback.
* Pluralize filter bar props.
* Refactor filter bar query based on PR feedback.
* Update test.
* Fix busted GQL query.
* Update functional test docs to use data without buggy values.
* Update index name in HB functional api test docs.
* Update snapshot base functional test.
* Make snapshot filter tests pass, fix associated bug.
* Configure remaining snapshot e2e tests to work with 7.x data.
* Give better variable names and comments for ugly code.
* Configure ping list query tests to work with updated 7.x data.
* Rename graphql describe block.
* Update monitor status bar query tests to work with updated 7.x data.
* Update monitor list query tests to work with updated 7.x data.
* Update filter bar query to work with updated 7.x data.
* Update error list query to work with updated 7.x data.
* Update doc count fixture to work with new 7.x data.
* Create functional UI tests for Overview and Monitor pages.
* Add additional waits to functional UI test to try to prevent flakiness.
* [ftr/services/superDatePicker] make specialized service
* Add data-test-subj value to monitor link.
* Remove wait calls from UI tests.
* Set default timezone for tests' kibana server.
* Add @types for mocha and expect.js.
* Implement PR feedback.
* Remove added types.
* Re-add mocha types.
* Remove obsolete comment.
* Disable timestamp on uptime app navigation for functional tests.
* Undo previous change for default value of function parameter.
* Add redirect hack to uptime client to change window location when expected router path is not satisfied.
* [ci/es] base default es version on pkg.branch value
* [ci/env] initialize $TEST_ES_FROM in checkout_sibling_es.sh
* [UA] remove TEST_ES_SNAPSHOT_VERSION override
* [ci/es] call checkout_sibling_es.sh from one location
* [ci] remove unused `--from` param
* [ci/env] always default to snapshots, switch to source when necessary
* [kbn/test] default esFrom to $TEST_ES_FROM
* [ci/setup] fix define order
* [ci/grunt] don't pass --esFrom let env pass through
* [ci/env] use branch, not version
* [ci] use same indent style as following lines
* [kbn/test] apply default values when processing args
* [kbn/test] simplify defaults, read default on each process