diff --git a/app/jobs/tmp_dossiers_migrate_revisions_job.rb b/app/jobs/tmp_dossiers_migrate_revisions_job.rb index ad9e55dee..3d5bae95f 100644 --- a/app/jobs/tmp_dossiers_migrate_revisions_job.rb +++ b/app/jobs/tmp_dossiers_migrate_revisions_job.rb @@ -8,8 +8,7 @@ class TmpDossiersMigrateRevisionsJob < ApplicationJob .limit(2000) .find_each do |dossier| if dossier.procedure.present? - dossier.revision = dossier.procedure.active_revision - dossier.save!(validate: false) + dossier.update_column(:revision_id, dossier.procedure.active_revision_id) else except << dossier.id end diff --git a/config/env.example b/config/env.example index 3bf2397ca..caefb947a 100644 --- a/config/env.example +++ b/config/env.example @@ -110,3 +110,4 @@ API_GEO_URL="https://geo.api.gouv.fr" # Modifier le nb de tentatives de relance de job si echec # MAX_ATTEMPTS_JOBS=25 # MAX_ATTEMPTS_API_ENTREPRISE_JOBS=5 + diff --git a/config/env.example.optional b/config/env.example.optional new file mode 100644 index 000000000..9d6a25159 --- /dev/null +++ b/config/env.example.optional @@ -0,0 +1,5 @@ + +# Variables d'environnement optionnelles + +# Personnalisation d'instance - Page externe "Disponibilité" (status page) +# STATUS_PAGE_URL="" diff --git a/config/initializers/urls.rb b/config/initializers/urls.rb index 7c7fdad65..7a0ccbf8b 100644 --- a/config/initializers/urls.rb +++ b/config/initializers/urls.rb @@ -26,5 +26,5 @@ FAQ_URL = "https://faq.demarches-simplifiees.fr" 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("/") 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"