Closed Bug 912612 Opened 11 years ago Closed 11 years ago

Add a timer dedicated to apps update when system updates are disabled.

Categories

(Firefox OS Graveyard :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
1.2 FC (16sep)

People

(Reporter: fabrice, Assigned: fabrice)

References

Details

Attachments

(1 file, 1 obsolete file)

We want to make sure that apps updates are checked daily, but they are currently tied to system update checks. Unfortunately this fails in the following situation:
- System updates are disabled because a partner is using its own ota platform.
- The default interval is set to something different, like a week.
Attached patch patch v1 (obsolete) (deleted) — Splinter Review
This patch moves the app updates checks to their own component, and use its own timer if the system update timer is disabled or set to a non-daily interval.

I'm currently running end-to-end tests with metrics to make sure we get the pings in various situations.
Attachment #799669 - Flags: feedback?(21)
Comment on attachment 799669 [details] [diff] [review]
patch v1

Let's see if Etienne wants to review this.
Attachment #799669 - Flags: feedback?(21) → feedback?(etienne)
Attached patch patch v2 (deleted) — Splinter Review
Logs check with metrics look good. This is a cleaned up version of the previous patch.
Attachment #799669 - Attachment is obsolete: true
Attachment #799669 - Flags: feedback?(etienne)
Attachment #801057 - Flags: review?(etienne)
Comment on attachment 801057 [details] [diff] [review]
patch v2

Review of attachment 801057 [details] [diff] [review]:
-----------------------------------------------------------------

All good and completely transparent to gaia.

Picked up a few things along the way :)

::: b2g/components/B2GComponents.manifest
@@ +77,5 @@
> +
> +# WebappsUpdateTimer.js
> +component {637b0f77-2429-49a0-915f-abf5d0db8b9a} WebappsUpdateTimer.js
> +contract @mozilla.org/b2g/webapps-update-timer;1 {637b0f77-2429-49a0-915f-abf5d0db8b9a}
> +category update-timer WebappsUpdateTimer @mozilla.org/b2g/webapps-update-timer;1,getService,background-update-timer,webapps.update.interval,86400

this is cool.
Attachment #801057 - Flags: review?(etienne) → review+
Comment on attachment 801057 [details] [diff] [review]
patch v2

rubberstamp r+
Attachment #801057 - Flags: review+
https://hg.mozilla.org/integration/b2g-inbound/rev/564f0718eefe
Depends on: 915260
https://hg.mozilla.org/mozilla-central/rev/564f0718eefe
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.2 FC (16sep)
Depends on: 914182
No longer depends on: 914182
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: