commit
85a629399d
4 changed files with 8 additions and 3 deletions
|
@ -8,8 +8,7 @@ class TmpDossiersMigrateRevisionsJob < ApplicationJob
|
||||||
.limit(2000)
|
.limit(2000)
|
||||||
.find_each do |dossier|
|
.find_each do |dossier|
|
||||||
if dossier.procedure.present?
|
if dossier.procedure.present?
|
||||||
dossier.revision = dossier.procedure.active_revision
|
dossier.update_column(:revision_id, dossier.procedure.active_revision_id)
|
||||||
dossier.save!(validate: false)
|
|
||||||
else
|
else
|
||||||
except << dossier.id
|
except << dossier.id
|
||||||
end
|
end
|
||||||
|
|
|
@ -110,3 +110,4 @@ API_GEO_URL="https://geo.api.gouv.fr"
|
||||||
# Modifier le nb de tentatives de relance de job si echec
|
# Modifier le nb de tentatives de relance de job si echec
|
||||||
# MAX_ATTEMPTS_JOBS=25
|
# MAX_ATTEMPTS_JOBS=25
|
||||||
# MAX_ATTEMPTS_API_ENTREPRISE_JOBS=5
|
# MAX_ATTEMPTS_API_ENTREPRISE_JOBS=5
|
||||||
|
|
||||||
|
|
5
config/env.example.optional
Normal file
5
config/env.example.optional
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
|
||||||
|
# Variables d'environnement optionnelles
|
||||||
|
|
||||||
|
# Personnalisation d'instance - Page externe "Disponibilité" (status page)
|
||||||
|
# STATUS_PAGE_URL=""
|
|
@ -26,5 +26,5 @@ FAQ_URL = "https://faq.demarches-simplifiees.fr"
|
||||||
FAQ_ADMIN_URL = [FAQ_URL, "collection", "1-administrateur-creation-dun-formulaire"].join("/")
|
FAQ_ADMIN_URL = [FAQ_URL, "collection", "1-administrateur-creation-dun-formulaire"].join("/")
|
||||||
FAQ_AUTOSAVE_URL = [FAQ_URL, "article", "77-enregistrer-mon-formulaire-pour-le-reprendre-plus-tard?preview=5ec28ca1042863474d1aee00"].join("/")
|
FAQ_AUTOSAVE_URL = [FAQ_URL, "article", "77-enregistrer-mon-formulaire-pour-le-reprendre-plus-tard?preview=5ec28ca1042863474d1aee00"].join("/")
|
||||||
COMMENT_TROUVER_MA_DEMARCHE_URL = [FAQ_URL, "article", "59-comment-trouver-ma-demarche"].join("/")
|
COMMENT_TROUVER_MA_DEMARCHE_URL = [FAQ_URL, "article", "59-comment-trouver-ma-demarche"].join("/")
|
||||||
STATUS_PAGE_URL = "https://status.demarches-simplifiees.fr"
|
STATUS_PAGE_URL = ENV.fetch("STATUS_PAGE_URL", "https://status.demarches-simplifiees.fr")
|
||||||
MATOMO_IFRAME_URL = "https://stats.data.gouv.fr/index.php?module=CoreAdminHome&action=optOut&language=fr&&fontColor=333333&fontSize=16px&fontFamily=Muli"
|
MATOMO_IFRAME_URL = "https://stats.data.gouv.fr/index.php?module=CoreAdminHome&action=optOut&language=fr&&fontColor=333333&fontSize=16px&fontFamily=Muli"
|
||||||
|
|
Loading…
Reference in a new issue