Closed Bug 1515009 Opened 3 years ago Closed 2 years ago

Deduplicate code for displaying multi-store data in about:telemetry

Categories

(Toolkit :: Telemetry, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: janerik, Assigned: l.khadka, Mentored)

References

Details

(Whiteboard: [good next bug][lang=js])

Attachments

(1 file, 2 obsolete files)

Bug 1498169 added displaying multi-store data.
That lead to a bit of code duplication due to handling the multi-store and non-multi-store case.

This can probably be simplified a bit.
Mentor: jrediger
Whiteboard: [good next bug][lang=js]
Priority: -- → P3

I would like to work on this

I assigned the bug to you. Do you need more info from me of what exactly needs to be done?

Assignee: nobody → l.khadka

Yes, I'd really like to get some help with this.

First, sorry for taking longer than necessary to write down some guidance.

I assume you already have a Firefox build set up. If not download and build the Firefox source code.

Going through the code again just minor duplications are left, but still worthwhile to tackle.
The following are pieces that should be deduplicated:

If you find any other obvious code duplication while reading the code, feel free to work on that as well.
Don't bother with simple 1-2 lines of duplication or code that would require too much shuffling around.

You can test any changes by building Firefox using mach build, then running it with mach run and browsing to about:telemetry.
There check that histograms, keyed histograms, scalars and keyed scalars are displayed correctly and that in the left menu you see the main store.

Once you're done submit the patch for review. Mark me as a reviewer so I'll get an email to come look at your code.
See the guide on how to Submit a Patch if you haven't done that before.

Don't hesitate to ask if there's anything unclear.

Attachment #9044470 - Attachment description: Bug 1515009 Deduplicate code for displaying multi-store data in about:telemetry :janerik → Bug 1515009 Deduplicate code for displaying multi-store data in about:telemetry. r=:janerik

Sorry for taking so long with the patch. Could you please review it?

Attachment #9044470 - Attachment description: Bug 1515009 Deduplicate code for displaying multi-store data in about:telemetry. r=:janerik → Bug 1515009 Deduplicate code for displaying multi-store data in about:telemetry :janerik

Depends on D20083

Depends on D20092

Attachment #9044786 - Attachment is obsolete: true
Attachment #9044497 - Attachment is obsolete: true
Attachment #9044470 - Attachment description: Bug 1515009 Deduplicate code for displaying multi-store data in about:telemetry :janerik → Bug 1515009 Deduplicate code for displaying multi-store data in about:telemetry
Pushed by jrediger@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1044ef0e7225
Deduplicate code for displaying multi-store data in about:telemetry r=janerik
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in before you can comment on or make changes to this bug.