-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Remove global from plugins_manager #59851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove global from plugins_manager #59851
Conversation
|
Why the .js changes? |
Somehow the Prek plugin for JS compiler kicked-in after the small PY changes in FAB... not sure why. Seems some signature change... |
This one changed: And it matches "www" of the provider: We should probably make it a bit more selective when we switch to |
c3227c5 to
a1b9d32
Compare
491484a to
4f7dea5
Compare
Changes the config in this PR now as the JS changes generated false alarms and this bothered me. Ready for review now! |
potiuk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call!
* Remove global from plaungs_manager * Further rework and cleanup * Prevent re-build of Fab assets, change exclusions * Fixes * Fixes * Fixes * Fixes
* Remove global from plaungs_manager * Further rework and cleanup * Prevent re-build of Fab assets, change exclusions * Fixes * Fixes * Fixes * Fixes
Another small (in this case rather medium complex) increment to remove global statements for PR #58116
This removes global statements from plugins_manager.py where the a lot of state was hold in variables used with
globaland then a lot of code way relying to access these globals. Smelled a like a public interface and needed a bit of refactoring in other parts of the core to use proper access methods. Using new access methods withget_...()for all access with functools.cache() to prevent usage of global variables. All non external used methods marked as private to ensure it is not implicitly getting to be a public interface.globalis evil.