-
Notifications
You must be signed in to change notification settings - Fork 142
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
Fix missing telemetry fields #1863
Conversation
installDate: | ||
options.installDate || new Date().toISOString().split('T')[0], | ||
installRandom: Math.floor(Math.random() * 100) + 1, |
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.
those are now part of the telemetry storage instead of options
if (!storage.installDate) { | ||
saveStorage(storage, { | ||
installDate: | ||
options.installDate || new Date().toISOString().split('T')[0], |
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.
That part still confuses me: why there is a fallback to options for installDate, but not for the random number. It is not obvious to me, why we need the fallback here? If storage.installDate is not present, how can options have it?
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.
If I understand correctly, options.installDate is migration code? And installRandom did not exist before.
If so, could we leave a comment that "options.installDate || " exists to migrate data from old clients? And that we could eventually remove it?
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.
Comment added
Those data points were always a part of the minimalistic telemetry signals that were used in Ghostery 8.