Closed
Bug 874043
Opened 12 years ago
Closed 12 years ago
[sms] When the first message in a thread has an error due to flight mode, we don't display the "flight mode" alert dialog
Categories
(Firefox OS Graveyard :: Gaia::SMS, defect)
Tracking
(blocking-b2g:-, b2g18+ fixed)
RESOLVED
FIXED
blocking-b2g | - |
People
(Reporter: julienw, Assigned: mbudzynski)
References
Details
Attachments
(4 files)
STR:
* turn on flight mode
* send a SMS to a new number
Expected:
* the message is in error and the "flight mode" alert dialog should be displayed.
Actual:
* the messages is in error, but the "flight mode" alert dialog is not displayed.
Note that it is when you send a SMS to a number that already has a thread.
I think this is a regression, but I'm not sure. The bug happens in v1.1 for sure.
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → mbudzynski
Assignee | ||
Comment 1•12 years ago
|
||
On the first try to send an SMS in airplane mode we receive an error:
at app://sms.gaiamobile.org/js/message_manager.js:339 in onerror: Reading the database. Error: InternalError
and this._mozMobileMessage never fires 'failed' event. Looks like a platform issue.
Flags: needinfo?(vyang)
Reporter | ||
Comment 2•12 years ago
|
||
(I know I've seen the same error in another bug but I can't find it)
Comment 3•12 years ago
|
||
(In reply to Julien Wajsberg [:julienw] from comment #2)
> (I know I've seen the same error in another bug but I can't find it)
Do you mean bug 874186? However bug 874186 requires we have no thread for the recipient yet.
Flags: needinfo?(vyang)
Reporter | ||
Comment 4•12 years ago
|
||
Vicamo> this bug needs a new recipient as well :)
Yep, that was bug 874186, but here we still reproduce it afaik.
Reporter | ||
Comment 5•12 years ago
|
||
Just tried it again with a recent b2g18:
* we don't have the logcat error anymore
* but we still have the bug
Michal, could you check with a newer b2g18 if we get the 'failed' event ?
Assignee | ||
Comment 6•12 years ago
|
||
Nothing changed - the bug still occurs, the event doesn't fire and the error is still there SOMETIMES.
Assignee | ||
Comment 7•12 years ago
|
||
Attachment #755612 -
Flags: review?(felash)
Reporter | ||
Comment 8•12 years ago
|
||
Comment on attachment 755612 [details]
patch
reviewed on github, mostly nits
Comment 9•12 years ago
|
||
Before merging, I would like to confirm with Ayman.
@Ayman: Do we need this alert in airplane mode? Thanks!
Flags: needinfo?(aymanmaat)
Reporter | ||
Comment 10•12 years ago
|
||
If we don't need the alert anymore, I think part of the patch is still necessary: we can't add the class on a dom node which doesn't exist :)
Reporter | ||
Comment 11•12 years ago
|
||
To be very clear, we have this alert at least since I started to work on the Sms app :) I'd be happy to remove this code (I love removing code ;) ) but this is here since ages. It was failing in this specific case only.
Comment 12•12 years ago
|
||
(In reply to Borja Salguero [:borjasalguero] from comment #9)
> Before merging, I would like to confirm with Ayman.
>
> @Ayman: Do we need this alert in airplane mode? Thanks!
Hey borja, yes we do need this alert... original plan was to provide the end user a direct rout from the alter to turn flight mode off... but that apparently is technically not possible at the moment.. but we still keep the alert and improve its functionality when we can.
Flags: needinfo?(aymanmaat)
Comment 13•12 years ago
|
||
...in my personal opinion, the alerts articulation is a little clumsy. We dont need to block the user from continuing on their path by using a full screen message to inform them that they are in flight mode they must cancel in order to proceed. We do enough notification within in the message thread itself with the error state of the message module itself. We should have a temporary message that informs but does not intrude like what we display when the users moves between SMS packets... However the full screen message is in line with building blocks, and we were blocked from implementing a temporary message at the time the flight mode message was added because there was no such building block.
Reporter | ||
Comment 14•12 years ago
|
||
I agree that the full screen message is most useful if we can do some action on it. Maybe we should check for the flight mode setting earlier and display a banner message asap in the Sms app.
But let's do that in another bug if you will ?
Comment 15•12 years ago
|
||
> But let's do that in another bug if you will ?
Totally! ...comment 13 was just a stream of consciousness as i was looking at the UX ;)
Reporter | ||
Comment 16•12 years ago
|
||
Comment on attachment 755612 [details]
patch
r=me
cheers !
Attachment #755612 -
Flags: review?(felash) → review+
Assignee | ||
Comment 17•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 18•11 years ago
|
||
If this is intented for uplift to v1.1 please nominate and fill out the approval form with risk evaluation, testing done, regressing bug, etc.
Comment 19•11 years ago
|
||
It's strange, I am not reproducing the bug in v1-train but the patch is not uplifted in that branch. Requesting QA to confirm it.
Flags: needinfo?(bov)
Keywords: qawanted
Comment 20•11 years ago
|
||
Unable to repro issue on
Unagi Build ID: 20130605070207
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18/rev/09dc1ae3b1b5
Gaia: 92a6e36957145cdb2ac8867e5cdba8ecf12308fc
When sending a sms message with airplane mode enabled message is now displayed saying 'Airplane Mode Activated: To send a message; first disable airplane mode"
Keywords: qawanted
Comment 21•11 years ago
|
||
Unagi Build ID:Gecko-363855a.Gaia-92a6e36 (20130605180132)
Gaia: 92a6e36957145cdb2ac8867e5cdba8ecf12308fc
STEPS (Fisrt SMS)
1.Turn on flight mode
2.Send a SMS to a new number (not in contacts). It must be the first SMS, there is no previous thread.
Expected:
* The message is in error and the "flight mode" alert dialog screen should be displayed.
Actual:
* The SMS is in error, but the "flight mode" alert dialog screen is not displayed. No message informs about what's happening.
Note that first time I tried it, an alert message "Airplane mode on" appeared in the thread view (see attachment 2013 [details]-06-05-20-57-34), but did not appear in the following "First SMS" tests (see attachment 2013 [details]-06-05-21-38-52), .
Then...
STEPS (Existing SMS thread)
1.Turn on flight mode
2.Send a SMS to a new number (not in contacts)that already has a SMS thread.
Expected:
* The message is in error and the "flight mode" alert dialog screen should be displayed.
Actual:
* The SMS is in error, and the "flight mode" alert dialog is displayed showing 'Airplane Mode Activated: To send a message; first disable airplane mode".
Comment 22•11 years ago
|
||
Comment 23•11 years ago
|
||
Comment 24•11 years ago
|
||
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:
The user doesn't receive a warning when trying to send a SMS on airplane mode to a new number
Testing completed:
Risk to taking this patch (and alternatives if risky): In my opinion, risk is low-medium, as we mess with the thread ui and warning messages, but I'd like to ask Michael for his opinion, as he made the code changes and knows it better
String or UUID changes made by this patch:
Attachment #759026 -
Flags: approval-gaia-v1?
Flags: needinfo?(mbudzynski)
Comment 25•11 years ago
|
||
this is blocking a blocker from merging clean so I'm picking it onto the train:
uplifted master: 747f412b370039569e37161e43185427ad20fbb8
to v1-train: 8eb11d8de3fa994e6db893a688df4b4d1dabb66d
Comment 26•11 years ago
|
||
Cleaning flags as it's solved and uplifted
Flags: needinfo?(mbudzynski)
Flags: needinfo?(bov)
Comment 27•11 years ago
|
||
Comment on attachment 759026 [details]
Approval request
This has been already uplifted
Attachment #759026 -
Flags: approval-gaia-v1?
Reporter | ||
Comment 28•11 years ago
|
||
Note for next time: Corey, you're supposed to wait for approval before uplifting, even if it's blocking another uplift. Also, having conflicts is not a good reason to uplift, as you can resolve conflict by hand.
(but if you're confident that the conflicting bug will get approved, then you can just wait of course).
You need to log in
before you can comment on or make changes to this bug.
Description
•