Commit Graph
4 Commits
Author SHA1 Message Date
dev 7a2f8893a6 fix(students): scope status constraint lookup and add it without blocking
Check pg_constraint by conname + conrelid so a same-named CHECK on another table cannot skip creation, add the constraint as NOT VALID and validate separately to avoid a long ACCESS EXCLUSIVE lock at boot. Mark lib/students.js as partially extracted in the migration plan.
2026-10-23 09:19:44 +03:00
dev c2cc7db26d feat(students): add active/paused/left status with hidden filter 2026-10-23 09:14:19 +03:00
dev 697aac9b87 fix(restore): allow backups of any size
- default BACKUP_UPLOAD_LIMIT_MB to 0 (no hard cap, disk is the limit);
  a positive value still enables multer fileSize
- scale request timeout by the configured limit and keep up to 24h when
  unlimited, cap headersTimeout at 120s
- check Content-Length and free space before upload (413/507) and map
  multer ENOSPC to 507
- drop the hardcoded 500 MB fallback in the settings restore pre-check
- cover new limit/timeout helpers in backup.selftest.js
- update env template, compose, README, AGENTS and API docs
2026-10-21 18:13:24 +03:00
dev 19f63a4064 fix(restore): survive large backups, disk-full and proxy limits
- extract restore helpers into lib/restore.js (space check, tar entry
  filter, temp dir sweep)
- reject tar entries outside staging and symlinks/hardlinks
- map ENOSPC/EQUOT to 507 with clear messages, keep data_restored flag
  when files fail after commit
- raise request timeout using BACKUP_UPLOAD_LIMIT_MB and expose
  backup_upload_limit_mb via public settings
- upload restore archive via XHR with progress, size pre-check and
  readable server errors in settings UI
- document large-archive restore on a remote server
2026-10-21 17:58:46 +03:00