Skip to content
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

Delete unused functions from upstream/account.py #10223

Open
scottbarnes opened this issue Dec 29, 2024 · 3 comments
Open

Delete unused functions from upstream/account.py #10223

scottbarnes opened this issue Dec 29, 2024 · 3 comments
Assignees
Labels
Lead: @scottbarnes Issues overseen by Scott (Community Imports) Priority: 4 An issue, but should be worked on when no other pressing work can be done. [managed] Type: Refactor/Clean-up Issues related to reorganization/clean-up of data or code (e.g. for maintainability). [managed]

Comments

@scottbarnes
Copy link
Collaborator

Proposal

We may be able to remove some unused functions from openlibrary/plugins/upstream/account.py.

Specifically ones such as:

  • account_password_forgot
  • account_password_reset
  • account_email_verify_old

We should consider removing anything that is no longer in use. The above three may be such examples, and there could easily be more.

Justification

No response

Breakdown

Requirements Checklist

  • [ ]

Related files

Stakeholders


Instructions for Contributors

Please run these commands to ensure your repository is up to date before creating a new branch to work on this issue and each time after pushing code to Github, because the pre-commit bot may add commits to your PRs upstream.

@scottbarnes scottbarnes added Type: Feature Request Issue describes a feature or enhancement we'd like to implement. [managed] Needs: Breakdown This big issue needs a checklist or subissues to describe a breakdown of work. [managed] Needs: Triage This issue needs triage. The team needs to decide who should own it, what to do, by when. [managed] Needs: Lead labels Dec 29, 2024
@Spaarsh
Copy link
Contributor

Spaarsh commented Dec 29, 2024

Can I work on this issue? I will ensure that no tests fails even after deletion of these functions. I had recently worked on removing some unused code from our conftest.py file as well.

@scottbarnes
Copy link
Collaborator Author

Thanks, @Spaarsh. I've assigned this to you. Please remove any associated template code, etc., for endpoints that aren't used anywhere.

For endpoints you delete, please also detail where you looked to ensure it's not used (e.g. mention the files and pages you checked to ensure none of them are in use). Sadly, the tests passing may not be a great indicator that the code is unused.

@scottbarnes scottbarnes added Type: Refactor/Clean-up Issues related to reorganization/clean-up of data or code (e.g. for maintainability). [managed] Priority: 4 An issue, but should be worked on when no other pressing work can be done. [managed] Lead: @scottbarnes Issues overseen by Scott (Community Imports) and removed Needs: Breakdown This big issue needs a checklist or subissues to describe a breakdown of work. [managed] Needs: Triage This issue needs triage. The team needs to decide who should own it, what to do, by when. [managed] Type: Feature Request Issue describes a feature or enhancement we'd like to implement. [managed] Needs: Lead labels Dec 29, 2024
@Spaarsh
Copy link
Contributor

Spaarsh commented Dec 29, 2024

@scottbarnes certainly. I also trigger the functions manually and as an additional measure, read git blames to understand why a function was created and why it became redundanct.

@github-actions github-actions bot added the Needs: Response Issues which require feedback from lead label Dec 30, 2024
@scottbarnes scottbarnes removed the Needs: Response Issues which require feedback from lead label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Lead: @scottbarnes Issues overseen by Scott (Community Imports) Priority: 4 An issue, but should be worked on when no other pressing work can be done. [managed] Type: Refactor/Clean-up Issues related to reorganization/clean-up of data or code (e.g. for maintainability). [managed]
Projects
None yet
Development

No branches or pull requests

2 participants