* Initial work to auto cleanup old API keys
* Fix ESLint error
* Rename confusing variables
* Add test to ensure thrown errors are swallowed
* Add more tests
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Scaffold `log_entries/entries` route
* Scaffold a log entry response
* Add `after` pagination
* Add `before` pagination
* Process `query` parameter
* Use pre-existing structure for the columns
* Change type of date ranges
We will move the responsibility to parse the dates to the client. The
API will only take timestamps
* Add `center` parameter
Allows consumers of the API to get log items around a certain cursor
* Change default page size
* Test the defaults of the API
* Add optional `size` parameter
This makes easier to test the pagination. By default it returns a 200
size page.
* Test the pagination
* Test centering around a point
* Handle `0` sizes
Co-Authored-By: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
* Add highlights endpoint
* Refactor `processCursor`
* Tweak cursor handling in the routes
* Refine `LogEntry` type
* Add tests for highlights endpoint
* Tweak the types for the LogEntry
Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
When users are writing UI's they need to see when an alert was created and when it was last updated, to this end we've added these two fields on the alert type.
* Move index patterns: src/legacy/core_plugins/data 👉 src/plugins/data
Closes: #43444
Make sure that all index pattern related imports use NP (and delete index_pattern folder from shim)
* fix JEST tests
* fix CI
* fix PR comments
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
- make the level param optional, defaults to info
- change the actions logger "tag" from "alerting" to "actions"
- remove control characters from message
* Delete uptime eslint rules.
* Update hooks usage to adhere to new eslint rules.
* Delete code accidentally added during rebase.
* WIP trying things.
* Clean up types and hook usage to comply with kibana eslint rules.
* Clean up code.
* Update new useEffect hooks that are missing dependencies.
* Fix edits that broke a page.
* add react router to endpoint app
* linting
* linting
* linting
* correct tests
* change history from hash to browser, add new test util
* remove default values in helper functions
* fix type check, use FunctionComponent as oppsed to FC
* use BrowserRouter component
* use BrowserRouter component lin
* add comments to test framework, change function name to include browserHistory
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Remove punctuation from translation
We already had a colon on both uses of this key, resulting in '::' on
the page.
* Ignore 409 errors from our signal creation
In my experience these are always due to a rule being run multiple times
on the same document, generating a duplicate signal with a (correctly)
duplicate id. Only if we encounter non-409 errors do we log a message to
the user.
* Hide 409 errors during signal creation
These are expected and potentially confusing to the user. Instead, we
only show unexpected errors.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [Maps] pull ES_SIZE_LIMIT and top hits limit from index settings
* get fetch working
* get min values from indicies response
* use indexSettings.maxResultWindow in documents request size
* use max_inner_result_window to define top hits max
* update jest test
* update docs
* more docs changes for top hits
* fix line spacing
* Update docs/maps/maps-aggregations.asciidoc
Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>
* Update docs/maps/vector-layer.asciidoc
Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>
* add api integration test for indexSettings route
* eslint fixes
* review feedback
* display toast on first index settings fetch failure
* clean up
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* update dfAnalytics routes to use np router
* add route schemas and only show error message
* convert route file to ts and set handlers inline
* update df analytics param type
* update mlClient type and assert mlClient is not null
* handle errors correctly
* ensure error status gets passed correctly to wrapper
As we recently added react-use as a dependency, makes sense to clean up those generic hooks from Kibana repo.
Removed custom hooks from kibana_react and other places:
useObservable
useUnmount
useShallowCompareEffect
react-use should be used instead:
import useObservable from 'react-use/lib/useObservable'
* Add kibanamachine support to Github PR comments
* Temporary commit for quick successful pipeline
* Only delete the last comment if it was made by kibanamachine
* Revert "Temporary commit for quick successful pipeline"
This reverts commit d31f579697.
* Removing componentWillReceiveProps from time filter
* Changing expression form to componentDidUpdate
* Updating expression to be key-driven updates and arg_types to use compomentDidUpdate
* temporary
* Revert "temporary"
This reverts commit 255525d65f.
* typo fix
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Possibility to filter when testing scripted fields
* Possibility to filter when testing scripted fields
* Now the i18n test should pass
* use SearchBar instead of EuiFieldText input
* clean up
* test script design improvement
* Fixed SearchBar reference and updated the help_flyout tests
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
Co-authored-by: Elizabet Oliveira <elizabet.oliveira@elastic.co>
* remove use of experimental fs.promises api
* remove one more usage of fs.promises
* switch to an alternate fs module to maintain testing strategy
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Adding unit test for new functionality
Fixing type error
Removing unnecessary act statements
Removing unnecessary assertion
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>