Closed andrzejewsky closed 8 years ago
@tsteur You have done code review before I finished.. but of course many thanks! :+1:
I introduced your comments, but I have one question.. How can I run these tests: https://github.com/piwik/plugin-AnonymousPiwikUsageMeasurement/tree/master/javascripts (*.spec.js files)? I would like to update it.
Yeah sorry. I had to review so many PRs and just went over all of them :)
Re how to test them see: https://github.com/piwik/piwik/tree/master/tests/angularjs I hope the docs there are kinda complete and it works. Feel free to ping me if not and we can adjust docs if needed
@tsteur thanks for help. I added js tests
@tsteur updated. Unfortunately, I don't know why Travis fails? Yesterday everything was ok
It's very weird re the tests. It is running the tests against Piwik 2.15.1-b1 (see https://travis-ci.org/piwik/plugin-AnonymousPiwikUsageMeasurement/jobs/102046612#L207-L230) but fails because of a change that was made recently in Piwik master and will be included in Piwik 2.16.0-b2.
Update: Actually this commit broke it https://github.com/piwik/plugin-AnonymousPiwikUsageMeasurement/commit/05b1e6237b68f2177e6801e2a66f6fee7b64f980 so simply ignore it for now. I will change the target Piwik version later
Created https://github.com/piwik/plugin-AnonymousPiwikUsageMeasurement/issues/28 to not forget, it is because of a "breaking" API change in Piwik core and the tests were made to succeed in Piwik master but now they fail here...
Tests will probably succeed next time they run
@tsteur yes, now tests passed!
Just tested it manually. LGTM :+1:
@andrzejewsky issue #25 is about measuring the "User Id" - I don't think this PR will close #25 but it is a nice feature anyway :+1:
Proposal:
Anonimyse tracking requests
is un-checked, then we can automatically track the username as a "User ID" (in self+ custom piwik)
Issue: https://github.com/piwik/plugin-AnonymousPiwikUsageMeasurement/issues/25