Rename ModuleCache::hasModule to hasModuleClass
Categories
(Remote Protocol :: Agent, task, P3)
Tracking
(firefox115 fixed)
| Tracking | Status | |
|---|---|---|
| firefox115 | --- | fixed |
People
(Reporter: jdescottes, Assigned: LyScott123, Mentored)
Details
(Keywords: good-first-bug, Whiteboard: [lang=js][webdriver:m7][webdriver:external])
Attachments
(1 file)
See discussion at https://phabricator.services.mozilla.com/D155059#inline-857818
The hasModule method on ModuleCache might be misleading because it doesn't actually tell if a given module is already in the cache. It only checks if there is an implementation (ie a Class) for the given moduleName + destination.
But for instance if you are trying to avoid initializing a Module if it was not already created, this method should not be used. So we should clarify the method's name. We can either keep the current behavior and update the name to be hasModuleClass. Or we update the behavior to check if there is a module instantiated in the cache, but note that we can't really support destinations then. A root ModuleCache can check if a root/log or a windowglobal-in-root/log module is already instantiated, but it has no idea about windowglobal/log.
Can be a good mentored bug after discussion in triage.
| Reporter | ||
Comment 1•3 years ago
|
||
Let's update the name to hasModuleClass and keep the behavior identical. If anyone wants to use this as a first bug to setup the development environment, happy to mentor.
| Reporter | ||
Updated•2 years ago
|
| Assignee | ||
Comment 2•2 years ago
|
||
Hello! I would love to use this as my first bug! I got mozilla up and running. Not familiar with mercurial but wishing to learn! Would love to have this assigned to me! Thank you!
| Reporter | ||
Comment 3•2 years ago
|
||
(In reply to LyScott123 from comment #2)
Hello! I would love to use this as my first bug! I got mozilla up and running. Not familiar with mercurial but wishing to learn! Would love to have this assigned to me! Thank you!
Hi there! Somebody contacted me on Elements to get started on this bug but it seems they didn't comment on Bugzilla yet. I would like to hear back from them before assigning it to you. Sorry about that, but thanks for your interest. Feel free to either pick another bug, or wait until I get confirmation from that person. If I don't hear back before tomorrow, I will consider the bug as available and can assign it to you then.
Sorry again!
| Reporter | ||
Comment 4•2 years ago
|
||
Ok, the bug is available to you if you still want it :)
| Assignee | ||
Comment 5•2 years ago
|
||
Awesome! Thank you! I'll get started on it tomorrow! Might need some help with Phrabricator and Mercurial!
| Reporter | ||
Comment 6•2 years ago
|
||
(In reply to LyScott123 from comment #5)
Awesome! Thank you! I'll get started on it tomorrow! Might need some help with Phrabricator and Mercurial!
Sounds good, if you need support with your dev environment setup, you can chat at https://chat.mozilla.org/#/room/#introduction:mozilla.org or https://chat.mozilla.org/#/room/#webdriver:mozilla.org
Make sure you look at the documentation as well: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
| Reporter | ||
Comment 7•2 years ago
|
||
Hi there,
Just wanted to check if you needed some help to get started?
| Assignee | ||
Comment 8•2 years ago
|
||
Hey! Sorry! I had some moving to do so was a little busy these past 2 weeks! I got my environment up and running and I read through the tutorials you provided.
Kind of nervous submitting my first patch! I'll have time on Wednesday to work on it. I'll let you know if I run into and trouble with my first attempt!
Thank you!!
| Reporter | ||
Comment 9•2 years ago
|
||
No worries, great to see that your environment is up and running. Don't hesitate to reach out if you have any question.
| Assignee | ||
Comment 10•2 years ago
|
||
| Assignee | ||
Comment 11•2 years ago
|
||
Hello! Just submitted! Let me know if there is anything I need to change. Still not quite sure about how Mercurial and Phabricator works, but I'll keep reading up on it.
Would it be okay if I looked for another bug to fix at this point in time?
Thank you again!
| Reporter | ||
Comment 12•2 years ago
|
||
(In reply to LyScott123 from comment #11)
Hello! Just submitted! Let me know if there is anything I need to change. Still not quite sure about how Mercurial and Phabricator works, but I'll keep reading up on it.
Thanks for submitting a patch!
Would it be okay if I looked for another bug to fix at this point in time?
Feel free to start scouting for other bugs, sure (the patch added here needs some more changes before it can land though, so let's try to focus on landing this one :) )
Comment 13•2 years ago
|
||
Comment 14•2 years ago
|
||
| bugherder | ||
Updated•2 years ago
|
Description
•