Deduplicate code for displaying multi-store data in about:telemetry
Categories
(Toolkit :: Telemetry, enhancement, P3)
Tracking
()
| 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.
| Reporter | ||
Updated•3 years ago
|
Updated•2 years ago
|
| Reporter | ||
Comment 2•2 years ago
|
||
I assigned the bug to you. Do you need more info from me of what exactly needs to be done?
| Reporter | ||
Comment 4•2 years ago
|
||
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:
- These loops and the const are essentially the same.
The code can be moved into a function and be called in both places. - The
headingsconst is used in both code paths.
It can be unified and moved to above theifbranching (line 1681)
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.
Updated•2 years ago
|
Sorry for taking so long with the patch. Could you please review it?
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
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
Comment 10•2 years ago
|
||
| bugherder | ||
Comment 11•2 years ago
|
||
| bugherder | ||
Description
•