Skip to content

Conversation

@shahzad31
Copy link
Contributor

@shahzad31 shahzad31 commented Oct 29, 2020

Summary

Fixes: #81992

Major changes are happening in tests, otherwise more or less wrappers are working the same way.

Biggest change is instead of a signatue like callEs('search', params)

Now it's like

callEs.search(params)

Also full es result is returned instead of just body.

@shahzad31 shahzad31 marked this pull request as ready for review November 2, 2020 08:57
@shahzad31 shahzad31 requested a review from a team as a code owner November 2, 2020 08:57
@shahzad31 shahzad31 self-assigned this Nov 2, 2020
@shahzad31 shahzad31 added v7.11.0 v8.0.0 release_note:skip Skip the PR/issue when compiling release notes labels Nov 2, 2020
@botelastic botelastic bot added the Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability label Nov 2, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

@shahzad31 shahzad31 requested a review from Kerry350 November 4, 2020 11:15
@Kerry350
Copy link
Contributor

Kerry350 commented Nov 4, 2020

I think I've tested all of the functionality in Uptime, and everything seems to be working well. Code looks okay too. There's a lot of changes here, so I don't know if you want to get a secondary look, but otherwise this LGTM, good job 🎉

@shahzad31
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

async chunks size

id before after diff
uptime 1.1MB 1.1MB +159.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@shahzad31 shahzad31 merged commit a6b2a6e into elastic:master Nov 6, 2020
@shahzad31 shahzad31 deleted the new-es-client branch November 6, 2020 18:05
shahzad31 added a commit to shahzad31/kibana that referenced this pull request Nov 6, 2020
* migrate to new es client

* fix tests

* fix type

* types

* types

* update

* update

* update

* upadte

* update snaps

Co-authored-by: Kibana Machine <[email protected]>
shahzad31 added a commit that referenced this pull request Nov 6, 2020
* migrate to new es client

* fix tests

* fix type

* types

* types

* update

* update

* update

* upadte

* update snaps

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
gmmorris added a commit to gmmorris/kibana that referenced this pull request Nov 9, 2020
* master: (68 commits)
  [Fleet] Make stream id unique in agent policy (elastic#82447)
  skip flaky suite (elastic#82915)
  skip flaky suite (elastic#75794)
  Copy `dateAsStringRt` to observability plugin (elastic#82839)
  [Maps] rename connected_components/map folder to mb_map (elastic#82897)
  [Security Solution] Fix EventsViewer DnD cypress tests (elastic#82619)
  [Security Solution] Adds logging and performance fan out API for threat/Indicator matching (elastic#82546)
  Implemented Alerting health status pusher by using task manager and status pooler for Kibana status plugins 'kibanahost/api/status' (elastic#79056)
  [APM] Adds new configuration 'xpack.apm.maxServiceEnvironments' (elastic#82090)
  Move single use function in line (elastic#82885)
  [ML] Add unsigned_long support to data frame analytics and anomaly detection (elastic#82636)
  Add flot_chart dependency from shared_deps to Shareable Runtime (elastic#81649)
  [Security Solution][Detections] - Auto refresh all rules/monitoring tables (elastic#82062)
  [APM] Fix apm e2e runner script commands (elastic#82798)
  [Ingest Manager] Move cache functions to from registry to archive (elastic#82871)
  Update webpack-dev-server and webpack-cli (elastic#82844)
  [Uptime] Migrate to new es client (elastic#82003)
  Move parseAndVerify* functions to validation.ts (elastic#82845)
  Remove yeoman & yo (elastic#82825)
  [Canvas] Fix elements not being updated properly when filter is changed on workpad (elastic#81863)
  ...
@TinaHeiligers
Copy link
Contributor

@shahzad31 Is there any reason you didn't migrate the usage_collector to use the new elasticsearch client rather than the legacy client in this work? The new client was already available from a collector's fetch context before you merged this work.

I'm trying to work my way through refactoring what's needed in the uptime collector implementation for #83910 but I might hit a few gotcha's.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.11.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Uptime] Migrate es legacy client to new es client

5 participants