Closed Bug 1402390 Opened 8 years ago Closed 8 years ago

CamelCase all React component files in \devtools\client\netmonitor\src\components\

Categories

(DevTools :: Netmonitor, enhancement, P3)

enhancement

Tracking

(firefox57 fix-optional, firefox58 fixed)

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

People

(Reporter: pbro, Assigned: migueluseche, Mentored)

References

Details

(Keywords: good-first-bug)

Attachments

(1 file, 2 obsolete files)

We recently agreed to name our React component file names using the CamelCase convention. However the files in \devtools\client\netmonitor\src\components\ do not follow this convention, so let's rename them. This is an easy fix, but make sure you read the contribution docs before starting: http://docs.firefox-dev.tools/ so that you can build Firefox locally and verify that things still work after your change. After building, just running the built Firefox and opening the network panel should be enough of a test that things still work.
Blocks: 1402359
No longer blocks: 1402387
Can I take this? I wanna start collaborating
(In reply to migueluseche from comment #1) > Can I take this? I wanna start collaborating Excellent, assigned to you! Honza
Assignee: nobody → migueluseche
Status: NEW → ASSIGNED
Hey Miguel. Are you still interested in taking this one? Do you need any help?
Flags: needinfo?(pbrosset)
I meant to needinfo Miguel, not myself obviously ...
Flags: needinfo?(pbrosset) → needinfo?(migueluseche)
Yes, I just need to resolve how to avoid losing history changes for bug 1402391 and I'll do this.
Flags: needinfo?(migueluseche)
1402391 is finished so I'm gonna move to work on this. I'll send a patch in few days.
This is the patch to rename files and update code to support it. I applied tests and they passed.
Flags: needinfo?(pbrosset)
Comment on attachment 8918720 [details] [diff] [review] Patch to rename files to PascalCase and fix any problem with it. Review of attachment 8918720 [details] [diff] [review]: ----------------------------------------------------------------- Looks great. I just see one thing missing: the webconsole also imports some of the netmonitor's components (to show network requests in the console), so you'll need to change some require paths in webconsole too. I did a quick search and found this: devtools\client\webconsole\new-console-output\components\message-types\NetworkEventMessage.js: 18: const TabboxPanel = createFactory(require("devtools/client/netmonitor/src/components/tabbox-panel")); devtools\client\webconsole\new-console-output\test\require-helper.js: 39: case "devtools/client/netmonitor/src/components/tabbox-panel":
Flags: needinfo?(pbrosset)
Attached patch bug-1402390.patch (obsolete) — Splinter Review
Updated patch to add changes for WebConsole. I didn't find any other includes in the rest of the code.
Attachment #8918720 - Attachment is obsolete: true
Flags: needinfo?(pbrosset)
Thanks for fixing this. I don't know how this happened, but your second patch does not contain all of the changes that your first patch had. So I fixed that locally, and pushed to try. I'll re-upload your complete patch here in a second. Here's the try CI url: https://treeherder.mozilla.org/#/jobs?repo=try&revision=62dafb0b420d75498f782d3b85e8959acb1fd336
Flags: needinfo?(pbrosset)
This is your patch. Just fixed to make sure all changes appear. I've preserved your name as the author. Looking good, so R+. Let's wait for try results to come back.
Attachment #8919122 - Attachment is obsolete: true
Attachment #8919650 - Flags: review+
Keywords: checkin-needed
Thanks, sorry about the patch. I don't know what happened.
That's ok. This was easy to fix. Thanks for your work!
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/9473b60e5eeb CamelCase all React component files in \devtools\client\netmonitor\src\components\. r=pbro
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
Please don't case-sensitive rename files. Windows git freaks out when checking out across them.
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: