-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Usage Collection] Remove unused applicationUsageTracker
from Public API
#92670
[Usage Collection] Remove unused applicationUsageTracker
from Public API
#92670
Conversation
62f0cd8
to
b3d0ab2
Compare
b3d0ab2
to
42d4b1d
Compare
@elasticmachine merge upstream |
// This is to avoid having to mock every private property of the class | ||
type ApplicationUsageTrackerPublic = Pick<ApplicationUsageTracker, keyof ApplicationUsageTracker>; | ||
|
||
export const createApplicationUsageTrackerMock = (): ApplicationUsageTrackerPublic => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're still using applicationUsageTracker
internally so we're not strictly removing it from the code base.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review only: looks fine and cleans up our public API a bit.
One nit though: Can we change the PR title or add to the PR description that we're removing applicationUsageTracker
from the public API? ATM, the title can be a little misleading and some folks (like me 😊 ) might interpret it as remove applicationusageTracker
from the code base.
applicationUsageTracker
applicationUsageTracker
from Public API
💚 Build SucceededMetrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
…c API (elastic#92670) Co-authored-by: Kibana Machine <[email protected]>
…c API (#92670) (#93076) Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Alejandro Fernández Haro <[email protected]>
Summary
As part of #91611 we are planning to remove any unused APIs in the Usage Collection service to make it less confusing to other devs, and don't overwhelm them with options.
We can revert this PR in the future if we find any use cases for it.
Checklist
Delete any items that are not applicable to this PR.
For maintainers