Skip to content

Remove graphql types - #54176

Merged
phillipb merged 9 commits into
elastic:masterfrom
phillipb:remove-graphql-types
Jan 9, 2020
Merged

phillipb merged 9 commits into
elastic:masterfrom
phillipb:remove-graphql-types

Conversation

@phillipb

@phillipb phillipb commented Jan 7, 2020 •

Copy link
Copy Markdown
Contributor

Summary

Since we no longer use graphql on the backend, this PR refactors all code that references graphql types to point to our own io-ts types. This PR strips out all of the graphql references, except for references to the source configuration, log highlighting, and the schemas. Once we get source config off of graphql, we should strong consider deleting the schemas and the type files, so that no one is confused and accidentally imports the wrong type in the future. Fixes: #52950.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

@phillipb
phillipb requested a review from a team as a code owner January 7, 2020 18:41
@phillipb phillipb added v7.6.0 v8.0.0 release_note:enhancement Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services labels Jan 7, 2020
@elasticmachine

Copy link
Copy Markdown
Contributor

Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui)

@phillipb

phillipb commented Jan 7, 2020

Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@simianhacker
simianhacker self-requested a review January 8, 2020 17:57
@phillipb

phillipb commented Jan 8, 2020

Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@simianhacker simianhacker left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There are a few more places where we can replace InfraMetricData with NodeDetailsMetricData:

x-pack/legacy/plugins/infra/public/pages/metrics/components/helpers.ts
x-pack/legacy/plugins/infra/public/pages/metrics/components/page_body.tsx
x-pack/legacy/plugins/infra/public/pages/metrics/containers/with_metrics.tsx
x-pack/legacy/plugins/infra/public/pages/metrics/types.ts
x-pack/legacy/plugins/infra/server/lib/domains/metrics_domain.ts

Everything else looks good.

@kibanamachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

History

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

@phillipb
phillipb requested a review from simianhacker January 9, 2020 17:47

@simianhacker simianhacker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@phillipb
phillipb merged commit 32e6159 into elastic:master Jan 9, 2020
@phillipb
phillipb deleted the remove-graphql-types branch January 9, 2020 23:10
phillipb added a commit to phillipb/kibana that referenced this pull request Jan 9, 2020
* Fix server types

* Remove graphql types from the frontend

* More type cleanup

* Replace more types. Delete unused files

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@simianhacker simianhacker added the Feature:Metrics UI Metrics UI feature label Jan 10, 2020
phillipb added a commit that referenced this pull request Jan 14, 2020
* Fix server types

* Remove graphql types from the frontend

* More type cleanup

* Replace more types. Delete unused files

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
* Fix server types

* Remove graphql types from the frontend

* More type cleanup

* Replace more types. Delete unused files

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Metrics UI Metrics UI feature release_note:enhancement Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.6.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Metrics UI] Remove obsolete GraphQL Types

4 participants