Repository navigation
Archive upload (zip/rar/7z/…) + upload UI moved onto the dashboard - #10
Merged
Merged
Conversation
… onto the dashboard
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.
Что
/uploadудалена.Backend
ingest/archives.py— извлечение.txt-членов через libarchive (один движок на все форматы).POST /ingest/archive— стейджит архив как есть, ставит задачуkind=archive.handle_archiveизвлекает члены, классифицирует hh/summary и парсит их через обычный пайплайн (дедуп/отчёт), чанками по ~32 МБ для памяти.libarchive13. Зависимостьlibarchive-c.Frontend
uploadArchive+bulk-upload.tsмаршрутизирует архивы на сервер, а.txtбандлит как раньше (всё под одной upload-сессией с общим отчётом).Uploaderвынесен в компонент и встроен в дашборд (карточка, авто-refresh статистики после импорта); страница/uploadи пункт навигации убраны; инпуты принимают архивные расширения.Проверено
test_archives.py— извлечение из zip)./uploadудалён)./ingest/archive→ +6133 hands, +200 tournaments, дедуп/отчёт работают.Примечание: RAR5 в libarchive — read-only и местами частично; zip/7z/tar/gz — полноценно.