Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Bug 1109422 - [AUM] Updates to support monthly active users #27286

Merged
merged 2 commits into from
Feb 17, 2015

Conversation

marshall
Copy link
Contributor

@marshall marshall commented Jan 9, 2015

Updates made to support monthly active users calculation for the Metrics team:
https://bugzilla.mozilla.org/show_bug.cgi?id=1109422

@try-server-hook
Copy link

marshall Marshall Culpepper (marshall) started tests. Results

this.transmit();
}
}
// Otherwise, if we have not failed to transmit, then send it if the
// reporting interval has elapsed.
else if (absoluteTime - this.metrics.startTime() > AUM.REPORT_INTERVAL) {
else if (totalElapsed > AUM.REPORT_INTERVAL) {

Choose a reason for hiding this comment

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

This will only send the report after two weeks of the user having the phone turned on. If a user turns off their phone every night and only has it on for 12 hours a day, then their reports will only be sent every 4 weeks.

I think you are going to have to use absolute time for at least some of this module.

@try-server-hook
Copy link

marshall Marshall Culpepper (marshall) started tests. Results

data.deviceinfo = deviceinfo;
AUM.getSettings(deviceInfoQuery, function(deviceInfo) {
data.deviceinfo = deviceInfo;
data.simInfo = getSIMInfo();

Choose a reason for hiding this comment

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

Your data object here has one property with lowercase info and one with capitalized Info. Did you mean to type data.deviceInfo here?

@mozilla-autolander-deprecated
Copy link
Contributor

Autolander could not find a bug number in your pull request title. All pull requests should be in the format of: Bug [number] - [description].

@try-server-hook
Copy link

marshall Marshall Culpepper (marshall) started tests. Results

var setting = sharePerformance.name;
var settings = navigator.mozSettings;
var req = settings && settings.createLock().get(setting);
if (req) {
Copy link
Contributor

Choose a reason for hiding this comment

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

not really needed imo, if req is null we won't get into onsuccess anyway.

@mozilla-autolander-deprecated
Copy link
Contributor

Autolander could not find a bug number in your pull request title. All pull requests should be in the format of: Bug [number] - [description].

@try-server-hook
Copy link

marshall Marshall Culpepper (marshall) started tests. Results

@marshall marshall changed the title Bug 1109422: [AppUsageMetrics] Updates to support monthly active users Bug 1109422 - [AUM] Updates to support monthly active users Feb 13, 2015
@try-server-hook
Copy link

marshall Marshall Culpepper (marshall) started tests. Results

@try-server-hook
Copy link

marshall Marshall Culpepper (marshall) started tests. Results

marshall added a commit that referenced this pull request Feb 17, 2015
Bug 1109422 - [AUM] Updates to support monthly active users
@marshall marshall merged commit a8ab4a0 into mozilla-b2g:master Feb 17, 2015
marshall added a commit that referenced this pull request Feb 19, 2015
Bug 1109422 - [AUM] Updates to support monthly active users
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
6 participants