Closed Bug 1469522 Opened 6 years ago Closed 6 years ago

Remove savedPings from simpleMeasurements

Categories

(Toolkit :: Telemetry, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: Dexter, Assigned: is2ei, Mentored)

References

(Blocks 1 open bug)

Details

(Whiteboard: [lang=js][good-first-bug])

Attachments

(1 file, 1 obsolete file)

This bug is about removing the |savedPings| field from the |simpleMeasurements| [1]. To do this: 1 - Remove savedPings from both the docs and the TelemetrySession.jsm file as reported in [2]; 2 - Remove the logic that exports and computes the saved pings count in TelemetryStorage.jsm - track back the implementation from [3] and remove all the related code. 3 - Fix any test failure by removing the offending code. To run test coverage locally: > ./mach xpcshell-test toolkit/components/telemetry/tests/unit [1] - https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/docs/telemetry/data/main-ping.html#simplemeasurements [2] - https://searchfox.org/mozilla-central/search?q=savedpings [3] - https://searchfox.org/mozilla-central/rev/f822a0b61631cbb38901569e69b4967176314aa8/toolkit/components/telemetry/TelemetryStorage.jsm#420
Blocks: 1201022
Priority: -- → P3
Whiteboard: [lang=js][good-first-bug]
Hi Alessio, Could I work on this issue?
Flags: needinfo?(alessio.placitelli)
(In reply to Issei Horie [:is2ei] from comment #1) > Hi Alessio, > > Could I work on this issue? Sure! Let me know if anything is unclear.
Assignee: nobody → is2ei.horie
Flags: needinfo?(alessio.placitelli)
Status: NEW → ASSIGNED
Attached patch bug-1469522.patch (obsolete) (deleted) — Splinter Review
I created a patch. Could you review it, please?
Attachment #8987350 - Flags: review?(alessio.placitelli)
Comment on attachment 8987350 [details] [diff] [review] bug-1469522.patch Review of attachment 8987350 [details] [diff] [review]: ----------------------------------------------------------------- Hi! Thank you for your patch :) It looks good overall, there's one thing that we should fix though. Please note that there's a reference to TelemetryStorage.pendingPingCount (https://searchfox.org/mozilla-central/rev/39b790b29543a4718d876d8ca3fd179d82fc24f7/toolkit/components/telemetry/TelemetrySend.jsm#1009-1013), which was just removed. I think it's safe to change that to |this.pendingPingCount|. It should have made the test fail. Did you run the tests locally?
Attachment #8987350 - Flags: review?(alessio.placitelli)
Thanks for your comment! :Dexter > I think it's safe to change that to |this.pendingPingCount|. I see! I will fix it. > Did you run the tests locally? I run `./mach xpcshell-test toolkit/components/telemetry/tests/unit` and it passed. Is there other tests do I need to run?
Flags: needinfo?(alessio.placitelli)
(In reply to Issei Horie [:is2ei] from comment #5) > Thanks for your comment! :Dexter Thank you for your work! ;) > > Did you run the tests locally? > > I run `./mach xpcshell-test toolkit/components/telemetry/tests/unit` and it > passed. > Is there other tests do I need to run? No, that should be enough. It probably means that the part that should have failed wasn't covered by tests :'( Eugh :(
Flags: needinfo?(alessio.placitelli)
Attached patch bug-1469522.patch (deleted) — Splinter Review
I updated my patch. Could you review it, please?
Attachment #8987350 - Attachment is obsolete: true
Attachment #8988516 - Flags: review?(alessio.placitelli)
Comment on attachment 8988516 [details] [diff] [review] bug-1469522.patch Review of attachment 8988516 [details] [diff] [review]: ----------------------------------------------------------------- This looks good to me now, thanks! Let me push it to try for you!
Attachment #8988516 - Flags: review?(alessio.placitelli) → review+
Keywords: checkin-needed
Pushed by ebalazs@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/de900ae11c02 Remove savedPings from simpleMeasurements. r=Dexter
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: