Closed Bug 1058419 Opened 10 years ago Closed 10 years ago

[Devices][Storage][Flame] SD card is an option for default media location when no SD card inserted

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.1+, b2g-v2.1 verified, b2g-v2.2 verified)

VERIFIED FIXED
2.1 S5 (26sep)
blocking-b2g 2.1+
Tracking Status
b2g-v2.1 --- verified
b2g-v2.2 --- verified

People

(Reporter: ashiue, Assigned: iliu)

References

Details

Attachments

(1 file)

Device    Flame
Gaia      1934a2297ffc0d90424cd9cd3294c4a8c74a7333
Gecko     https://hg.mozilla.org/mozilla-central/rev/18901d4f3edd
BuildID   20140825160203
Version   34.0a1

No SD card be inserted at device

STR:
1. New flash device with the latest build
2. Go to Settings -> Media storage -> Advanced section

Expected result:
Default media location is Internal and user could not change it

Actual result:
User can change the media location to SD card
[Blocking Requested - why for this release]:
blocking-b2g: --- → 2.1?
QA Whiteboard: [COM=Storage]
blocking-b2g: 2.1? → 2.1+
Assignee: nobody → iliu
Will have to give a patch to disable default media location selection.
Status: NEW → ASSIGNED
Target Milestone: --- → 2.1 S4 (12sep)
Attached file pull request 23881
Hi Arthur, could you please help to review my pull request? The patch is aiming to update default media location selection menu while settings::mediaStorage page init. And I will give another patch for fixing bug 1057989(default media location not update while remove SD card in the background). Thanks.
Comment on attachment 8486948 [details] [review]
pull request 23881

Miss to set review flag.
Attachment #8486948 - Flags: review?(arthur.chen)
Blocks: 1057989
Comment on attachment 8486948 [details] [review]
pull request 23881

Since Arthur is PTO, I request reviewer from EJ.
Attachment #8486948 - Flags: review?(arthur.chen) → review?(ejchen)
Comment on attachment 8486948 [details] [review]
pull request 23881

@Ian,

basically this patch is good to me.

I left some comments on Github and please go check it there.

Thanks !
Attachment #8486948 - Flags: review?(ejchen)
Comment on attachment 8486948 [details] [review]
pull request 23881

Thanks for EJ's reviewing effort. I have updated my patch with your suggestion. Please help to review it again:)
Attachment #8486948 - Flags: review?(ejchen)
Comment on attachment 8486948 [details] [review]
pull request 23881

Thanks Ian,

let's refactor this panel in https://bugzilla.mozilla.org/show_bug.cgi?id=973451
Attachment #8486948 - Flags: review?(ejchen) → review+
Since the pr is landed, we can close the issue now.

Gaia/master:  5677c70ff8372c5d5a83f002e248503907b376e6
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment on attachment 8486948 [details] [review]
pull request 23881

[Approval Request Comment]
[Bug caused by] (feature/regressing bug #): bug 1058419
[User impact] if declined: SD card is an option for default media location when no SD card inserted. So that data will be saved on none existed SD card.
[Testing completed]: Passed on Try-server
[Risk to taking this patch] (and alternatives if risky): Low.
[String changes made]: None
Attachment #8486948 - Flags: approval-gaia-v2.1?
Thanks EJ for reviewing the patch!
Arthur, can you add new tests?
ni Ian for Comment 12
Flags: needinfo?(iliu)
Per offline discussion before, we plan to add unit test after refactor work of media storage panel completely(Bug 973451). For the code base currently, it's hard to do some unit test. Because UI refreshing and logic control are depended too much. In case of Gij/Gip, the default media location menu is always disabled in b2g-desktop. So that we cannot make the user story to construct the integration test.
Flags: needinfo?(iliu)
Attachment #8486948 - Flags: approval-gaia-v2.1? → approval-gaia-v2.1+
Verified on

[2.2]
Gaia-Rev        03d7bcad57ea281869976a9aed0a38849f7c8bc5
Gecko-Rev       https://hg.mozilla.org/mozilla-central/rev/1735ff2bb23e
Build-ID        20140924160204
Version         35.0a1

[2.1]
Gaia-Rev        8061ab487d42cbc49b329fd68b9ca90e0fe477e6
Gecko-Rev       https://hg.mozilla.org/releases/mozilla-aurora/rev/e970bc96f8b5
Build-ID        20140925000204
Version         34.0a2
Status: RESOLVED → VERIFIED
Issue verified fixed on Flame 2.1 and Flame 2.2

Device: Flame 2.1 KK (319mb) (Full Flash)
BuildID: 20141011000201
Gaia: f5d4ff60ffed8961f7d0380ada9d0facfdfd56b1
Gecko: d813d79d3eae
Gonk: 52c909e821d107d414f851e267dedcd7aae2cebf
Version: 34.0a2 (2.1)
Firmware: V180
User Agent: Mozilla/5.0 (Mobile; rv:34.0) Gecko/34.0 Firefox/34.0

Device: Flame 2.2 Master KK (319mb) (Full Flash)
BuildID: 20141011040204
Gaia: 95f580a1522ffd0f09302372b78200dab9b6f322
Gecko: 3f6a51950eb5
Gonk: 52c909e821d107d414f851e267dedcd7aae2cebf
Version: 35.0a1 (2.2 Master)
Firmware: V180
User Agent: Mozilla/5.0 (Mobile; rv:35.0) Gecko/35.0 Firefox/35.0

Default storage options greyed out and when SD card is not inserted in device.
QA Whiteboard: [COM=Storage] → [COM=Storage][QAnalyst-Triage?]
Flags: needinfo?(ktucker)
QA Whiteboard: [COM=Storage][QAnalyst-Triage?] → [COM=Storage][QAnalyst-Triage+]
Flags: needinfo?(ktucker)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: