Closed
Bug 1122512
Opened 9 years ago
Closed 9 years ago
[Messages][Drafts] Unsaved draft is silently discarded when user goes to report or participants panel
Categories
(Firefox OS Graveyard :: Gaia::SMS, defect)
Tracking
(b2g-v2.0 unaffected, b2g-v2.0M unaffected, b2g-v2.1 unaffected, b2g-v2.2 verified, b2g-master verified)
VERIFIED
FIXED
2.2 S4 (23jan)
Tracking | Status | |
---|---|---|
b2g-v2.0 | --- | unaffected |
b2g-v2.0M | --- | unaffected |
b2g-v2.1 | --- | unaffected |
b2g-v2.2 | --- | verified |
b2g-master | --- | verified |
People
(Reporter: azasypkin, Assigned: salva)
References
Details
(Keywords: regression)
Attachments
(1 file)
46 bytes,
text/x-github-pull-request
|
azasypkin
:
review+
bajaj
:
approval-gaia-v2.2+
|
Details | Review |
It's a regression from bug 1091486. STR: * Open Messages app and navigate to any active thread; * Enter some text into message input; * Long tap on any existing message in the thread and choose "View message report"; * or if it's group MMS tap on header to enter participants view; * Exit from report or participants panel; Expected result: user should see his message draft created on step #2 above; Actual result: unsaved draft is silently discarded when user navigates to report or participants panel; The patch for this bug should definitely include integration tests.
Reporter | ||
Comment 1•9 years ago
|
||
Hey Salva, could you please look into that? If you don't have time, please let us know and we try to fix it by ourselves in the next sprint. Thanks!
Flags: needinfo?(salva)
Assignee | ||
Comment 2•9 years ago
|
||
I'll take a look next Monday. Assigning to me. If you thinks this is too late, steal it! Have a good weekend.
Assignee: nobody → salva
Flags: needinfo?(salva)
Reporter | ||
Comment 3•9 years ago
|
||
(In reply to Salvador de la Puente González [:salva] from comment #2) > I'll take a look next Monday. Assigning to me. If you thinks this is too > late, steal it! Have a good weekend. That's perfectly fine. Thanks, Salva!
Comment 4•9 years ago
|
||
Oleg, I wonder if the draft saving mechanism should be in onBeforeLeave, so that it could be shared between all cases?
Assignee | ||
Comment 5•9 years ago
|
||
Actually, this is not related with drafts but with clearing the input, precisely becaus I moved that code to the before-leave hook. I'm going to try to restore the former behaviour but it does not involve drafts.
Assignee | ||
Comment 6•9 years ago
|
||
Hi Oleg Here you have the patch restoring the functionality. Woould you mind to review it?
Attachment #8551303 -
Flags: review?(azasypkin)
Reporter | ||
Comment 7•9 years ago
|
||
Comment on attachment 8551303 [details] [review] Preservint message input text when navigating to report or group details (In reply to Julien Wajsberg [:julienw] from comment #4) > Oleg, I wonder if the draft saving mechanism should be in onBeforeLeave, so > that it could be shared between all cases? I'm afraid that it won't be called for activity case then. But agree, ideally I would like to call navigation lifecycle methods for activity case too (before-/afterLeave) so that we can proper save and clean-up things in single place. (In reply to Salvador de la Puente González [:salva] from comment #5) > Actually, this is not related with drafts but with clearing the input. Well, clearing the input actually silently and permanently discards draft if thread has it :) Regarding the patch - I think it's good! Just left few nits in tests at GitHub before we can land. Also note that composer tests are currently disabled on Treeherder so that we can rely only on local run for now, see bug 1121766 for details. Thanks!
Attachment #8551303 -
Flags: review?(azasypkin) → review+
Assignee | ||
Comment 8•9 years ago
|
||
master: 621b77587cd37338e965006f243541017c3ee825
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 9•9 years ago
|
||
Comment on attachment 8551303 [details] [review] Preservint message input text when navigating to report or group details [Approval Request Comment] [Bug caused by] (feature/regressing bug #): bug 1091486 [User impact] if declined: high, some messages will be discarded upon certain user actions. [Testing completed]: yes, with integration and unit tests [Risk to taking this patch] (and alternatives if risky): low [String changes made]: none
Attachment #8551303 -
Flags: approval-gaia-v2.2?
Updated•9 years ago
|
Target Milestone: --- → 2.2 S4 (23jan)
Updated•9 years ago
|
Attachment #8551303 -
Flags: approval-gaia-v2.2? → approval-gaia-v2.2+
Comment 10•9 years ago
|
||
v2.2: https://github.com/mozilla-b2g/gaia/commit/59f00d7b542efa4eb60aff9395e85ab9246f657f
Comment 11•9 years ago
|
||
This issue is verified fixed on Flame 2.2 and Master. Result: The draft is saved properly when the user returns form the message report. Device: Flame 2.2 (319mb, full flash) Build ID: 20150130002501 Gaia: d6141fa3208f224393269e17c39d1fe53b7e6a05 Gecko: 63b63054948d Gonk: e7c90613521145db090dd24147afd5ceb5703190 Version: 37.0a2 (2.2) Firmware Version: v18D-1 User Agent: Mozilla/5.0 (Mobile; rv:37.0) Gecko/37.0 Firefox/37.0 Device: Flame Master (319mb, full flash) Build ID: 20150130010210 Gaia: 8238eeacc7030b2cdbf7ab4eba2f36779b702599 Gecko: 29b05d283b00 Gonk: e7c90613521145db090dd24147afd5ceb5703190 Version: 38.0a1 (3.0) Firmware Version: v18D-1 User Agent: Mozilla/5.0 (Mobile; rv:38.0) Gecko/38.0 Firefox/38.0
Status: RESOLVED → VERIFIED
QA Whiteboard: [QAnalyst-Triage?]
Flags: needinfo?(ktucker)
Updated•9 years ago
|
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(ktucker)
You need to log in
before you can comment on or make changes to this bug.
Description
•