Closed Bug 969280 Opened 10 years ago Closed 10 years ago

[Dialer] dialer app modification according to Telephony API change, i.e. dial() returning a Promise

Categories

(Firefox OS Graveyard :: Gaia::Dialer, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(blocking-b2g:-)

RESOLVED FIXED
1.4 S2 (28feb)
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.
Depends on: 969218
nominate since 1.4+ MMI features cannot be completed without this bug.
blocking-b2g: --- → 1.4?
Depends on: 889737
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.
(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.
(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.
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)
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)
Yeah, thanks for Rik's help. :)

Aknow, could you please provide a github working branch for Rik?
Flags: needinfo?(szchen)
Hi :rik,
You could refer to this branch for gecko/.
https://github.com/aknow/gecko-dev/tree/promise_dial
Flags: needinfo?(szchen)
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)
Correct the dependency. This should theoretically be landed before bug 969218.
Blocks: 969218
No longer depends on: 889737, 969218
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)
bug 889737 does not seem to be blocking anymore, let's not block 1.4 with this.
blocking-b2g: 1.4? → -
(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+.
Flags: needinfo?(jcheng)
Just to clarify, based on comment 13, I'm working on this even though it's not marked as 1.4+.
I have a patch and tests for the Dialer part. I need another one for the emergency pad and the voicemail notification.
(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?
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 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+
Tada on master!

https://github.com/mozilla-b2g/gaia/commit/52ad4108920c48d68565992a31fc3901ab5168c3
Status: NEW → RESOLVED
Closed: 10 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 → ---
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)
Yup! Thanks!
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Resolution: --- → FIXED
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?
Thank you guys!
Depends on: 978104
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.

Attachment

General

Created:
Updated:
Size: