Pierre Gayvallet
a02c00b8a3
Change ContextContainer to lazily initialize providers ( #129896 )
...
* Change ContextContainer to lazily initialize providers
* Introduce CustomRequestHandlerContext, start adapting usages
* adapt IContextProvider's return type
* start fixing violations
* fixing violations - 2
* adapt home routes
* fix remaining core violation
* fix violations on core tests
* fixing more violations
* fixing more violations
* update generated doc...
* fix more violations
* adapt remaining RequestHandlerContext
* fix more violations
* fix non-async method
* more fixes
* fix another await in non async method
* add yet another missing async
* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'
* add yet yet another missing async
* update fleet's endpoints
* fix telemetry endpoints
* fix event_log endpoints
* fix some security unit tests
* adapt canvas routes
* adapt alerting routes
* adapt more so_tagging routes
* fix data_enhanced routes
* fix license_management routes
* fix file_upload routes
* fix index_management routes
* fix lists routes
* fix snapshot_restore routes
* fix rule_registry routes
* fix ingest_pipelines routes
* fix remote_clusters routes
* fix index_lifecycle_management routes
* improve and fix the lazy implementation
* fix triggers_actions_ui endpoints
* start fixing unit tests
* fix cases routes
* fix transform routes
* fix upgrade_assistant routes
* fix uptime route wrapper
* fix uptime route wrapper bis
* update osquery routes
* update cross_cluster_replication routes
* fix some ML routes / wrappers
* adapt maps routes
* adapt rollup routes
* fix some canvas unit tests
* fix more canvas unit tests
* fix observability wrapper
* fix (?) infra type hell
* start fixing monitoring
* fix a few test plugins
* woups
* fix yet more violations
* fixing UA tests
* fix logstash handlers
* fix fleet unit tests
* lint?
* one more batch
* update security_solution endpoints
* start fixing security_solution mocks
* start fixing security_solution tests
* fix more security_solution tests
* fix more security_solution tests
* just one more
* fix last (?) security_solution tests
* fix timelion javascript file
* fix more test plugins
* fix transforms context type
* fix ml context type
* fix context tests
* fix securitySolution withEndpointAuthz tests
* fix features unit tests
* fix actions unit tests
* fix imports
* fix duplicate import
* fix some merge problems
* fix new usage
* fix new test
* introduces context.resolve
* down the rabbit hole again
* start fixing test type failures
* more test type failures fixes
* move import comment back to correct place
* more test type failures fixes, bis
* use context.resolve for security solution rules routes
* fix new violations due to master merge
* remove comment
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-04-22 13:15:58 +02:00
spalger
3730dd0779
fix all violations
2022-04-16 01:37:30 -05:00
Anton Dosov
b8a7370156
[Search] Add cancelation logic to search example ( #118176 )
2021-11-30 12:35:07 +01:00
Spencer
4385ac4d83
[eslint] enable type-specific lint rules ( #114184 )
...
* [eslint] enable type-specific lint rules
* autofix violations
* duplicate eslint-disable to new export statement
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-03 16:56:17 -06:00
Tyler Smalley
4681a80317
[DX] Upgrade prettier to v2.4.0 ( #112359 )
...
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-09-19 22:34:30 -07:00
Lukas Olson
7617642bba
Add partial results to search examples demo ( #96366 )
...
* Add partial results to search examples demo
* Add functional test
* Move types into separate file and separate custom strategies
* Review feedback
* Update test
* Try to fix test
* Attempt to fix test
* Try to fix observable error
* Sanity check
* Fix test
* Another attempt
* Remove rxjs from strategy
2021-05-11 12:41:21 -07:00
Liza Katz
c187270b5e
[Search Sessions] Client side search cache ( #92439 )
...
* dev docs
* sessions tutorial
* title
* Update dev_docs/tutorials/data/search.mdx
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Update dev_docs/tutorials/data/search.mdx
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Update dev_docs/tutorials/data/search.mdx
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Update dev_docs/tutorials/data/search.mdx
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Update dev_docs/tutorials/data/search.mdx
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Update dev_docs/tutorials/data/search.mdx
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Update dev_docs/tutorials/data/search.mdx
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Update dev_docs/tutorials/data/search.mdx
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Update dev_docs/tutorials/data/search.mdx
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Update dev_docs/tutorials/data/search.mdx
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Update dev_docs/tutorials/data/search.mdx
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Update dev_docs/tutorials/data/search.mdx
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Update dev_docs/tutorials/data/search.mdx
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Update dev_docs/tutorials/data/search.mdx
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Update dev_docs/tutorials/data/search.mdx
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Update dev_docs/tutorials/data/search.mdx
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Update dev_docs/tutorials/data/search.mdx
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Update dev_docs/tutorials/data/search.mdx
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Update dev_docs/tutorials/data/search.mdx
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Update dev_docs/tutorials/data/search.mdx
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Update dev_docs/tutorials/data/search.mdx
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Update dev_docs/tutorials/data/search.mdx
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Code review
* client cache
* mock utils
* improve code
* Use cacheOnClient in Lens
* mock
* docs and types
* unit tests!
* Search response cache + tests
* remove cacheOnClient
evict cache on error
* test ts
* shouldCacheOnClient + improve tests
* remove unused
* clear subs
* dont unsubscribe on setItem
* caching mess
* t
* fix jest
* add size to bfetch response @ppisljar
use it to reduce the # of stringify in response cache
* ts
* ts
* docs
* simplify abort controller logic and extract it into a class
* docs
* delete unused tests
* use addAbortSignal
* code review
* Use shareReplay, fix tests
* code review
* bfetch test
* code review
* Leave the bfetch changes out
* docs + isRestore
* make sure to clean up properly
* Make sure that aborting in cache works correctly
Clearer restructuring of code
* fix test
* import
* code review round 1
* ts
* Added functional test for search request caching
* test
* skip before codefreeze
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-16 19:59:23 +03:00
Brandon Kobel
4584a8b570
Elastic License 2.0 ( #90099 )
...
* Updating everything except the license headers themselves
* Applying ESLint rules
* Manually replacing the stragglers
2021-02-03 18:12:39 -08:00
Lukas Olson
a9273ca001
[data.search] Add search session methods to search service contract ( #87966 )
...
* [data.search] Add search session methods to search service contract
* Fix types
* Fix tests and switch to cancel
* Update docs
* Fix types/tests
* Fix tests
* Update status of SO before cancelling search requests
* Add API integration test
* Fix types
* Update expiration route to use config defaultExpiration
* Fix test
* Update docs
* New logic for extend
* Remove declare module
* Review feedback
* fix ts
* Remove test that is no longer valid
* Fix undefined bug
* Use DataRequestHandlerContext in maps
* ts
Co-authored-by: Liza K <liza.katz@elastic.co>
2021-02-03 08:08:54 -07:00
Mikhail Shustov
b3a9754394
[Core] Explicit typings for request handler context ( #88718 )
...
* move context to server part. couple with RequestHandlerContext
Context implementation will be simplified in follow-up.
* adopt core code
* adopt bfetch code
* adopt data code
* adopt search examples
* adopt vis_type_timelion
* adopt vis_type_timeseries
* adopt plugin functional tests
* adopt actions
* adopt alerting plugin
* adopt APM plugin
* adopt beats_management
* adopt case plugin
* adopt cross_cluster_replication
* adopt data_enhanced
* adopt event_log
* adopt global_search
* adopt index_management
* adopt infra
* adopt licensing
* adopt lists
* adopt logstash
* adopt reporting
* adopt observability
* adopt monitoring
* adopt rollup
* adopt so tagging
* adopt security
* adopt security_solutions
* adopt watcher
* adopt uptime
* adopt spaces
* adopt snapshot_restore
* adopt features changes
* mute error when null used to extend context
* update docs
* small cleanup
* add type safety for return type
* refactor registerRouteHandlerContext type
* update docs
* update license header
* update docs
* fix type error. fetch body does not accept array of strings
* fix telemetry test
* remove unnecessary ts-ignore
* address comments
* update docs
2021-01-21 15:20:22 +01:00
Brandon Kobel
170a2956c8
Updating the License ( #88343 )
...
* Updating the Licenses, except for applying eslint, building
* Applying ESLint rules,building @kbn/pm, regenerating api docs
2021-01-19 17:52:56 -08:00
Lukas Olson
44368b0b66
[data.search] Add request handler context and asScoped pattern ( #80775 )
...
* [Search] Add request context and asScoped pattern
* Update docs
* Unify interface for getting search client
* Update examples/search_examples/server/my_strategy.ts
Co-authored-by: Anton Dosov <dosantappdev@gmail.com>
* Review feedback
* Fix checks
* Fix CI
* Fix security search
* Fix test
* Fix test for reals
* Fix types
Co-authored-by: Anton Dosov <dosantappdev@gmail.com>
2020-11-04 11:58:15 -07:00
Alexey Antonov
1d1c3c7ef3
[Step 1] use Observables on server search API ( #79874 )
...
* use Observables on server search API
* fix PR comments
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-13 16:47:23 +03:00
Liza Katz
689e1e32f1
[Search] Error notification alignment ( #77788 )
...
* OSS error alignemnt
* Adjust error messages in xpack
* Add getErrorMessage
* Use showError in vizualize
Add original error to expression exception
* Cleanup
* ts, doc and i18n fixes
* Fix jest tests
* Fix functional test
* functional test
* ts
* Update functional tests
* Add unit tests to interceptor and timeout error
* expose toasts test function
* doc
* typos
* review 1
* Code review
* doc
* doc fix
* visualization type fix
* fix jest
* Fix xpack functional test
* fix xpack test
* code review
* delete debubg flag
* Update texts by @gchaps
* docs and ts
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 18:33:48 +03:00
Liza Katz
0e1796acc5
[Search] Generic search request and response types ( #78268 )
...
* Improve search types to support EQL strategy
* doc
* Update types.ts
* update demo strategy
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-24 18:59:27 +03:00
Liza Katz
506e9537bf
[Search] Server strategy example ( #71679 )
...
* Server strategy example
* Add tsconfig
Renamed is_partial to isPartial
Added isPartial and isRunning to OSS response type
* Docs + remove unused sample code
* Fix test naming of arguments
* ts
* ts fix
* Add filters and query input selector
* Update examples/search_examples/public/components/app.tsx
Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
* Use new service
* exapmle plugin ts
* unsubscribe + use timefilter
* typo
* docs
* Add comments and use agg config
* Added agg configs
Added field selector
Added a custom input param
* Adding getEsQuery to query service (??)
* Add server side example
* docs
* caps
* list plugin in examples page
* fix typo
* Update examples/search_examples/public/application.tsx
Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
* Update examples/search_examples/public/application.tsx
Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
* Update examples/search_examples/public/components/app.tsx
Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
* Update examples/search_examples/public/components/app.tsx
Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
* Update examples/search_examples/public/components/app.tsx
Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
* eslint
Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-11 23:28:43 +03:00