kibana/packages/kbn-analytics
Alejandro Fernández Haro fd25ae6505
[Telemetry] Application Usage implemented in @kbn/analytics (#58401)
* [Telemetry] Report the Application Usage (time of usage + number of clicks)

* Add Unit tests to the server side

* Do not use optional chaining in JS

* Add tests on the public end

* Fix jslint errors

* jest.useFakeTimers() + jest.clearAllTimers()

* Remove Jest timer handlers from my tests (only affecting to a minimum coverage bit)

* Catch ES actions in the setup/start steps because it broke core_services tests

* Fix boolean check

* Use core's ES.adminCLient over .createClient

* Fix tests after ES.adminClient

* [Telemetry] Application Usage implemented in kbn-analytics

* Use bulkCreate in store_report

* ApplicationUsagePluginStart does not exist anymore

* Fix usage_collection mock interface

* Check there is something to store before calling the bulkCreate method

* Add unit tests

* Fix types in tests

* Unit tests for rollTotals and actual fix for the bug found

* Fix usage_collection mock after #57693 got merged

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-28 16:52:35 +00:00
..
scripts Fix code coverage for functional tests (#53297) 2019-12-19 08:23:30 +01:00
src [Telemetry] Application Usage implemented in @kbn/analytics (#58401) 2020-02-28 16:52:35 +00:00
babel.config.js autofix all violations 2019-12-13 23:17:13 -07:00
package.json Revert "Update babel related packages (#52754)" 2019-12-17 11:32:49 -07:00
tsconfig.json