Skip to content

[Telemetry] Migrate ui_metric plugin to NP under usageCollection - #51972

Merged
Bamieh merged 37 commits into
elastic:masterfrom
Bamieh:telemetry/ui_metric_to_usage_collection
Dec 13, 2019
Merged

Bamieh merged 37 commits into
elastic:masterfrom
Bamieh:telemetry/ui_metric_to_usage_collection

Conversation

@Bamieh

@Bamieh Bamieh commented Dec 2, 2019 •

Copy link
Copy Markdown
Contributor

Summary

Migrates ui_metric to New platform

  • Move ui_metric under usage_collection plugin.
  • Remove legacy ui_metric plugin code.
  • Add new_platform mocks for NP ui_metrics
  • Add karma mocks for NP ui_metrics
  • Fix any failing tests

Dev Docs

Migrates ui_metrics to NP under usageCollection.

@Bamieh Bamieh added Feature:New Platform Feature:Telemetry release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. v7.6.0 v8.0.0 labels Dec 2, 2019
@Bamieh
Bamieh marked this pull request as ready for review December 9, 2019 15:50
@Bamieh
Bamieh requested a review from a team December 9, 2019 15:50
@Bamieh
Bamieh requested a review from a team as a code owner December 9, 2019 15:50
@Bamieh
Bamieh requested a review from a team as a code owner December 10, 2019 20:09

@sorenlouv sorenlouv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

APM changes lgtm

@Bamieh

Bamieh commented Dec 11, 2019

Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@Bamieh Bamieh changed the title Telemetry/ui metric to usage collection [Telemetry] Migrate ui_metric plugin to NP under usageCollection Dec 11, 2019
@elastic elastic deleted a comment from elasticmachine Dec 11, 2019
@Bamieh

Bamieh commented Dec 12, 2019

Copy link
Copy Markdown
Contributor Author

waiting on this PR to get merged first before merging mine: #52251

To resolve renaming configs issue between legacy and NP plugins.

…Bamieh/kibana into telemetry/ui_metric_to_usage_collection
@Bamieh
Bamieh requested a review from a team as a code owner December 13, 2019 14:22
@Bamieh
Bamieh removed request for a team December 13, 2019 14:23

@TinaHeiligers TinaHeiligers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A few nits and comments, otherwise the code looks good.
I'm doing a smoke test in Chrome and will re-review once that's done.

Comment thread src/plugins/usage_collection/public/services/create_reporter.ts Outdated
Comment thread src/plugins/usage_collection/public/services/create_reporter.ts Outdated
Comment thread src/plugins/usage_collection/public/services/create_reporter.ts Outdated
Comment thread src/plugins/usage_collection/server/config.ts Outdated
Comment thread src/plugins/usage_collection/server/plugin.ts Outdated
Comment thread src/plugins/usage_collection/server/plugin.ts Outdated
Comment thread src/plugins/usage_collection/server/routes/report_metrics.ts
Comment thread src/plugins/usage_collection/server/store_report.ts
Comment thread src/plugins/usage_collection/server/plugin.ts Outdated
@Bamieh
Bamieh requested a review from TinaHeiligers December 13, 2019 18:21

@TinaHeiligers TinaHeiligers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The code changes look good and make the types much clearer. Thanks for giving the default max wait time for all collectors such a descriptive name, it'll be very obvious now!
I also ran a test in Chrome and Safari and the move of the ui_metric code works as expected.
LGTM!

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

History

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

@Bamieh
Bamieh merged commit 3658220 into elastic:master Dec 13, 2019
@Bamieh
Bamieh deleted the telemetry/ui_metric_to_usage_collection branch December 13, 2019 19:41
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
…tic#51972)

* move cloud dir to plugins from legacy

* create ui_metrics in NP

* migrate first plugin

* ui_metric plugin uses npStart

* sinin mock

* karma mocks

* type check fix

* rename old configs

* fix mocks and use configs

* use  fo debug

* ui_metric deprecation configs

* remove commented out code

* remove unused type import

* mock ui_metric in client_integration

* jest.mock ui/new_platform

* fix all failing tests

* platform team code review fixes

* reset interval back to default

* apm cypress config use usageCollection

* revert kibana.yml change

* remove license type from NP def

* undo revert of NP type

* code review fixes

* report schema in a separate dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:New Platform Feature:Telemetry release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. v7.6.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants