* inOneOf --> hasAtLeast. to follow to licensing hierarchical model
* adopt licensing tests
* add license mock and use it in the tests
* adopt security plugin to hasAtLeast and licensing mocks
* adopt uptime to hasAtLeast
* update readme
* add test for unknown license
* fix import in js test
* fix security plugin merge conflict
* Update x-pack/plugins/security/common/licensing/license_service.ts
Co-Authored-By: Larry Gregory <lgregorydev@gmail.com>
* Update x-pack/plugins/licensing/common/types.ts
Co-Authored-By: Josh Dover <me@joshdover.com>
* simplify tests
* remove unused import
* update build scripts to not set inline source-maps for code coverage run
* [ftr] browser console log processing cleanup
* get last coverage piece directly via webdriver
* more cleanup
* review feedback
* Shim input_control_vis
* Convert input_control_vis src files to typescript
* Add Required, Optional, Required and Class types to kbn-utility-types
* Collect all ui/* imports into legacy imports file
* Pass down plugin deps from top level
* Add timeout and terminate_after options to SearchSourceFields
* Workflow configurations to assign issues and PRs with Team:AppArch label to kibana-app-arch project
* Fix a typo in the label name
* Remove merge conflicts
Follow up from the #52727 in Task Manager, we want Alerting and Task Manager to align on their schedule api (in the near future, Alerting will actually use Task manager's schedule system to remove this duplication).
* [Maps] gather field formatters in data request so they can be used sync in vector_style
* review feedback
* hasMatchingMetricField
* review feedback
* fix typo in function name
* [APM] Add version annotations to timeseries charts
Closes#51426.
* Don't subdue 'Version' text in tooltip
* Optimize version queries
* Don't pass radius/color to indicator
* Draft RFC for unblocking plugin lifecycle methods
* Draft RFC for unblocking kibana startup
* Rename rfc from 0006 to 0007
* Add references to TC39 top-level await
* Update with review suggestion
Co-Authored-By: Court Ewing <court@epixa.com>
* Update RFC#0007
* Apply suggestions from code review
Co-Authored-By: Aleh Zasypkin <aleh.zasypkin@gmail.com>
* Address review comments from @joshdover and @azasypkin
1. Fleshed out motivation, this RFC doesn't prevent errors, but isolates the
impact on the rest of Kibana.
2. Added a footnote explaining that sync lifecycles can still block on sync
for loops, so it's not a perfect guarantee (from @azasypkin).
3. Updated IContextProvider type signature in (2) to match latest master
4. Dynamically reloading configuration changes should be limited to a
whitelist, risky changes like the Elasticsearch host should still require a
complete restart. Added to (3) based on
https://github.com/elastic/kibana/pull/45796#discussion_r331277153
5. Added Section 5, "Core should expose a status signal for Core services &
plugins" (from @joshdover)
6. Added the drawback that incorrect, but valid config would not block Kibana,
and might only be surfaced when the associted API/UI gets used (from
@azasypkin)
* Formatting: number ordered list instead of letter for github rendering
* Apply suggestions from code review
Co-Authored-By: Josh Dover <me@joshdover.com>
* Update rfcs/text/0007_lifecycle_unblocked.md
Co-Authored-By: Josh Dover <me@joshdover.com>
* Example of plugin exposing API dependent on internal async operation
* Clarify that context providers won't block kibana, just their handlers
* Update adoption strategy as per latest discussion
* Fix formatting
Adds the new `--direct_html` argument while building the docs to line up
with the change in the global docs build made by elastic/docs#1645. This
cuts the time to build the docs in half.
* migrating nav control to NP
* move licensing service to common
* only retrieve user when necessary
* don't block rendering on user promise
* testing nav control registration
* moving logic to nav_control_service
* register account management in a hack
* update import location
* updating license_service to manage its own subscription to the raw license
* updating mock
* update editProfileUrl to not require full page reload if already within the kibana app
* alternate security license proposal
* adds popover test.
* switchMap -> map
* additional test case.
* Apply suggestions from code review
Co-Authored-By: Aleh Zasypkin <aleh.zasypkin@gmail.com>
* additional testing
* fix merge from master
* fixing es availability check
* fix merge from master
* switch from deprecated route
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Scaffold `/logs/summary` endpoint
* Use HTTP API for the log summary
* Handle queries in log summary
* Simplify `useLogSummary` implementation
* Scaffold `/logs/summary/highlights` API
* Use HTTP endpoint for log summary highlights
* Tweak `highlightTerms`
* Deduplicate ES queries for summary endpoints
* Clean GraphQL implementation
* Make tests pass
* Handle server errors
* Pass source to the API
* Cleanup tests
* Future-proof response types
Wrap the existing response into a `{ data: ... }` object to allow adding
metadata in the future.
* Refactor tests with `@testing-library/react-hooks`
* Adapt endpoint to NP
* Tweak types in the test
* Split API methods into separate files
* Flatten highlights API
* Restructure `common/http_api/logs` folder
We will group relevant codecs and types into `log_entries`, splitting
summary and summary_highlights as two individual concepts.
* Reorganize route files
* Resurrect changes in `server/lib/{adapter,domain}`
Replace some of the exported types from GraphQL with io-ts codecs
* Wire the route with the domain library
* Remove dead types
* Clean up test file
* Fix merge mishap
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Instrument Kibana with APM RUM agent
* make route-change transaction work with properl url
* extract page-load transaction url from app link
* check if app is hidden and set active:false
* make distributed tracing work and merge config
* remove config/apm.js and address review
* address review comments
* add apm.js to build tassks
* move apm from dev to src
* add @types/hoist-non-react-statics which is required by react rum
* apply changes correctly from master
* Add back in np licensing changes previously pulled out of a separate pr
* Watch license service and update local kibana service const obj. on change. Import new license id in meta
* Update flow for initializing indexPatternServices while in this file
* Clean up setup method. Add conditional subscribe of licensing
* Review feedback. Use license getter instead of obj
* Revert "Update flow for initializing indexPatternServices while in this file"
This reverts commit 022f7ddb87.
* Update meta test
* Move a REST endpoint and the GQL endpoint to NP routing.
* Delete obsolete REST endpoint.
* Update remaining REST routes to work with NP router.
* Remove obsolete code, update some unit tests.
* Simplify route creation.
* Remove tests of API decommissioned API endpoint.
* Rename domain check.
* Make return shape of index pattern endpoint correspond to required NP resp body.
* Move validate to appropriate level of route definition object for monitor details endpoint.
* Update snapshot count route.
* Fix broken lint rule.
* Move a REST endpoint and the GQL endpoint to NP routing.
* Update remaining REST routes to work with NP router.
* Update remaining REST routes to work with NP router.
* Refactor query functions to accept new es client from request contexts.
* WIP updating framework adapter.
* Refactor remaining routes/resolvers to remove usage of legacy Elasticsearch client.
* Fix broken unit tests.
* Fix incorrect user usage for a REST endpoint.
* Fix some broken imports and types.
* Port monitor details REST endpoint to NP.
* Remove some merge errors.
* Update adapters to take a single options parameter.
* Update broken test files.
* Resolve typescript warnings.
* Update resolver types.
* Change GraphQL interface name for es client.
* Delete unused code and fix incorrect type.
* Rename type for REST endpoint creators.
* Nest message values in body object for invalid response messages.
* Reorganize a file and clean up some types.
* Add wrapper function to reduce boilerplate route code.