Closed
Bug 983594
Opened 10 years ago
Closed 10 years ago
Avoid making several calls from detail view at the same time
Categories
(Firefox OS Graveyard :: Gaia::Contacts, defect)
Tracking
(blocking-b2g:-, b2g-v1.4 fixed, b2g-v2.0 fixed)
People
(Reporter: crdlc, Assigned: crdlc)
Details
(Keywords: regression)
Attachments
(2 files, 1 obsolete file)
STR: 1) Create a contact with a telephone number 2) Go to details 3) Click several times to telephone field Expected result: The dialer should be displayed calling to my contact Current result: A message is displayed with title "Unable to make a phone call now" and behind this one the dialer trying to make the call. After a couple of seconds the dialer is displayed on the top of this message. When the call is finished, the dialer disappears but the message is still there. My approach: I will try to disable phone buttons while a call is trying to be performed in order to create just one Activity.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → crdlc
Status: NEW → ASSIGNED
Updated•10 years ago
|
blocking-b2g: --- → 1.4?
Assignee | ||
Comment 1•10 years ago
|
||
WIP The implementation is already done but I am working on unit tests. While I am on it comments/feedback are more than welcome. Thanks guys for your support
Attachment #8391152 -
Flags: review?(francisco.jordano)
Attachment #8391152 -
Flags: review?(etienne)
Attachment #8391152 -
Flags: feedback?(jmcf)
Comment 2•10 years ago
|
||
Comment on attachment 8391152 [details]
Patch v1
I left some comments on GH but all of them are non substantive
thanks for the work!
Attachment #8391152 -
Flags: feedback?(jmcf) → feedback+
Comment 3•10 years ago
|
||
Comment on attachment 8391152 [details] Patch v1 I don't think postMessage is the right approach here. To make a call the contacts app uses the TelephonyHelper [1], and you can pass optional callbacks to the telephony helper. You can find an example here [2]. You probably want to disable the button until you get an onconnected or onerror or ondisconnected callback. Bonus: no change required to the dialer app :D [1] https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/contacts/js/contacts.js#L466 [2] https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/dialer/js/dialer.js#L254-L293
Attachment #8391152 -
Flags: review?(etienne) → review-
Comment 4•10 years ago
|
||
We have a patch for DSDS that needs to land for 1.4 that will modify a bit this functionality, that is still needed. You can track the process: https://github.com/mozilla-b2g/gaia/pull/17143
Comment 6•10 years ago
|
||
Issue does NOT occur on latest 1.3 Result: After a pause the call initiates without an error message. No message is present when call is ended. Environmental Variables: Device: Buri v1.3 Mozilla RIL BuildID: 20140314004002 Gaia: 932789749406a79c5630c27c724f1856bd3c3f10 Gecko: 0479f5480378 Version: 28.0 Firmware Version: v1.2-device.cfg
QA Contact: bzumwalt
Comment 7•10 years ago
|
||
Were you able to see this on 1.4 as a point of comparison?
Flags: needinfo?(bzumwalt)
Comment 8•10 years ago
|
||
Was able to reproduce on todays 1.4 before I tested on 1.3 Result: Error displayed before call initiates and after call ends. Environmental Variables: Device: Buri v1.4 Master Mozilla RIL BuildID: 20140314093423 Gaia: 1cef557f9e9a865d1bf49d99a8f1cca1f0f4f5c4 Gecko: 142911d6d987 Version: 30.0a1 Firmware Version: v1.2-device.cfg
Flags: needinfo?(bzumwalt)
Updated•10 years ago
|
Keywords: regression
Assignee | ||
Comment 9•10 years ago
|
||
Thanks, I understand that, very helpful (In reply to Etienne Segonzac (:etienne) from comment #3) > Comment on attachment 8391152 [details] > Patch v1 > > I don't think postMessage is the right approach here. > > To make a call the contacts app uses the TelephonyHelper [1], and you can > pass optional callbacks to the telephony helper. You can find an example > here [2]. > > You probably want to disable the button until you get an onconnected or > onerror or ondisconnected callback. > > Bonus: no change required to the dialer app :D > > [1] > https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/contacts/ > js/contacts.js#L466 > [2] > https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/dialer/ > js/dialer.js#L254-L293
Assignee | ||
Comment 10•10 years ago
|
||
I gonna wait to implement this bug because I don't want to work more than once (In reply to Francisco Jordano [:arcturus] from comment #4) > We have a patch for DSDS that needs to land for 1.4 that will modify a bit > this functionality, that is still needed. > > You can track the process: > https://github.com/mozilla-b2g/gaia/pull/17143
Assignee | ||
Updated•10 years ago
|
Attachment #8391152 -
Attachment is obsolete: true
Attachment #8391152 -
Flags: review?(francisco.jordano)
Assignee | ||
Comment 11•10 years ago
|
||
I followed the Etienne's suggestion and Jose's feedback
Attachment #8392197 -
Flags: review?(francisco.jordano)
Attachment #8392197 -
Flags: review?(etienne)
Attachment #8392197 -
Flags: feedback?(jmcf)
Comment 12•10 years ago
|
||
Comment on attachment 8392197 [details]
Patch v2
Tested this on the hamachi and works perfectly. And now the code is clean and terse.
thanks for the work!
Attachment #8392197 -
Flags: feedback?(jmcf) → feedback+
Assignee | ||
Comment 13•10 years ago
|
||
Rebased with latest changes on ActionButton
Comment 14•10 years ago
|
||
triage: should not block release as the user need to try breaking it but please ask for approval to land in 1.4 when the fix is avaialble. thanks
blocking-b2g: 1.4? → -
Comment 15•10 years ago
|
||
Comment on attachment 8392197 [details]
Patch v2
Just left a small comment, but great work here.
Tried with a DSDS device as well and working as expected.
Thanks Cristian!
Comment 16•10 years ago
|
||
Comment on attachment 8392197 [details]
Patch v2
w00t! forgot to r+!
Attachment #8392197 -
Flags: review?(francisco.jordano) → review+
Assignee | ||
Comment 17•10 years ago
|
||
Addressed my friend!
Comment 18•10 years ago
|
||
Comment on attachment 8392197 [details]
Patch v2
It's a contact only patch now, but definitely feedback+ !
Attachment #8392197 -
Flags: review?(etienne) → feedback+
Assignee | ||
Comment 19•10 years ago
|
||
Merged in master: https://github.com/mozilla-b2g/gaia/commit/3977de3c913fedb331ad2445ad245501e3a62239
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 20•10 years ago
|
||
Comment on attachment 8392197 [details] Patch v2 NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] [Bug caused by] (feature/regressing bug #): [User impact] if declined: medium thought [Testing completed]: Jordano and me [Risk to taking this patch] (and alternatives if risky): low [String changes made]: Requested by comment 14
Attachment #8392197 -
Flags: approval-gaia-v1.4?(fabrice)
Updated•10 years ago
|
Target Milestone: --- → 1.4 S4 (28mar)
Updated•10 years ago
|
status-b2g-v1.4:
--- → affected
Updated•10 years ago
|
Attachment #8392197 -
Flags: approval-gaia-v1.4?(fabrice) → approval-gaia-v1.4?(release-mgmt)
Comment 21•10 years ago
|
||
Cristian, can you please expand on your answers to the uplift request below? (Specific feedback inline.) (In reply to Cristian Rodriguez (:crdlc) from comment #20) > [Approval Request Comment] > [Bug caused by] (feature/regressing bug #): Reading through this bug this appears to be a regression. Do you know the bug or the regression range? > [User impact] if declined: medium thought Can you be specific as to the user impact in this case? Note that the user impact may differ from the str after you have figured out how to fix the issue. > [Testing completed]: Jordano and me Please comment on what testing you completed. Manual and/or automated? (I see that the patch does included automated tests. Are there cases that the automated tests can't cover?) Can you provide details about what scenarios the tests cover? > [Risk to taking this patch] (and alternatives if risky): low Why is the risk low? > [String changes made]: It is appreciated if you can answer none if no string changes have been made in order to be explicit about this. In this case I see no string changes in the pr.
Updated•10 years ago
|
Flags: needinfo?(crdlc)
Assignee | ||
Comment 22•10 years ago
|
||
> Reading through this bug this appears to be a regression. Do you know the bug or the regression range? I don't really think so. IMHO it was there for the beginning. Francisco? > Can you be specific as to the user impact in this case? Note that the user impact may differ from the > str after you have figured out how to fix the issue After clicking several times, a message is displayed with title "Unable to make a phone call now" and behind this message, the dialer is trying to make the call. After a couple of seconds the dialer is displayed on the top of this message. When the call is finished, the dialer disappears but the message is still there. This is the real impact for the user. https://bug983594.bugzilla.mozilla.org/attachment.cgi?id=8391138 > Please comment on what testing you completed. Manual and/or automated? (I see that the patch does > included automated tests. Are there cases that the automated tests can't cover?) Can you provide > details about what scenarios the tests cover? 1. I was tested by ourself in our devices 2. I added some unit tests in order to check that call buttons are disabled when they are clicked the first time and they are restored when the call is successful or failed. > Why is the risk low? It is low because I provided with a set of tests and there are not a lot of changes in the code and it was reviewed by two people (one of them is the owner of contacts app) > It is appreciated if you can answer none if no string changes have been made in order to be explicit > about this. In this case I see no string changes in the pr No idea what it is, translation strings? The answer is "none"
Flags: needinfo?(crdlc) → needinfo?(francisco.jordano)
Comment 23•10 years ago
|
||
(In reply to Cristian Rodriguez (:crdlc) from comment #22) > > Reading through this bug this appears to be a regression. Do you know the bug or the regression range? > > I don't really think so. IMHO it was there for the beginning. Francisco? > This is not a regression, the code have been always be the same. Perhaps now the attention screen is a bit slower to come out, but we never had specific code to prevent this happening, so this bug is, IMHO, needed in our code base.
Flags: needinfo?(francisco.jordano)
Comment 24•10 years ago
|
||
verifyme to check it works in master before the uplift. Thanks!
Keywords: verifyme
Updated•10 years ago
|
Attachment #8392197 -
Flags: approval-gaia-v1.4?(release-mgmt) → approval-gaia-v1.4+
Comment 25•10 years ago
|
||
Hi Ryan, Could you please help us with the uplift to v1.4 branch?. Thanks a lot!.
Flags: needinfo?(ryanvm)
Comment 26•10 years ago
|
||
v1.4: https://github.com/mozilla-b2g/gaia/commit/430b3efac648bdb2927cfd49b0e13baf73a7fb9e
You need to log in
before you can comment on or make changes to this bug.
Description
•