* Fix TS
* Rename groupAggregationsBy to groupAndSortBy and adjust TS
* Update unit tests
* Remove fieldParamType from field_filters interface
* Refactoring TS of groupAndSortBy
* Make displayName required since it always be set
* Use field name instead of displayName
* [Code] interrupt clone if disk usage goes above watermark during clone
* minor refactor
* add unit tests
* minor change
* fix type check
* minor fix
* fix test
* [Maps] refactor createShapeFilterWithMeta to support more than just polygons
* rename setPrecision to roundCoordinates
* i18n cleanup
* remove unused file
* review feedback
* split filter create into two functions
* kbn top nav in discover
* New top nav in dashboard and vis editor
* change kbn top nav directive
* Stop using template feature of kbn top nav
* Combined css
* console top nav
* Removed unnecessary use of kbn-top-nav in dev tools app (wrapping tabs)
* Changed console menu to new directive
* CSS adjustments + functional implementation of top nav menu item
* Fixed DevTools top nav toggle
* Optional show-border
* timelion menu works
* Improve filter sorting logic to be more stable
* Support showing filter bar as part of top nav
* Use search bar in top nav in discover and maps
Support search bar with no filter bar (TS)
* tmp revert
* Align search bar settings accross apps
* Reverted change in ML, removed unused css
* Added data test subj to top nav menu items
* Watch config by value
* Some directive magic to make sure that disabledButtons functions are watched correctly.
* Fix missing controls from new top nav in some visualizations
* showAutoRefreshOnly in input controls visualization
* Fixed inspector disabled test
* Fix dashboard action links
rewrite top nav menu item to functional style
* snapshots
* Fixed maps filter bar
* Remvoed comment
* Update Query Bar defaults
* Top nav menu item tests
* Moved storage instantiation to angular directive
* SearchBar jest tests
* Query bar additional tests
* Top nav menu tests
* Pass store into top nav menu correctly
* watch store by reference
* Added not null assertion
* Make index patterns optional (for timepicker only setup)
* QueryBar tests again
* Search bar tests
* Top nav tests
* Top nav menu tests
* removed unnecessary ui/new_platform mock
* Moved discover result count away from top nav
* Moved and improved top nav menu css
* remove unused translations
* 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
* Use index patterns from data plugin itself instead of importing from ui/public
* Pass uiSettings from top level of data plugin
* Pass saved objects client from top level
* query bar input to rely on provided localStorage (?)
* import QueryBarInput correctly from vis ediror
* Query bar input tests - uiSettings
* Query bar - uiSettings tests
* import QueryBar from data plugin correctly
* Use provider to pass config to TSVB query bar inputs
* Add query bar input parms to agg types
* Standardize shape data plugin and use it to pass uiSettings in.
* Removed unnecessary mocks
* Fixed test typo
* Code review part 1
* Code review part 2 - clean up top nav menu item run interface
* Give top nav items better keys
* Simplified top nav construction logic in editor
* Fixed mock of search bar in top nav test
* Moved filter trigger button rendering to helper function
* Remove responsiveness from top nav items
* vertical align for cases where showSearchBarInline is true
(i.e. only menu and time picker in the same row)
* Export TopNavMenuData type
* Removed unused name attribute in top nav. Use app-name instead.
* Minor merge fixes
* Update data plugin shape
* type fixes
* fix core start import
* Fixed tests
* fix another test mock
* Brought back setup.ts for backward compatibility.
Chnaged to relative imports
* bad import from data plugin
* Yet another import :-(
* Code revire #1 @lukeelmers
* create wrapper for QueryBarInput
* use IndexPatterns type
* import order
* Code review fixes
* inject uiSettings into filter-bar directive
* Fix some type errors
* Fixes
* Filter bar context
* ts CoreSetupContextProvider
* Moved coreCOntext to vis_editor constructor
* Reverted filter bar context
* Removed editor html ng-show
* use saved objects contract + check uiSettings
* Adding "style-src 'unsafe-inline' 'self'" to default CSP rules
* Updating jest snapshot
* Fixing api integration smoke test
* Verifying all CSP responses
* Fixing OIDC implicit flow test
* fixing issue with dashboard csv download
* fixing test fixture to match new sort storage format for saved searches
* fixing sort in additional fixtures
* expose createRouter, prepare route handler for context introduction.
* fix tests
* update examples in docs
* update tests
* re-genereated docs
* remove registerRouter from http service contract
createRouter registers a router under the hood. that reduces API surface
for consumers
* address comments
* update docs
* Add Ml link section to management page
* Use job management table in kibana management
* add tabs and breadcrumbs
* link to filtered job manangement table
* Reduce expanded row tabs shown in management table
* add KM job list section styles
* Only anomaly detection jobs tab for now
* wip: adds access denied page
* fix types
* update mlManagement permission check to check license
* update permissions check for manage_ml
* Update permission check to manage_ml
* update privileges key type
* if spaces is disabled or ignoreSpace is true force isMlEnabledInSpace to be true
* remove id from filter on clear
* Commit to allow opening the PR
* Add start of the highlights menu
* Add terms input
* Add a container for highlights state
* Start to hook up highlights state effects, and Bridge with Redux
* Move highlighted logs to a separate graphql field
* Add highlights argument to unit tests
* Add initial draft of a log highlights hook
* Finish hooking up hook state ready for GraphQL query
* Take startKey and endKey from overall collection of log entries
* Add sourceVersion
* Fetch the data
* Use columns ids instead of column indices
* merge highlights into stream WIP
* Add highlighting for the message column type
* Use the serialized filter query
* UX / Performance improvements
* Show a highlight is active
* Focus input when menu is opened
* Icon for highlights menu
* Debounce onChange handler
* Loading state for highlights menu
* Neaten up Provider
* Tweaks
* Breathing room for icon
* Better debounce time for typing
* Menu changes
* Ensure width of popover stays consistent
* Add a button to clear highlights
* Add highlighting for field columns
* Use phrase query for highlighting
While a `phrase_prefix` query feels more natural, it doesn't work on
`keyword` type fields. Using just a `phrase` query keeps the
highlighting consistent between text and keyword type fields.
* Factor out commonly used visibility state
* Fix debounce to support changing onChange prop
* Move clear highlight button inline
* Translate labels
* Rely on popover ownfocus prop to focus the input
* Rename function to avoid i18n checker false positive
* Rough and ready WIP next / previous
* Add `countBefore` and `countAfter` highlight args
* Fix value used
* Add a check for entry
* Rearrange icons
* 0 falsey blurgh
* Organise into separate sub-hooks for clarity
* Add comment
* Use filter and highlight queries also beyond interval
* Refine behaviour of next / previous
* Stops wrapping
* Ensures that when scrolling next / previous takes off where it was left
* Ensures the first highlight is scrolled to when changing highlight term
* Add log highlights api tests
* Fix a few runtime and compiler errors and linter warnings
* Refactor prev/next jumping to avoid index errors
* Use nearest index for initial jump
* Include element type in translation id
* Disable clear button when nothing to clear
* Initial summary highlights state
* Amend component usage
* Comment out load call until query exists
* Add graphql api for summary highlights
* Add the client-side log summary highlight query
* Directly use log view configuration without a bridge
* Rename log entry highlight hook to maintain symmetry
* Re-enable highlight rendering in the minimap
* Keep the time cursor from intercepting clicks
* tweak minimap highlighting colors and interaction
* Clean up after merge
* Remove commented-out code
* Change cursor to hint at minimap highlighting interaction
* Restrict highlight query filter to relevant fields
* Add explanatory error message
* Reflects the changes to transform stats on the ES side in elastic/elasticsearch#45276
* Updated mock __mocks__/data_frame_transform_list_row.json to reflect the new stats structure
* Previously there were stats attributes task_state and indexer_state, now there is only state.
* Renamed DATA_FRAME_TASK_STATE to DATA_FRAME_TRANSFORM_STATE .
* Extended possible states to aborting, failed, indexing, started, stopped, stopping.
* A stopped batch transform's stats no longer returns the progress until it was stopped. Instead of falling back and showing 0% with an empty progress bar, nothing will be shown. If the job is continued and returns progress again, the progress bar will also be shown again.
* The expanded row's details tab now exposes hard-coded stats/state attributes instead of inferring attributes dynamically from objects. This was done so we can do custom formatting for date fields for example.
* [Code] fixed the issue that the repository can not be deleted in some
cases.
* [Code] catch the rejected exception while cancelling the job, and added
a unit test for CancellationService when the promise of the job get
rejected.
* [Code] refined tests for CancellationService by deferred completion of
the promise.
We test each value to determine if it's a file, in which case we move it to the
config directory. This is required to support things like SSL certificates which
are required to be within the ES directory. path.isAbsolute evalues to true for
a regular expression. In order to resolve this, we also verify that the file
exists.
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
* Initial work
* Add check for elasticsearch.hosts
* Make --ssl apply default config values only
* Move @kbn/dev-utils to devDependencies
* Check elasticsearch url for localhost
* Cleanup
* elasticsearch.hosts can be string too
* Fix duplicate fetch in Visualize
* Don't refetch when disabled filters change
* Use query filter fetches observable
* Add back in watch on filters
* Revert change completely
* Update test to include non-disabled filter
* Remove unnecessary checks
* Remove timeout from fetch. Falls back to 30 second timeout on server-side indexing call
* Handle when indexing request is a success but every doc failed
* Return failures array from catch
* Review feedback
* Review feedback
I had previously revised these tests to utilize Jest's toBeCloseTo assertion, because it provides a precision parameter. My understanding when I implemented this test was that it would check n significant digits, so if I ran code like expect(myValue).toBeCloseTo(36000, 3), a value like 36015 would be accepted by the assertion. After seeing this test fail in a flaky way while testing other changes (it failed when myValue === 36001), I researched the function more closely and found that it does not behave this way.
This led me to opt for the current solution, which should help avoid any flakiness issues while continuing to rely on the end-user simplicity of a snapshot. I do not expect a variance greater than 1 when running these tests, so the threshold of 100 should be sufficient to consider these tests stable.