Closed
Bug 973443
Opened 11 years ago
Closed 10 years ago
[settings] refactor Display panel with AMD pattern
Categories
(Firefox OS Graveyard :: Gaia::Settings, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gasolin, Assigned: gduan)
References
Details
(Whiteboard: [p=5])
Attachments
(2 files)
Overview Description:
Refactor Display panel with AMD pattern referring to
https://github.com/crh0716/gaia/tree/settings2_iterative
to make it modularize and more easier to maintain
Steps to Reproduce:
1) run make test-perf APP=settings
2) run make test-integration APP=settings
Expected Results:
pass all settings test and act the same as original implementation
Additional Information:
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → gduan
Assignee | ||
Comment 1•10 years ago
|
||
waiting for travis.
Assignee | ||
Comment 2•10 years ago
|
||
Comment on attachment 8428697 [details] [review]
PR to master
Hi Arthur, EJ, Fred,
I've refactored this panel, could you kindly take a look at it?
Thanks!
Attachment #8428697 -
Flags: review?(arthur.chen)
Attachment #8428697 -
Flags: feedback?(gasolin)
Attachment #8428697 -
Flags: feedback?(ejchen)
Reporter | ||
Comment 3•10 years ago
|
||
Comment on attachment 8428697 [details] [review]
PR to master
looks good to me, some comments in github
Attachment #8428697 -
Flags: feedback?(gasolin) → feedback+
Comment 4•10 years ago
|
||
Comment on attachment 8428697 [details] [review]
PR to master
Hi George,
I already left some comments on your patch and please check it later !
Overall it is good to me ! Thanks .
Attachment #8428697 -
Flags: feedback?(ejchen) → feedback+
Comment 5•10 years ago
|
||
Comment on attachment 8428697 [details] [review]
PR to master
Good work! Please check my comments in github, thanks!
Attachment #8428697 -
Flags: review?(arthur.chen) → feedback+
Assignee | ||
Comment 6•10 years ago
|
||
Comment on attachment 8428697 [details] [review]
PR to master
Hi Arthur,
issues addressed, could you take a look again?
Thanks.
Attachment #8428697 -
Flags: review?(arthur.chen)
Comment 7•10 years ago
|
||
Comment on attachment 8428697 [details] [review]
PR to master
Well done, George! There are some minor issues and they shouldn't be difficult to fix. Please check them in github. And as the patch also fix the jshint errors in fl.js, let's also request a review from the owner.
Attachment #8428697 -
Flags: review?(arthur.chen)
Assignee | ||
Comment 8•10 years ago
|
||
Comment on attachment 8428697 [details] [review]
PR to master
Hi Arthur,
I've updated my patch. Could you take a look again? Thanks.
Attachment #8428697 -
Flags: review?(arthur.chen)
Comment 9•10 years ago
|
||
Comment on attachment 8428697 [details] [review]
PR to master
We are almost there! Please check my comments in github.
Attachment #8428697 -
Flags: review?(arthur.chen)
Assignee | ||
Comment 10•10 years ago
|
||
Comment on attachment 8428697 [details] [review]
PR to master
Hi Arthur,
issues addressed!
Thanks.
Attachment #8428697 -
Flags: review?(arthur.chen)
Comment 11•10 years ago
|
||
Comment on attachment 8428697 [details] [review]
PR to master
r=me with one last nit addressed, thanks!
Attachment #8428697 -
Flags: review?(arthur.chen) → review+
Assignee | ||
Comment 12•10 years ago
|
||
travis pass
https://tbpl.mozilla.org/?tree=Gaia-Try&rev=fa819ef061f4
merge to master
https://github.com/mozilla-b2g/gaia/commit/f38eb30aaef8186f30391dbca164ac0cf28ed42e
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 13•10 years ago
|
||
typo
tbpl pass, not travis.
Comment 14•10 years ago
|
||
Unfortunately I've had to revert this due to intermittent test failures, eg:
https://tbpl.mozilla.org/php/getParsedLog.php?id=41591983&tree=B2g-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=41588938&tree=B2g-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=41584317&tree=B2g-Inbound
https://github.com/mozilla-b2g/gaia/commit/080027d50696ad4e003d44f899257f3b9f7aed98
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 15•10 years ago
|
||
Hi Arthur,
I think the setTimeout in mock_moz_activity call the onsuccess too early before I set the value of successResult.
Please kindly check 2nd commit of my patch.
Thanks.
Attachment #8440475 -
Flags: review?(arthur.chen)
Comment 16•10 years ago
|
||
Comment on attachment 8440475 [details] [review]
PR to master 2
Based on the log, the test failed due to that "onsuccess" was called outside the test again and resulted in a javascript error. We should use a fake timer and wait for the trigger of "onsuccess" instead of triggering it ourselves.
Attachment #8440475 -
Flags: review?(arthur.chen)
Assignee | ||
Comment 17•10 years ago
|
||
Comment on attachment 8440475 [details] [review]
PR to master 2
Hi Arthur,
you're right.
Please kindly check again.
thanks.
Attachment #8440475 -
Flags: review?(arthur.chen)
Comment 18•10 years ago
|
||
Comment on attachment 8440475 [details] [review]
PR to master 2
r=me with the comment addressed. Thanks.
Attachment #8440475 -
Flags: review?(arthur.chen) → review+
Comment 19•10 years ago
|
||
Why are we still setTimeout() in mocks? We should remove them with stub() or something deterministic. See bug 974319.
Assignee | ||
Comment 20•10 years ago
|
||
bug 1025763 , remove setTimeout from mock_moz_activity.js
(In reply to Tim Guan-tin Chien [:timdream] (MoCo-TPE) (please ni?) from comment #19)
> Why are we still setTimeout() in mocks? We should remove them with stub() or
> something deterministic. See bug 974319.
Assignee | ||
Comment 21•10 years ago
|
||
land to master,
travis and tbpl are all green.
https://github.com/mozilla-b2g/gaia/commit/7534236582775baf89051583238b49fd68c5bf3c
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•10 years ago
|
Whiteboard: [p=5]
You need to log in
before you can comment on or make changes to this bug.
Description
•