Closed Bug 1407548 Opened 7 years ago Closed 7 years ago

cache l10n values in request-list-empty-notice

Categories

(DevTools :: Netmonitor, enhancement, P3)

57 Branch
enhancement

Tracking

(firefox57 fix-optional, firefox58 fixed)

RESOLVED FIXED
Firefox 58
Tracking Status
firefox57 --- fix-optional
firefox58 --- fixed

People

(Reporter: gasolin, Assigned: pradeepgangwar, Mentored)

References

Details

(Keywords: good-first-bug, Whiteboard: [good first bug][mentor-lang=zh][lang=js])

Attachments

(1 file)

as bug 1404130 we found L10N APIs has high cost so we'd like cache as much strings in each component as possible

you can refer the `mdn-link` component, define L10N strings as `const` like
http://searchfox.org/mozilla-central/source/devtools/client/netmonitor/src/components/mdn-link.js#17
Mentor: gasolin
See Also: → 1404130
Whiteboard: [good first bug][mentor-lang=zh][lang=js]
Blocks: 1407550
No longer blocks: 1407550
I referred the file given in link. But I didn't find any L10N string other than in line 17. Can I get more details about the file(s) which needs modification.
Flags: needinfo?(gasolin)
Blocks: 1407552
No longer blocks: 1407552
Pradeep, please take a look on request-list-empty-notice.js, not mdn-link.js

http://searchfox.org/mozilla-central/source/devtools/client/netmonitor/src/components/request-list-empty-notice.js#52
Flags: needinfo?(gasolin)
Thanks! Can you assign this to me. I will be happy to work on this.
Flags: needinfo?(gasolin)
Assignee: nobody → pradeepgangwar39
Flags: needinfo?(gasolin)
Keywords: good-first-bug
Comment on attachment 8917539 [details]
Bug 1407548- Cache L10N values in request-list-empty-notice;

https://reviewboard.mozilla.org/r/188504/#review193952

looks good, let's see how auto test goes. Thanks for contribution!
Attachment #8917539 - Flags: review?(gasolin) → review+
After seeing many test failing I was able to figure what caused it. I missed a ')' in Line 62. I request you to re-test the patch. Sorry for the inconvenience caused.
Flags: needinfo?(gasolin)
Thanks for the update! Triggered another test.
Flags: needinfo?(gasolin)
Sir, I need help regarding what caused test failure. I am unable to figure out.
Flags: needinfo?(gasolin)
Pushed by flin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/dfb2cb2683f1
Cache L10N values in request-list-empty-notice; r=gasolin
Thanks for keep tracking the progress, the error in Tree herder said it's an intermittent and seems not related to this bug, so this bug is ready to land :)
Flags: needinfo?(gasolin)
https://hg.mozilla.org/mozilla-central/rev/dfb2cb2683f1
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: