Repository navigation
feat: Move thumbnail storage to Librarian-managed catalog - #80
Merged
Merged
Conversation
…humbnails - Add LIBRARIAN_DATA_ROOT environment variable (default: /librarian-data) - Update thumbnail_generator.py to store thumbnails in librarian data root - Update API thumbnail endpoint to serve from librarian data root - Change library mount from rw to ro in docker-compose.yml - Add librarian_data volume for derived artifacts Philosophy: Original artifacts belong to the user, derived artifacts belong to Librarian. Thumbnails are part of the Librarian catalog.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrate thumbnail storage from
/library/.thumbnails(user library) to/librarian-data/thumbnails(Librarian-managed catalog).Philosophy
/library/librarian-dataA thumbnail is not part of the original file; it is part of the Librarian catalog. The library remains read-only.
Changes
environment.pyget_librarian_data_root()function andDEFAULT_LIBRARIAN_DATA_ROOT = "/librarian-data"workers/thumbnail_generator.pylibrarian_data_rootinstead of library rootapi/app.pyLIBRARIAN_DATA_ROOTinstead ofLIBRARY_ROOTdeploy/docker-compose.ymlro; Addedlibrarian_datavolume:rwArchitecture
Database
No schema changes. Database continues to store relative paths:
API
API contract unchanged. Frontend continues to request
/thumbnails/...Success Criteria
ro)thumbnails/folder created (future folders not implemented)Verification
After deployment:
@tamzrod can click here to continue refining the PR