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

[Reporting] Clean up test helpers and mocks #92550

Merged
merged 7 commits into from
Mar 1, 2021

Conversation

tsullivan
Copy link
Member

@tsullivan tsullivan commented Feb 24, 2021

Pulls out changes that trickled in over developing #64853

Summary

  • Use more core mocks in Reporting
  • Remove some any in tests
  • Update tests to new mock values

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@tsullivan tsullivan marked this pull request as draft February 24, 2021 00:48
@tsullivan tsullivan added release_note:skip Skip the PR/issue when compiling release notes v7.13.0 labels Feb 24, 2021
@tsullivan
Copy link
Member Author

Keeping this as Draft until I'm able to test that each log line has the same tags as the previous version

@tsullivan tsullivan changed the title [Reporting] Clean up logger instances and mocks [Reporting] Clean up test helpers and mocks Feb 24, 2021
@tsullivan tsullivan marked this pull request as ready for review February 24, 2021 19:03
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServices)

@tsullivan tsullivan requested a review from a team February 24, 2021 19:05
@tsullivan
Copy link
Member Author

@elasticmachine merge upstream

Copy link
Contributor

@streamich streamich left a comment

Choose a reason for hiding this comment

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

LGTM

@tsullivan
Copy link
Member Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
triggersActionsUi 1.6MB 1.5MB -23.9KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
triggersActionsUi 104.0KB 104.1KB +82.0B
Unknown metric groups

async chunk count

id before after diff
triggersActionsUi 41 42 +1

History

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

@tsullivan tsullivan merged commit 348472c into elastic:master Mar 1, 2021
@tsullivan tsullivan deleted the chore/taskmanager-pr-cleanup-2 branch March 1, 2021 17:19
tsullivan added a commit to tsullivan/kibana that referenced this pull request Mar 1, 2021
* [Reporting] Clean up logger instances and mocks

* revert logging changes, just keep test changes

* remove fluff

* clean up too much logger.clone

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
tsullivan added a commit to tsullivan/kibana that referenced this pull request Mar 1, 2021
* [Reporting] Clean up logger instances and mocks

* revert logging changes, just keep test changes

* remove fluff

* clean up too much logger.clone

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
tsullivan added a commit that referenced this pull request Mar 2, 2021
* [Reporting] Clean up test helpers and mocks (#92550)

* [Reporting] Clean up logger instances and mocks

* revert logging changes, just keep test changes

* remove fluff

* clean up too much logger.clone

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* fix ts

* fix jest test

* simplify test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
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 v7.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants