-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 unused plugins: copyright, scod, heartbeat, theme and mobile #2317
Comments
Highly supportive. There are no bugs in code that does not exist. ;-) |
@mekarpeles @hornc I'm not sure who should be assignee to this issue, but I assumed it would be one of you two. Let me know your thoughts. edit: typo |
I don't know anything about these plugins, but it seems like if there were a PR per plugin that removed it, they could be reviewed individually and cleaned up. ie make this a series of PRs instead of an issue. |
@jdlrobson Since it sounds like you tested removing these unused plugins would you like to be assignee for this issue? Note: being assignee doesn't necessarily mean you are responsible for doing the work. From the Managed Label Wiki:
|
It would be better to assign this to someone who knows how the Python plugins system works and that's not me. |
@cclauss @salman-bhai Since you are the Python3 leads, are either one of you willing to be assignee for this issue/make PRs for each plugin per @tfmorris suggestion? |
Not me, sorry! We have 70 days until Python 2 EOL and the time that I can dedicate to web.py, Infogami, and Open Library will be focused on compatibility with Python 3. I am supportive of this effort but will not directly engage. |
I'm not sure why every issue needs an assignee. We have way more issues than people to work on them all the employees are being tasked to work on things just for show, so they're not even available. I think we should adjust the guidelines to acknowledge that there are some things which are important, but not assigned to anyone. |
I don't think something can be both a refactoring and a bug. They seem mutually exclusive. This seems to clearly be a refactoring. It's also exceedingly unlikely that a refactoring, particularly dead code removal, would be considered high priority. |
Assigning @cdrini per slack discussions since he's doing a lot of the refactoring |
Going to move to @cclauss to equalize our |
not every issue needs an assignee, but it makes sense in our new world #4282 for every issue to have a Lead (a point capable of prioritizing, reviewing, answering questions + fielding comments on issues, finding others to help out, and helping them get setup / find the right files). |
@cclauss I would like to work on this issue. Any starting point? |
Was this issue closed in #2318 er what? |
@Yashs911 perhaps search on each of the five keywords and see if there is any cruft lying around in our codebase. If so, separate PRs for each keyword found please. |
@cclauss I just found some old comments and few references |
Cool. Let’s keep this effort separate from #3483 because I think we can land these mods quickly whereas the “unnecessary imports” require careful review because of import side effects which flake8 can not detect. |
@cclauss Okay, So should I create a PR and remove all these comments and references? |
One PR for each keyword (copyright, scod, heartbeat, theme, mobile) found, please. |
@cclauss Should I remove this folder: https://github.com/internetarchive/openlibrary/tree/master/scripts/2009/01/scod_stats |
Description
https://github.com/internetarchive/openlibrary/tree/master/openlibrary/plugins
While combing through the frontend I came across some plugins (and TEMPLATES) that do not seem to be enabled anywhere. Those are: copyright,heartbeat, scod, theme and mobile (there may be others but these ones i can confirm). I wasted a lot of time trying to cleanup the frontend in these files. I'd rather not waste this time ago.
These were added around 10 years ago, and have only recently seen linting improvement.
If these are not enabled in production can they be removed? It would make the codebase a lot easier to work with if we cleaned out things that are no longer active.
scod = Scan on Demand plugin
mobile = a separate mobile site. We don't have one.
Evidence / Screenshot (if possible)
When I remove these folders in the plugins folder nothing breaks. The site continues as it always has but with less lines of code.
Expectation
We should not be wasting time having to sift through files that are unused when trying to do things like revamp frontend and backend architecture.
Details
Proposal & Constraints
Stakeholders
@cclauss and @mekarpeles
The text was updated successfully, but these errors were encountered: