Closed
Bug 1419370
Opened 7 years ago
Closed 6 years ago
Do not load ImmutableJS library in the Net panel iframe
Categories
(DevTools :: Netmonitor, enhancement, P2)
DevTools
Netmonitor
Tracking
(firefox59 fixed)
RESOLVED
FIXED
Firefox 59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: Honza, Assigned: msegreto, Mentored)
References
Details
(Whiteboard: good-first-bug)
Attachments
(1 file, 3 obsolete files)
3.67 KB,
patch
|
Honza
:
review+
|
Details | Diff | Splinter Review |
As soon as ImmutableJS is removed from NetPanel entirely we can stop loading the library in the iframe (and make the panel opening faster). All the following bugs needs to be fixed first: * Bug 1419366 - NetMonitor: Stop using ImmutableJS in filters reducer * Bug 1419367 - NetMonitor: Stop using ImmutableJS in sort reducer * Bug 1419368 - NetMonitor: Stop using ImmutableJS in timing-markers reducer * Bug 1419369 - NetMonitor: Stop using ImmutableJS in ui reducer Honza
Reporter | ||
Updated•7 years ago
|
Reporter | ||
Updated•7 years ago
|
Summary: Do not load ImmutableJS library int the Net panel iframe → Do not load ImmutableJS library in the Net panel iframe
Assignee | ||
Comment 1•6 years ago
|
||
Remove the use of `Immutable.is` in Toolbar, this method should map directly to `Object.is`. The props being passed to `is` were already plain JS objects from what I understand. Yarn was used to remove the Immutable JS package and webpack was configured to not include webpack from shared assets.
Comment 2•6 years ago
|
||
Marco, thanks for the patch! We just come back from the year-end vacation today, will review it soon
Assignee: nobody → msegreto
Status: NEW → ASSIGNED
Comment 3•6 years ago
|
||
Comment on attachment 8938907 [details] [diff] [review] remove immutablejs from netmonitor Review of attachment 8938907 [details] [diff] [review]: ----------------------------------------------------------------- ::: devtools/client/netmonitor/yarn.lock @@ -2415,4 @@ > version "3.0.6" > resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.0.6.tgz#9db1dbd0faf8de6fbe0f5dd5e56bb606280de69b" > > -immutable@^3.7.6, immutable@^3.8.1: this section are all related to immutable js, we can remove this section entirely ``` immutable@^3.7.6, immutable@^3.8.1: version "3.8.1" resolved "https://registry.yarnpkg.com/immutable/-/immutable-3.8.1.tgz#200807f11ab0f72710ea485542de088075f68cd2" ```
Assignee | ||
Comment 4•6 years ago
|
||
I'll take a look tonight. I thought yarn would've removed it from the lockfile when I rand the remove command, but maybe there's another command I have to run.
Assignee | ||
Comment 5•6 years ago
|
||
Remove the use of `Immutable.is` in Toolbar, this method should map directly to `Object.is`. The props being passed to `is` were already plain JS objects from what I understand. Yarn was used to remove the Immutable JS package and webpack was configured to not include webpack from shared assets. *** Removed Immutable reference in yarn.lock
Comment 6•6 years ago
|
||
Thanks for the update! I found devtools-launchpad has dependency with immutablejs, https://searchfox.org/mozilla-central/source/devtools/client/netmonitor/yarn.lock#1589 Instead of manually remove the data in `yarn.lock`, maybe you can run `yarn install` and submit the result instead. When you submit a new patch, Please go to detail > review and set :honza as reviewer since he reviewed most of immutablejs related code, thanks.
Flags: needinfo?(msegreto)
Assignee | ||
Comment 7•6 years ago
|
||
Remove the use of `Immutable.is` in Toolbar, this method should map directly to `Object.is`. The props being passed to `is` were already plain JS objects from what I understand. Yarn was used to remove the Immutable JS package and webpack was configured to not include webpack from shared assets. *** Removed Immutable reference in yarn.lock *** Generated yarn.lock file By running `yarn install`.
Assignee | ||
Updated•6 years ago
|
Attachment #8940067 -
Flags: review?(odvarko)
Reporter | ||
Updated•6 years ago
|
Attachment #8938907 -
Attachment is obsolete: true
Reporter | ||
Updated•6 years ago
|
Attachment #8939719 -
Attachment is obsolete: true
Reporter | ||
Comment 8•6 years ago
|
||
Comment on attachment 8940067 [details] [diff] [review] remove immutablejs from netmonitor Review of attachment 8940067 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for working on this! Please yet update netmonitor/README.md We use [immutable.js](http://facebook.github.io/immutable-js/) and [reselect](https://github.com/reactjs/reselect) libraries to return a new state object efficiently. to something like: We use [reselect](https://github.com/reactjs/reselect) library to return a access state object efficiently. We don't use [immutable.js](http://facebook.github.io/immutable-js/) due to performance issues. (there is also typo in the README.md file that might be fixed too: infomation->information) What about yarn.lock? I am still seeing immutable in there. Honza
Attachment #8940067 -
Flags: review?(odvarko)
Reporter | ||
Comment 9•6 years ago
|
||
Comment on attachment 8940067 [details] [diff] [review] remove immutablejs from netmonitor Review of attachment 8940067 [details] [diff] [review]: ----------------------------------------------------------------- ::: devtools/client/netmonitor/src/actions/requests.js @@ +71,1 @@ > Please remove both console.logs
Assignee | ||
Comment 10•6 years ago
|
||
So for `yarn.lock`, I think it's referencing Immutable in devtools-launchpad. I don't want to manually edit that file as it should be generated by yarn anyway. The current version of it was from running `yarn install`.
Flags: needinfo?(msegreto)
Assignee | ||
Comment 11•6 years ago
|
||
Remove the use of `Immutable.is` in Toolbar, this method should map directly to `Object.is`. The props being passed to `is` were already plain JS objects from what I understand. Yarn was used to remove the Immutable JS package and webpack was configured to not include webpack from shared assets. *** Removed Immutable reference in yarn.lock *** Generated yarn.lock file By running `yarn install`. *** Remove debugging statements
Assignee | ||
Comment 12•6 years ago
|
||
Comment on attachment 8940295 [details] [diff] [review] remove immutablejs from netmonitor Remove debugging console.log statements
Attachment #8940295 -
Flags: review?(odvarko)
Reporter | ||
Comment 13•6 years ago
|
||
Comment on attachment 8940295 [details] [diff] [review] remove immutablejs from netmonitor Review of attachment 8940295 [details] [diff] [review]: ----------------------------------------------------------------- Ok, looks good to me now, thanks! R+ Please make sure the old patches are marked as obsolete (edit details of the patch to access the settings) Honza
Attachment #8940295 -
Flags: review?(odvarko) → review+
Assignee | ||
Updated•6 years ago
|
Attachment #8940067 -
Attachment is obsolete: true
Assignee | ||
Comment 14•6 years ago
|
||
Can you push this to the try server to see that it passes all the tests? Thanks
Reporter | ||
Comment 15•6 years ago
|
||
(In reply to Marco Segreto from comment #14) > Can you push this to the try server to see that it passes all the tests? > Thanks Please NI me the next time otherwise I can easily miss the request. Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=17e32dfaf9f14542eed5ed24aebeda9aea16a2bf Honza
Assignee | ||
Updated•6 years ago
|
Keywords: checkin-needed
Comment 16•6 years ago
|
||
Pushed by ncsoregi@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/6984e56259d8 remove immutablejs from netmonitor. r=honza
Keywords: checkin-needed
Comment 17•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/6984e56259d8
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•