Skip to content

[7.x] [Enterprise Search] Telemetry: refactor to Kea logic file (#81926)#82473

Merged
cee-chen merged 1 commit intoelastic:7.xfrom
cee-chen:backport/7.x/pr-81926
Nov 3, 2020
Merged

[7.x] [Enterprise Search] Telemetry: refactor to Kea logic file (#81926)#82473
cee-chen merged 1 commit intoelastic:7.xfrom
cee-chen:backport/7.x/pr-81926

Conversation

@cee-chen
Copy link
Copy Markdown
Contributor

@cee-chen cee-chen commented Nov 3, 2020

Backports the following commits to 7.x:

)

* Add new TelemetryLogic helpers

- DRYs out need to import/pass http lib
- adds product-specific helpers which DRYs out an extra line

* Update all previous sendTelemetry fns to use new logic actions

* Update unit tests for updated components

- Create reusable mocks
- Update overview_logic.ts to use new Kea mock helpers (required for recent_activity.test to pass)

* Cleanup: Remove old sendTelemetry fn
+ update tests

* [PR feedback] Correctly assert the async thrown error
@cee-chen cee-chen added the backport This PR is a backport of another PR label Nov 3, 2020
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

@kbn/optimizer bundle module count

id before after diff
enterpriseSearch 435 436 +1

async chunks size

id before after diff
enterpriseSearch 650.6KB 651.6KB +1013.0B

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

@cee-chen cee-chen merged commit fe4c56f into elastic:7.x Nov 3, 2020
@cee-chen cee-chen deleted the backport/7.x/pr-81926 branch November 3, 2020 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants