Closed
Bug 969280
Opened 11 years ago
Closed 11 years ago
[Dialer] dialer app modification according to Telephony API change, i.e. dial() returning a Promise
Categories
(Firefox OS Graveyard :: Gaia::Dialer, defect)
Tracking
(blocking-b2g:-)
People
(Reporter: hsinyi, Assigned: rik)
References
Details
Attachments
(1 file)
In bug 889737, we came to agreement that we should have telephony.dial() return a Promise.
This bug is filed for corresponding gaia/dialer work due to that API change.
Reporter | ||
Comment 1•11 years ago
|
||
nominate since 1.4+ MMI features cannot be completed without this bug.
blocking-b2g: --- → 1.4?
Depends on: 889737
Comment 2•11 years ago
|
||
In order to have the modification smoothly, following step is proposed.
1. Gaia should first provide a version that is backward compatible, i.e, support both TelephonyCall and Promise return by API call.
2. Gecko change the interface.
3. Gaia remove the original support of 'TelephonyCall'. Now always use the promise.
Comment 3•11 years ago
|
||
(In reply to Szu-Yu Chen [:aknow] from comment #2)
> In order to have the modification smoothly, following step is proposed.
> 1. Gaia should first provide a version that is backward compatible, i.e,
> support both TelephonyCall and Promise return by API call.
Need a bug to address item 1.
We cannot land the gecko change until we have a gaia that could support both old and new version of API.
Reporter | ||
Comment 4•11 years ago
|
||
(In reply to Szu-Yu Chen [:aknow] from comment #3)
> (In reply to Szu-Yu Chen [:aknow] from comment #2)
> > In order to have the modification smoothly, following step is proposed.
> > 1. Gaia should first provide a version that is backward compatible, i.e,
> > support both TelephonyCall and Promise return by API call.
>
> Need a bug to address item 1.
> We cannot land the gecko change until we have a gaia that could support both
> old and new version of API.
I filed this bug for item 1.
Reporter | ||
Comment 5•11 years ago
|
||
Hi Joe,
Bug 969218 (1.4 blocker) would be ready very soon. As that gecko bug cannot be landed before gaia is ready for the new API, we need gaia work being proceeded in parallel to not block other following issues. Need Comms' team's help :)
Flags: needinfo?(jcheng)
Assignee | ||
Comment 6•11 years ago
|
||
I'll take this. For future reference, attachment 8373839 [details] [diff] [review] is very helpful.
Is it possible to have a Gecko build to flash? Or a branch? It's usually easier to work with that rather than applying possibly bitrotted patches. Thanks!
Assignee: nobody → anthony
Flags: needinfo?(jcheng)
Reporter | ||
Comment 7•11 years ago
|
||
Yeah, thanks for Rik's help. :)
Aknow, could you please provide a github working branch for Rik?
Flags: needinfo?(szchen)
Comment 8•11 years ago
|
||
Hi :rik,
You could refer to this branch for gecko/.
https://github.com/aknow/gecko-dev/tree/promise_dial
Flags: needinfo?(szchen)
Comment 9•11 years ago
|
||
hey Rik, how much of an effort do you think this will be? it seems to be a big change so want to be careful on taking this for 1.4. Thanks
Flags: needinfo?(anthony)
Reporter | ||
Comment 10•11 years ago
|
||
Correct the dependency. This should theoretically be landed before bug 969218.
Assignee | ||
Comment 11•11 years ago
|
||
Thankfully, we're only using telephony.dial and dialEmergency in 4 places. I'll take this in this sprint.
Flags: needinfo?(anthony)
Target Milestone: --- → 1.4 S2 (28feb)
Comment 12•11 years ago
|
||
bug 889737 does not seem to be blocking anymore, let's not block 1.4 with this.
blocking-b2g: 1.4? → -
Reporter | ||
Comment 13•11 years ago
|
||
(In reply to Joe Cheng [:jcheng] from comment #12)
> bug 889737 does not seem to be blocking anymore, let's not block 1.4 with
> this.
however this blocks bug 969218, which blocks a QC requirement. We should have this in 1.4+.
Updated•11 years ago
|
Flags: needinfo?(jcheng)
Assignee | ||
Comment 14•11 years ago
|
||
Just to clarify, based on comment 13, I'm working on this even though it's not marked as 1.4+.
Assignee | ||
Comment 15•11 years ago
|
||
I have a patch and tests for the Dialer part. I need another one for the emergency pad and the voicemail notification.
Comment 16•11 years ago
|
||
(In reply to Anthony Ricaud (:rik) from comment #15)
> I have a patch and tests for the Dialer part. I need another one for the
> emergency pad and the voicemail notification.
Can we land this bug before 2/28?
Assignee | ||
Comment 17•11 years ago
|
||
I've tested this on a single SIM with trunk gecko and the WIP gecko from aknow.
I'll test on a DSDS device just to be sure but asking for review already.
Attachment #8382075 -
Flags: review?(etienne)
Comment 18•11 years ago
|
||
Comment on attachment 8382075 [details] [review]
https://github.com/mozilla-b2g/gaia/pull/16656
A clean patch if I ever saw one :)
r=me with the promise edition for the |emergency-call/dialer_test.js|
Note: I could only do manual testing on a pre-patch single sim device, since flashing aknow's patch [1] only gets me a black screen on my keon.
[1] https://github.com/aknow/gecko-dev/compare/promise_dial.patch
Attachment #8382075 -
Flags: review?(etienne) → review+
Assignee | ||
Comment 19•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(jcheng)
Resolution: --- → FIXED
I had to revert this in https://github.com/mozilla-b2g/gaia/commit/548965a5866aa38b5f44c336b3a7fb723164e277 because this apparently broke gaia-unit tests in tbpl:
https://tbpl.mozilla.org/php/getParsedLog.php?id=35309266&tree=B2g-Inbound
Status: RESOLVED → REOPENED
Flags: needinfo?(anthony)
Resolution: FIXED → ---
Assignee | ||
Comment 21•11 years ago
|
||
Shit :( This bug si blocking work for folks in Taipei and we have an aggressive deadline. Is it possible to re-land but without the offending file? This is a new test file. I don't have a computer handy to do it myself.
I'll obviously investigate the failure tomorrow.
Flags: needinfo?(kwierso)
That'd just be unreverting it and deleting apps/system/test/unit/emergency-call/dialer_test.js, right?
Flags: needinfo?(kwierso)
Assignee | ||
Comment 23•11 years ago
|
||
Yup! Thanks!
Updated•11 years ago
|
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
Comment 25•11 years ago
|
||
Just FYI, a merge conflict in dialer_tests.js caused the tests to be re-added, so I re-removed it:
https://github.com/mozilla-b2g/gaia/commit/22d48b62df7901ad45044f66e15e7d8943884a06
I guess we should file a follow up to re-add the tests.
Flags: in-testsuite?
Reporter | ||
Comment 26•11 years ago
|
||
Thank you guys!
Assignee | ||
Updated•11 years ago
|
Flags: needinfo?(anthony)
Flags: in-testsuite?
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•