653845655fb922ec1ed7a599199ae8c62c10334a
The RTT week table was hiding all weeks before the phase's startDate, so for an employee hired mid-exercise (e.g. Dylan CHABOISSON, CDD starting 2026-03-19) March displayed only from week 12 instead of week 9, with no visible padding for the pre-hire weeks of the exercise. Mirrors the same fix applied to the leave provider: the exercise unit for RTT is annual (Juin→Mai). Capping periodFrom artificially clipped the displayed weeks. Days without a contract naturally contribute 0 minutes (no reference, no worked hours), so the cumul is correct without the cap. periodTo and limitDate caps at phase.endDate are preserved for closed phases so the table doesn't extend past the phase end. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
SIRH
Application de gestion des absences employée
Importer un dump de prod en dev
Sur adminer fait un export bdd :
- Sortie : enregistrer
- Format : SQL
- Tables : DROP+CREATE, Incrément automatique, Déclencheurs
- Données : INSERT
Supprime la bdd et créer la bdd :
docker compose exec -T db psql -U root -d sirh -c "DROP SCHEMA public CASCADE; CREATE SCHEMA public;"
Remplie la base avec le dump :
docker compose exec -T db psql -U root -d sirh < sirh.sql
Mettre SUPER_ADMIN sur un user
UPDATE users SET roles = '["ROLE_ADMIN","ROLE_SUPER_ADMIN"]' WHERE username = 'emilie';
Récupérer la bdd de prod en local
Sur le serveur de prod, créer le dump :
sudo -u postgres pg_dump --no-owner --no-privileges --clean --if-exists sirh_prod > /tmp/sirh_prod_$(date +%F).sql
En local, récupérer le fichier et l'importer (remplace YYYY-MM-DD par la date du dump) :
scp user@<serveur>:/tmp/sirh_prod_YYYY-MM-DD.sql ~/workspace/SIRH/sirh.sql
docker compose exec -T db psql -U root -d sirh -c "DROP SCHEMA public CASCADE; CREATE SCHEMA public;"
docker compose exec -T db psql -U root -d sirh < ~/workspace/SIRH/sirh.sql
Description