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

refs #6257 visitorUUID equal by default for each new Piwik.Tracker #6258

Merged
merged 4 commits into from Sep 26, 2014

Conversation

a4tunado
Copy link

No description provided.

@mattab
Copy link
Member

mattab commented Sep 24, 2014

Thanks for the pull request! This is a good change, it just needs a little improvement to make sure in the future the feature will always work: a new test. piwik.js is tested automatically on travis CI find more info in your piwik at: /tests/javascript/

Maybe you can add a test around this code: https://github.com/piwik/piwik/blob/master/tests/javascript/index.php#L2016 - Cheers

@mattab mattab added this to the Short term milestone Sep 24, 2014
@mattab mattab added Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Pull Request WIP Indicates the current pull request is still work in progress and not ready yet for a review. labels Sep 24, 2014
@a4tunado
Copy link
Author

Hey! Just commited unit tests for thist request.

*
* @return string Visitor ID in hexits (or null, if not yet known)
*/
getVisitorId: function () {
Copy link
Member

Choose a reason for hiding this comment

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

maybe remove this getter and simply inline the code in tests?

Copy link
Author

Choose a reason for hiding this comment

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

well I believe that making getVisitorId available at Piwik level emphasis the idea of having same default visitorUUID across Trackers

Copy link
Member

Choose a reason for hiding this comment

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

you may be right but your new implementation just makes sense so I don't think we need extra emphasis about how it works. in this case maybe it's better not to expose APIs.

Copy link
Author

Choose a reason for hiding this comment

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

Agread changing API is not a best idea.

@mattab
Copy link
Member

mattab commented Sep 25, 2014

The tests look good! well done. And the build passes. let me know about the comment and i'll merge it!

@mattab mattab modified the milestones: Piwik 2.8.0, Short term Sep 25, 2014
mattab pushed a commit that referenced this pull request Sep 26, 2014
refs #6257 visitorUUID equal by default for each new Piwik.Tracker
@mattab mattab merged commit 3396d9b into matomo-org:master Sep 26, 2014
@mattab
Copy link
Member

mattab commented Sep 26, 2014

looks good & well done!

mattab added a commit that referenced this pull request Sep 26, 2014
@mattab mattab added the duplicate For issues that already existed in our issue tracker and were reported previously. label Oct 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate For issues that already existed in our issue tracker and were reported previously. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Pull Request WIP Indicates the current pull request is still work in progress and not ready yet for a review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants