Closed
Bug 1196219
Opened 9 years ago
Closed 9 years ago
Remove RECORD_PREF_NOTIFY_ONLY from TelemetryEnvironment
Categories
(Toolkit :: Telemetry, defect)
Toolkit
Telemetry
Tracking
()
RESOLVED
FIXED
mozilla43
People
(Reporter: gfritzsche, Assigned: robertthyberg)
References
Details
(Whiteboard: [lang=js] [good first bug])
Attachments
(1 file, 1 obsolete file)
2.12 KB,
patch
|
gfritzsche
:
review+
|
Details | Diff | Splinter Review |
We don't actually use the RECORD_PREF_NOTIFY_ONLY behavior for any pref, so we should remove it and any logic that handles it:
https://dxr.mozilla.org/mozilla-central/search?q=path%3Atoolkit%2Fcomponents%2Ftelemetry%2F+RECORD_PREF_NOTIFY_ONLY&redirect=true&case=true&limit=67&offset=0
Comment 1•9 years ago
|
||
Are you sure we don't need it? There are a bunch of things in the settings block which are based on prefs and can change mid-run.
Reporter | ||
Comment 2•9 years ago
|
||
Yes, we have 3 different behaviors:
RECORD_PREF_STATE: 1, // Don't record the preference value
RECORD_PREF_VALUE: 2, // We only record user-set prefs.
RECORD_PREF_NOTIFY_ONLY: 3, // Record nothing, just notify of changes.
Everything we do is covered by the first two, the third is unused and of dubious value.
should i remove it from other files as well? or just from TelemetryEnvironmret
Reporter | ||
Comment 6•9 years ago
|
||
Per the code search in comment 0 this isn't used anywhere else, so removing from TelemetryEnvironment should be all.
Attachment #8650145 -
Flags: review?(gavin.sharp)
Reporter | ||
Updated•9 years ago
|
Attachment #8650145 -
Attachment is patch: true
Attachment #8650145 -
Flags: review?(gavin.sharp) → review?(gfritzsche)
Reporter | ||
Comment 8•9 years ago
|
||
Comment on attachment 8650145 [details] [diff] [review]
removed references to RECORD_PREF_NOTIFY and adjusted the logic relating to it
Review of attachment 8650145 [details] [diff] [review]:
-----------------------------------------------------------------
This looks good to me with the below fixed.
Note that we have to finish bug 1192811 first before we can land this bug.
::: toolkit/components/telemetry/TelemetryEnvironment.jsm
@@ -768,3 @@
> continue;
> }
> -
Don't remove the empty line here, there is no need to.
Attachment #8650145 -
Flags: review?(gfritzsche) → review+
Reporter | ||
Comment 10•9 years ago
|
||
Pushed to try together with bug 1192811:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=3f073abd2da6
Flags: needinfo?(gfritzsche)
Reporter | ||
Updated•9 years ago
|
Attachment #8650145 -
Attachment is obsolete: true
Reporter | ||
Updated•9 years ago
|
Attachment #8650690 -
Flags: review+
Reporter | ||
Comment 12•9 years ago
|
||
The try run from comment 10 is all green, so setting checkin-needed.
Reporter | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 13•9 years ago
|
||
Keywords: checkin-needed
Comment 14•9 years ago
|
||
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in
before you can comment on or make changes to this bug.
Description
•