Closed
Bug 1161927
Opened 11 years ago
Closed 8 years ago
[Settings] Migrate settings app to use new system update API
Categories
(Firefox OS Graveyard :: Gaia::Settings, defect)
Tracking
(feature-b2g:2.5?, tracking-b2g:+)
RESOLVED
WONTFIX
People
(Reporter: arthurcc, Unassigned)
References
Details
Attachments
(2 files)
Bug 1037329 introduces a new set of APIs for system update. All functions regarding system update should migrate to the new APIs.
ux spec: https://bug1034735.bugzilla.mozilla.org/attachment.cgi?id=8453638
document: https://docs.google.com/presentation/d/11Bco460JwmUUDg3itwOI0QsnkvSDicT1Bk5bi2gZ2IU/edit?usp=sharing
Comment 1•11 years ago
|
||
What about System app? Do we need another bug filed for that?
| Reporter | ||
Comment 2•11 years ago
|
||
I was planning to make the changes in the same patch because the migration should better be done at once.
Comment 3•11 years ago
|
||
Cool!
Comment 4•11 years ago
|
||
| Reporter | ||
Comment 5•11 years ago
|
||
Comment on attachment 8605705 [details] [review]
[gaia] crh0716:1161927 > mozilla-b2g:master
Hey James,
Here is the WIP patch. I've done some initial tests and it seemed work fine, please help check in your end.
In addition, I assume the goal was to remove all mozChromeEvent and mozContentEvent created for system update. With the proposed API I'm still not able to remove 'update-prompt-apply-result'. We should discuss more on how you plan to remove those events from the gecko side and include the cases in the proposed API.
Attachment #8605705 -
Flags: feedback?(jacheng)
Comment 6•11 years ago
|
||
Hi Arthur,
Our proposed API substituting for 'update-prompt-apply-result' is applyUpdate().
Let's discuss if you think applyUpdate is not enough for all the cases for you to migrate the current logic.
Thanks.
Updated•11 years ago
|
Attachment #8605705 -
Flags: feedback?(jacheng) → feedback+
Comment 7•10 years ago
|
||
Temporary assign to Fred until we could find better candidate to take over.
Assignee: crh0716 → gasolin
Comment 8•10 years ago
|
||
Comment 9•10 years ago
|
||
Not trace code yet. Just rebase so the code can be merged easier.
Comment 10•10 years ago
|
||
James since I'm not that familiar with this patch yet, please try the last PR and let's discuss about what can we do to make some progress. Thanks.
Flags: needinfo?(jacheng)
Comment 11•10 years ago
|
||
Hi Fred,
Since Bug 1037329 is landed,
This patch should work fine with the gecko updateprompt.js using WebAPI.
I will try it later.
Thanks.
Flags: needinfo?(jacheng)
Comment 12•10 years ago
|
||
Hi Fred,
I apply the patch and just do a simple test since I am not familiar with the coverage of this patch.
I set dom.system_update.debug to true for enabling the log from SystemUpdateService.jsm.
I can see the log means this patch is using the WebAPI to communicate with updateprompt.js.
I tried checkupdate, download update package, applyupdate from setting app and notification and it works fine.
Thanks.
Comment 13•10 years ago
|
||
@Gerry per offline discussion we'd like ask you a favor to help us test if the patch works well with current FOTA flow.
Please get nightly gecko and apply this patch to gaia master
`curl https://patch-diff.githubusercontent.com/raw/mozilla-b2g/gaia/pull/31124.patch | git apply`
Flags: needinfo?(gchang)
Comment 14•10 years ago
|
||
@james I've check related bugs and only seen the ppt related to the system update API
https://docs.google.com/presentation/d/11Bco460JwmUUDg3itwOI0QsnkvSDicT1Bk5bi2gZ2IU/edit#slide=id.p
Is there any online reference (mozilla wiki, mdn) that describe this system update API?
Flags: needinfo?(jacheng)
Comment 15•10 years ago
|
||
@Fred,
Sorry,
Currently we only have this google document for reference. Since this document is quite clear for the developer for understanding the usage of the APIs.
Flags: needinfo?(jacheng)
Comment 16•10 years ago
|
||
Following is my steps:
1. I flash the latest build with 20150728175206 and make reset-gaia with above 31124.patch.
2. Put a gaia OTA package in my local server.
3. Change the Update URL to my local server.
4. Perform OTA
I can see the package is downloaded and uncompressed and device is rebooted.
Flags: needinfo?(gchang)
Comment 17•10 years ago
|
||
Comment on attachment 8639678 [details] [review]
[gaia] gasolin:issue-1161927 > mozilla-b2g:master
Thanks James and Gerry. I'd set review to myself and tim for Gaia Settings & System. If there's any issue I'll fix it and set review to other Settings peer.
Attachment #8639678 -
Flags: review?(timdream)
Attachment #8639678 -
Flags: review?(gasolin)
Comment 18•10 years ago
|
||
Comment on attachment 8639678 [details] [review]
[gaia] gasolin:issue-1161927 > mozilla-b2g:master
I've only read the System app part. See comment, please fix that before landing.
Attachment #8639678 -
Flags: review?(timdream) → review+
Comment 19•10 years ago
|
||
Settings part looks fine to me.
According to treeherder result, several tests are broken and missed unit tests for new files.
Will fix and add some unit tests and see if need other else's review.
Status: NEW → ASSIGNED
Comment 20•10 years ago
|
||
The rewrite are most done and I've fixed most tests (1 file left).
Gerry can you help test with this PR again?
And please notify me when you prepare to start the test. I'd like to learn so I can do it myself next time.
Flags: needinfo?(gchang)
Comment 21•10 years ago
|
||
Thanks gerry's help. I'll update the PR according to manual test result.
Flags: needinfo?(gchang)
Updated•10 years ago
|
feature-b2g: --- → 2.5?
Comment 22•10 years ago
|
||
Since the API changed, there're about 2~30 test cases needs to be re-written for update.js to make sure everything works fine.
Due to current status of regression/blockers in settings, I'd postpone this issue until I got more spare time.
No longer blocks: 1180678
Status: ASSIGNED → NEW
Updated•10 years ago
|
Attachment #8639678 -
Flags: review?(gasolin)
Updated•10 years ago
|
Assignee: gasolin → nobody
Comment 23•8 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•