Skip to content

cleanup 'old_plugins' code to have explicit imports#11762

Merged
cdrini merged 3 commits intomasterfrom
fix/11758-old-plugins
Feb 25, 2026
Merged

cleanup 'old_plugins' code to have explicit imports#11762
cdrini merged 3 commits intomasterfrom
fix/11758-old-plugins

Conversation

@RayBB
Copy link
Copy Markdown
Collaborator

@RayBB RayBB commented Jan 29, 2026

Closes #11758

Technical

Long story short, the code looked very complicated and seemed to be doing some magical stuff.
But really only one folder was making use of it and the rest can be done by calling setup to ensure we import and register the urls for web.py

This is a handy cleanup as we move towards fastapi

Testing

It's on testing.
In local all the associated pages seemed to still work fine. Also very clear when I remove a setup import it completely knocks off pages right away.

Screenshot

Stakeholders

Copy link
Copy Markdown
Collaborator

@cdrini cdrini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some initial thoughts but needs some more testing

@RayBB RayBB requested a review from cdrini February 18, 2026 17:12
Copy link
Copy Markdown
Collaborator

@cdrini cdrini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm! Tested some basic flows for admin page and stuff and it seems like the plugins are being loaded correctly. Not I did notice that on testing the recaptcha isn't loading on login/signup? But I think unrelated to this PR, but that's a blocking issue I need to investigate.

@cdrini cdrini merged commit 31c1959 into master Feb 25, 2026
7 checks passed
@cdrini cdrini deleted the fix/11758-old-plugins branch February 25, 2026 18:56
@RayBB RayBB removed the On Testing label Feb 25, 2026
RayBB added a commit that referenced this pull request Feb 26, 2026
* cleanup 'old_plugins' code to have explicit imports

* remove unneeded imports

* move calls into openlibrary_setup and reorder
bhardwajparth51 pushed a commit to bhardwajparth51/openlibrary that referenced this pull request Mar 3, 2026
…11762)

* cleanup 'old_plugins' code to have explicit imports

* remove unneeded imports

* move calls into openlibrary_setup and reorder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cleanup old "old_plugins" import code

2 participants