Closed Bug 1079758 Opened 10 years ago Closed 10 years ago

Send notification on start log shake capture

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.1 S7 (24Oct)

People

(Reporter: gerard-majax, Assigned: gerard-majax)

References

Details

(Whiteboard: [systemsfe])

Attachments

(2 files, 1 obsolete file)

For better user feedback, since dumping logs can take some time, it could be good to send a first notification when we start the capture.
Assignee: nobody → lissyx+mozillians
Attachment #8501646 - Flags: review?(anygregor)
Attached file Gaia PR
Not yet with tests.
Comment on attachment 8501653 [details] [review]
Gaia PR

Jan, I'm asking you the review given the dev-gaia thread and Fabrice's reply.
Try looks green: https://treeherder.mozilla.org/ui/#/jobs?repo=gaia-try&revision=6ca27f1bfb75
Attachment #8501653 - Flags: review?(janx)
Whiteboard: [systemsfe]
Comment on attachment 8501646 [details] [diff] [review]
Send logshake capture start event r=gwagner

Review of attachment 8501646 [details] [diff] [review]:
-----------------------------------------------------------------

::: b2g/components/LogShake.jsm
@@ +57,5 @@
>  const DEVICE_MOTION_EVENT = 'devicemotion';
>  const SCREEN_CHANGE_EVENT = 'screenchange';
>  const CAPTURE_LOGS_ERROR_EVENT = 'capture-logs-error';
>  const CAPTURE_LOGS_SUCCESS_EVENT = 'capture-logs-success';
> +const CAPTURE_LOGS_START_EVENT = 'capture-logs-start';

Optional super-nit: Defining the START event above the ERROR and SUCCESS events would be slightly more readable.
Attachment #8501646 - Flags: feedback+
Comment on attachment 8501653 [details] [review]
Gaia PR

Try is green and it works great.

(Unrelated issue, since I don't have an SD card, LogShake fails with "The logs could not be saved [object Object]".)

r=me, nice one!
Attachment #8501653 - Flags: review?(janx) → review+
Comment on attachment 8502271 [details] [diff] [review]
Send logshake capture start event r=gwagner

Carrying f+ from attachment 8501646 [details] [diff] [review]

Addressed nit.
Attachment #8501646 - Attachment is obsolete: true
Attachment #8502271 - Flags: review?(anygregor)
Attachment #8502271 - Flags: feedback+
Attachment #8501646 - Flags: review?(anygregor)
If this string is going to be exposed somewhere in the UI, it should be

> Capturing logs…

(no space before ellipsis, single unicode character for ellipsis)
Attachment #8502271 - Flags: review?(anygregor) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/ec008b16c0d4
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.1 S7 (24Oct)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: