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)
DevTools
Netmonitor
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)
|
39.58 KB,
patch
|
pbro
:
review+
|
Details | Diff | Splinter Review |
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.
| Reporter | ||
Updated•8 years ago
|
Updated•8 years ago
|
status-firefox57:
--- → fix-optional
| Assignee | ||
Comment 1•8 years ago
|
||
Can I take this? I wanna start collaborating
Comment 2•8 years ago
|
||
(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
| Reporter | ||
Comment 3•8 years ago
|
||
Hey Miguel. Are you still interested in taking this one? Do you need any help?
Flags: needinfo?(pbrosset)
| Reporter | ||
Comment 4•8 years ago
|
||
I meant to needinfo Miguel, not myself obviously ...
Flags: needinfo?(pbrosset) → needinfo?(migueluseche)
| Assignee | ||
Comment 5•8 years ago
|
||
Yes, I just need to resolve how to avoid losing history changes for bug 1402391 and I'll do this.
Flags: needinfo?(migueluseche)
| Assignee | ||
Comment 6•8 years ago
|
||
1402391 is finished so I'm gonna move to work on this. I'll send a patch in few days.
| Assignee | ||
Comment 7•8 years ago
|
||
This is the patch to rename files and update code to support it. I applied tests and they passed.
Flags: needinfo?(pbrosset)
| Reporter | ||
Comment 8•8 years ago
|
||
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":
| Reporter | ||
Updated•8 years ago
|
Flags: needinfo?(pbrosset)
| Assignee | ||
Comment 9•8 years ago
|
||
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)
| Reporter | ||
Comment 10•8 years ago
|
||
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)
| Reporter | ||
Comment 11•8 years ago
|
||
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+
| Reporter | ||
Updated•8 years ago
|
Keywords: checkin-needed
| Assignee | ||
Comment 12•8 years ago
|
||
Thanks, sorry about the patch. I don't know what happened.
| Reporter | ||
Comment 13•8 years ago
|
||
That's ok. This was easy to fix. Thanks for your work!
Comment 14•8 years ago
|
||
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
Comment 15•8 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
Comment 16•8 years ago
|
||
Please don't case-sensitive rename files. Windows git freaks out when checking out across them.
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•