feat(new_max_duree_conservation): make it configurable for other instances

This commit is contained in:
Martin 2022-07-11 14:19:41 +02:00 committed by mfo
parent 24c8dc5829
commit 05b6b462b6
2 changed files with 4 additions and 1 deletions

View file

@ -65,7 +65,7 @@ class Procedure < ApplicationRecord
default_scope -> { kept }
OLD_MAX_DUREE_CONSERVATION = 36
NEW_MAX_DUREE_CONSERVATION = 12
NEW_MAX_DUREE_CONSERVATION = ENV.fetch('NEW_MAX_DUREE_CONSERVATION') { 12 }.to_i
MIN_WEIGHT = 350000

View file

@ -137,3 +137,6 @@ DOLIST_BALANCING_VALUE="50"
# Enable vite legacy build (IE11). Legacy build is used in production (except if set to "disabled").
# You might want to enable it in other environements for testing. Build time will be greatly impacted.
VITE_LEGACY=""
# around july 2022, we changed the duree_conservation_dossiers_dans_ds, allow instances to choose their own duration
NEW_MAX_DUREE_CONSERVATION=12