aa690d4ac4ac3b2a58b09efe95836ca30b8a53f9
Previous limit of 8 MP was rejecting standard smartphone photos (12-20 MP), causing service record PDFs/DOCX documents to be generated without photos. This was a regression from the image timeout fix: the megapixel guard was designed to prevent processing of pathologically large files (preventing worker timeouts), but the threshold was set too aggressively. Increase limit to 30 MP to allow standard device cameras while still rejecting extreme outliers that would cause timeout/OOM. Add regression test test_compress_image_for_docx_keeps_standard_phone_photos to verify 12 MP photos are accepted. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Frontend + Backend + Database + Deployment
Deploy na serveru
Nakon što je gitea webhook i testirana skripta za automatsko povlačenje promjena iz repozitorija
cd /opt/erp/app
git fetch origin
git reset --hard origin/main ili git pull --ff-only origin main
# rebuild backend + worker + beat + frontend
docker compose -f docker-compose.yml -f docker-compose.prod.yml build backend worker beat frontend
# digni servise s novim image-ima
docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d --force-recreate backend worker beat frontend
# OBAVEZNO migracije (scheduled_date)
docker compose -f docker-compose.yml -f docker-compose.prod.yml exec backend python manage.py migrate
# provjera
curl -i https://api-004.captain.mitteworkspace.cloud/api/health/
Description
Languages
Python
51%
JavaScript
47.1%
TypeScript
0.8%
Astro
0.6%
CSS
0.3%