Skip to content

Remove unused lending/borrow/waitinglist methods - #13396

Open
cdrini wants to merge 7 commits into
internetarchive:masterfrom
cdrini:remove-unused-update-loan-status
Open

Remove unused lending/borrow/waitinglist methods#13396
cdrini wants to merge 7 commits into
internetarchive:masterfrom
cdrini:remove-unused-update-loan-status

Conversation

@cdrini

@cdrini cdrini commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

While trying to asyncify some of this code, it's exceedingly tricky because of how many similarly named but slightly different methods exist in this space. A lot of this duplication is because we used to store loans in the open library database many years ago, in site.store with type=/type/loans . I checked the prod db and there are 581 rows there from 2014 . So that's a dead code path now, and resulted in some code being deleted. Otherwise it was a lot of removing unused methods or dissolving some single-use methods.

Technical

Testing

Screenshot

Stakeholders

claude and others added 7 commits August 21, 2026 15:50
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

Co-Authored-By: Drini Cami <cdrini@gmail.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

Co-Authored-By: Drini Cami <cdrini@gmail.com>
… helpers

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

Co-Authored-By: Drini Cami <cdrini@gmail.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

Co-Authored-By: Drini Cami <cdrini@gmail.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

Co-Authored-By: Drini Cami <cdrini@gmail.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

Co-Authored-By: Drini Cami <cdrini@gmail.com>
…ilder

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

Co-Authored-By: Drini Cami <cdrini@gmail.com>
@cdrini
cdrini force-pushed the remove-unused-update-loan-status branch from 8a5533c to 37d84fb Compare August 21, 2026 19:52
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.

2 participants