Repository navigation
✨ feat(Stockage): répartit originaux, vignettes et previews en sous-dossiers (#609, 1/3) - #611
Merged
Merged
Conversation
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.
Contexte
o2switch interdit plus de 20 000 fichiers dans un même répertoire (CGV). Un gros import concentrait tous les originaux dans le même
AAAA/MMet toutes les vignettes dansthumbs/.Cette PR (1/3 de #609) : les nouveaux écrits
StorageShard: sous-dossier = 2 derniers caractères hexadécimaux du nom (partie aléatoire de l'UUID v7), 256 sous-dossiers, aucun inode supplémentaire par photo.<xx>/<uuid>.<ext>(plus de date dans le chemin).thumbs/<xx>/<uuid>.jpg.previews/<xx>/<hash>.jpg, clé dérivée du nom du fichier (stable si l'original est déplacé).StorageService. Path traversal toujours bloqué.Suite (non incluse)
app:storage:shard(rename, bornée, idempotente, reprenable) branchée sur le nocturne.Closes #609
Tests
1436 tests PHP + 37 tests bash verts.