Closed
Bug 1156361
Opened 10 years ago
Closed 9 years ago
Telemetry redesign: Consolidate date & string utility functions in TelemetryUtils.jsm
Categories
(Toolkit :: Telemetry, defect, P1)
Toolkit
Telemetry
Tracking
()
RESOLVED
FIXED
mozilla49
People
(Reporter: gfritzsche, Assigned: Dexter)
References
Details
(Whiteboard: [unifiedTelemetry] [measurement:client])
Attachments
(1 file)
|
6.47 KB,
patch
|
gfritzsche
:
review+
|
Details | Diff | Splinter Review |
| Reporter | ||
Comment 1•10 years ago
|
||
Bug 1140037 started consolidating some things in TelemetryUtils.jsm.
Depends on: 1140037
| Reporter | ||
Updated•10 years ago
|
Whiteboard: [b5] [unifiedTelemetry]
| Reporter | ||
Updated•10 years ago
|
Whiteboard: [b5] [unifiedTelemetry] → [unifiedTelemetry]
| Reporter | ||
Updated•10 years ago
|
Points: --- → 1
Priority: -- → P3
Whiteboard: [unifiedTelemetry] → [unifiedTelemetry] [measurement:client]
| Reporter | ||
Updated•9 years ago
|
Priority: P3 → P1
| Reporter | ||
Updated•9 years ago
|
Priority: P1 → P2
| Assignee | ||
Comment 2•9 years ago
|
||
It looks like there's not much left to be done:
- function toLocalTimeISOString(date): only used in TelemetrySession.jsm [1]
- function getLocale(): can be removed, it's not used by TelemetrySession anymore [2]
- function getMsSinceProcessStart(): used by TelemetrySession and potentially by TelemetryLog.jsm [3]
- function tomorrow(date): can be removed from TelemetrySend, no longer used [4]
- function limitStringToLength(aString, aMaxLength): used by TelemetryEnvironment [5]
[1] - https://dxr.mozilla.org/mozilla-central/rev/6adc822f5e27a55551faeb6c47a9bd8b0859a23b/toolkit/components/telemetry/TelemetrySession.jsm#1014-1015
[2] - https://dxr.mozilla.org/mozilla-central/rev/6adc822f5e27a55551faeb6c47a9bd8b0859a23b/toolkit/components/telemetry/TelemetrySession.jsm#108
[3] - https://dxr.mozilla.org/mozilla-central/rev/6adc822f5e27a55551faeb6c47a9bd8b0859a23b/toolkit/components/telemetry/TelemetryLog.jsm#18
[4] - https://dxr.mozilla.org/mozilla-central/rev/6adc822f5e27a55551faeb6c47a9bd8b0859a23b/toolkit/components/telemetry/TelemetrySend.jsm#129
[5] - https://dxr.mozilla.org/mozilla-central/search?q=limitStringToLength&redirect=false&case=true
Assignee: nobody → alessio.placitelli
Priority: P2 → P1
| Assignee | ||
Comment 3•9 years ago
|
||
Georg, what do you think about moving these to TelemetryUtils:
- toLocalTimeISOString
- getMsSinceProcessStart
- limitStringToLength
And removing the others? Anything else you can think of?
Flags: needinfo?(gfritzsche)
| Reporter | ||
Comment 4•9 years ago
|
||
(In reply to Alessio Placitelli [:Dexter] from comment #3)
> Georg, what do you think about moving these to TelemetryUtils:
>
> - toLocalTimeISOString
> - getMsSinceProcessStart
> - limitStringToLength
>
> And removing the others? Anything else you can think of?
Definitely toLocalTimeISOString(), the other two are trivial local helpers so i'd only share them if we use them in multiple locations.
There are no other i can think of right now without searching.
Flags: needinfo?(gfritzsche)
| Assignee | ||
Comment 5•9 years ago
|
||
Attachment #8749704 -
Flags: review?(gfritzsche)
| Reporter | ||
Updated•9 years ago
|
Attachment #8749704 -
Flags: review?(gfritzsche) → review+
| Assignee | ||
Comment 6•9 years ago
|
||
| Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
| Assignee | ||
Updated•9 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 7•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/64ad199ede21c4ab89e4b65b5b62351a3bbe5a45
Bug 1156361 - Telemetry redesign: Consolidate date & string utility functions in TelemetryUtils.jsm. r=gfritzsche
| Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 8•9 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in
before you can comment on or make changes to this bug.
Description
•