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

[Logs UI / Metrics UI] New Platform migration server followups #51615

Merged
merged 103 commits into from
Dec 17, 2019

Conversation

Kerry350
Copy link
Contributor

@Kerry350 Kerry350 commented Nov 25, 2019

⚠️ ⚠️ ⚠️ This contains all of the commits of #45299 and shouldn't be reviewed until that is merged

Summary

This is currently a WIP, but open for visibility.

This is a followup PR to #45299, and contains changes that were important, but not blockers in getting the other PR merged.

  • Adds types for plugin dependencies where possible (0a40478)
  • Fully converts Metrics Explorer to using io-ts. This reinstates validation for the Metrics Explorer API which was temporarily disabled (6748dab).
  • Exposes our public contract, for other plugins to consume, via the setup() method return statement (a918f08) (This isn't used yet, but it just gets us ready for when we move 100% to the NP world / directory).
  • Adds a kibanaVersion property to the kibana.json manifest for the Infra plugin (b9cb4ee).

The changeset here looks a lot bigger than it realistically is. The vast majority of the changes relate to the io-ts conversion for Metrics Explorer. As some of the enums have changed to string unions a lot of files were touched, but for minimal changes.

For testing this PR, please ensure the Metrics portions of the UI still work as expected.

(@elastic/apm-ui have been automatically requested for review as I've removed a comment from an APM file that we left behind in the big migration PR.)

@elasticmachine
Copy link
Contributor

💔 Build Failed

@Kerry350 Kerry350 requested a review from a team December 9, 2019 12:25
@Kerry350 Kerry350 added v7.6.0 v8.0.0 Feature:Logs UI Logs UI feature Feature:Metrics UI Metrics UI feature release_note:skip Skip the PR/issue when compiling release notes labels Dec 9, 2019
@Kerry350 Kerry350 marked this pull request as ready for review December 9, 2019 12:29
@Kerry350 Kerry350 requested a review from a team as a code owner December 9, 2019 12:29
Copy link
Member

@simianhacker simianhacker left a comment

Choose a reason for hiding this comment

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

Everything looks good. The only thing that stuck out to me is around the aggregation type. It seems like we are defining that list several times so I added some suggestions to try and reduce that some. If you want to just move forward with what you have, just submit for review again and I will approve.

Copy link
Member

@jasonrhodes jasonrhodes left a comment

Choose a reason for hiding this comment

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

I like Chris's dedupe suggestions but otherwise this LGTM

@@ -54,10 +54,6 @@ export function getApmIndicesConfig(config: APMConfig): ApmIndicesConfig {
};
}

// export async function getApmIndices(context: APMRequestHandlerContext) {
Copy link
Member

Choose a reason for hiding this comment

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

lol sorry, I think this was my fault -- thanks for the clean up :) <3

@Kerry350
Copy link
Contributor Author

@simianhacker Thanks for the review and suggestions. I was going to do these in a followup, but they didn't take very long so I've added them in 2139171. If you're happy and can approve I'll merge this 👍

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

History

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

@simianhacker simianhacker self-requested a review December 17, 2019 17:57
Copy link
Member

@simianhacker simianhacker left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Logs UI Logs UI feature Feature:Metrics UI Metrics UI feature release_note:skip Skip the PR/issue when compiling release notes v7.6.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants