Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Monitoring] Convert Elasticsearch-related server files that read from _source to typescript #88212

Merged
merged 8 commits into from
Jan 20, 2021

Conversation

chrisronline
Copy link
Contributor

@chrisronline chrisronline commented Jan 13, 2021

Relates to #84370

This PR updates a couple source files used for Elasticsearch monitoring that read from source to using Typescript. This is an attempt to identify all fields read from source to help with #73864

This one is the biggest and some of the fields added to the type definition were sourced directly from UI files (such as https://github.com/elastic/kibana/blob/master/x-pack/plugins/monitoring/public/directives/elasticsearch/ml_job_listing/index.js#L62). I don't have a ton of certainty this is a fool-proof method, but I'm hoping we can find any missing items either through this PR, or when we get the final PR set up on the beats side (which will be easier to test because that PR will cause Metricbeat to only index the fields we told them to)

@chrisronline chrisronline changed the title [Monitoring] Convert Logstash-related server files that read from _source to typescript [Monitoring] Convert Elasticsearch-related server files that read from _source to typescript Jan 13, 2021
@chrisronline chrisronline marked this pull request as ready for review January 19, 2021 15:28
@chrisronline chrisronline requested a review from a team January 19, 2021 15:28
@chrisronline chrisronline self-assigned this Jan 19, 2021
@chrisronline chrisronline added 8.0.0 release_note:skip Skip the PR/issue when compiling release notes review Team:Monitoring Stack Monitoring team v7.12.0 labels Jan 19, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/stack-monitoring (Team:Monitoring)

Copy link
Contributor

@igoristic igoristic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@chrisronline chrisronline merged commit c9002a2 into elastic:master Jan 20, 2021
@chrisronline chrisronline deleted the monitoring/ecs_es branch January 20, 2021 18:49
chrisronline added a commit that referenced this pull request Jan 20, 2021
…m _source to typescript (#88212) (#88892)

* A good chunk of server-side ES changes

* CCR files

* More areas where we just pass down the source to the client

* Some more

* Fix tests

* Fix tests and types
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 review Team:Monitoring Stack Monitoring team v7.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants