* Add SearchBar UI. Query, filter, and dateRange work
* Sync url with search bar, fix excluded filters on BE
* fix welcome title
* Use KibanaReactContext, fix indexPattern fetch
* Mock data plugin, api and ui tests pass
* Add view and functional tests
* use observables to handle filter updates
* address comments
* Aggregate queue types being used by Beats
* Making tests pass again
* Updating fixture + tests for queue type
* Adding queue field to BeatsBaseStats type
* Add undefined guard
* Adding queue field to source fields list
* Fixing type error
Will need to be touching some of these soon as part of elastic/observability-dev#532 so I'm converting to TypeScript.
Get rid of default exports on all of them as well.
* Using re2 for Timelion's regexs
* Patching native modules
* Restructuring to be more generic
* Fixing download_node_builds_task tests
* Updating linux sha after properly gzipping the archive
* Using a Centos7 machine with devtoolset-6. That's what node does
* Using new archives which Travis built for us
* Not using a standard import to prevent Kibana from not starting up
If the "portable" version of RE2 for some reason isn't truly portable
and can't load, we don't want to prevent the rest of Kibana from working
properly. This will only prevent Timelion from working, which isn't
great, but is less worse
* Isolating the require even further
* Detecting the package version mismatches, thanks Larry!
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Revert "Skip all logstash pipeline tests"
This reverts commit d8aa1fb2da.
* Reenable tests and fix them based on recent changes
* Fix more tests
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Plugin file and services in place. Some redux logic ported
* Port and update index pattern util
* Move reducers over to NP. Update refs in legacy
* Port inspector to NP
* Move some kibana services init to NP. Some cleaning
* Clean up work not related to reducers/store
* Ignore temp imports from NP. Clean up of changes unrelated to this PR
* More cleanup. Check injected vars avab. before calling to handle dashboard case
* Bind embeddables services the same way Maps app services bound. Create function for eventual init in NP
* Call binding from constructor. Fix npStart plugins arg
* Adapt changes from master
* Register inspector views for embeddable. Add NP folder to i18n
* Clean up. Add comments. Move inspector map view registration to NP
* Remove unused inspector files in legacy
* Move full screen action to legacy
* Add in missing tooltip updates
* Review feedback. Update constants and i18n_getters to latest in NP
* Review feedback. Add redundancy comments to common files redundant in legacy and NP
* Remove unneeded copy of parse xml string test in legacy
* Review feedback. Remove redundant portions. Export from NP where possible. General clean up
* Remove remaining refernce and case for 'TOUCH_LAYER'. It's never used
* rebalance x-pack groups
* fix typo in ciGroup10
* move from group 9 to group 5
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
- Replaces the custom KqlFilterBar with Kibana's QueryStringInput. This means the wizard now supports both lucene and kuery input.
- Using this component we no longer need to do cross-imports from the ML plugin. The use of setDependencyCache is no longer necessary.
- Replaces the custom AppDependencies provider code with Kibana's KibanaContextProvider.
* [ML] Typescripting client side endpoint functions
* type clean up
* cleaning up http requests
* remove http generics
* better use of generics and type clean up
* removes some generics
* update comment
* updating data frame analytics types
* fixing type errors
* Refactor: Move checking of closed index to single point
We should rather only check if an index is currently closed the
moment before starting to reindex. We still store a flag to
indicate that we opened an index that was closed, but this
should not be set from the reindex handlers because the reindex
task may only start some time later in which case the closed
index could have been opened and our reindex job will open it
and close it again.
* Added debug log
* Added comment
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [ML] Adding shared services to ml setup contract
* adding data recognizer
* typescripting js client
* adding results service
* code clean up
* adding generic ml index search
* making cloud optional
Crash Kibana in dev/CI if a process warning is detected. This does not
influence how Kibana behaves in production when run via `./bin/kibana`
as there the `--no-warnings` flag is used. We will detect this flag and
as a result, disable this behavior.
Previously we used the flags `--trace-warnings --throw-deprecation` when
you started Kibana via `yarn start` and we used `--throw-deprecation` in
CI. This meant that we would only crash on deprecation warnings and log
a stack trace for all other types of warnings.
There were a couple of drawbacks to this approach:
1. If the deprecated API was called in a place enclosed in a try-catch
(or inside of a Promise or an async/await context), the throw would
be caught and the program would not crash.
2. If you ran `./scripts/kibana` directly instead of running `yarn
start`, you would not get these flags automatically.
3. If you ran any of our tests locally you would not get the standard CI
flags. This meant something that might seem to pass locally would not
pass in CI.
This commit changes this behavior by ensuring:
- That we always crash - no matter if the offending code is surrounded
by a try-catch (etc).
- That you always get the same behavior whether you run `yarn start` or
`./scripts/kibana`.
- That you always get the same behavior in CI or if you run individual
tests locally.
Furthermore, we now crash for all types of warnings - not only
deprecation warnings (except `MaxListenersExceededWarning`).
Closes#59646
* Added app load test for API Keys app
* Fixed linting issues.
* Fixed typecheck issue, edited config to enable API Keys app, and fixed typo in method name.
* Config fix.
* Fixed assertion for API Keys header.
* Added changes per nits on PR.
* Removed API Keys server config from the siem_cypress config since it's defined at the top level. Left a comment saying so.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Old search strategy cleanup
* restore rollup strategy
* Remove hasSearchStategyForIndexPattern
* ts
* fix jest tests
* cleanup exports
* pass index pattern type to server for rollups
* merge fix
* Fix types
* ts fixes
* oss strategy error handling
* update translations
* jest test fix
* Use indexType instead of index
* code review 1
* updated docs
* jest test
* jest snapshot
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>