Merge pull request #9744 from colinux/correction-reason-update

API: une demande de correction de dossier peut être de type "outdated"
This commit is contained in:
Colin Darie 2023-11-23 17:05:04 +00:00 committed by GitHub
commit be994c8933
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 1 deletions

View file

@ -568,6 +568,11 @@ enum CorrectionReason {
Le dossier nest pas valide et nécessite une correction Le dossier nest pas valide et nécessite une correction
""" """
incorrect incorrect
"""
Le dossier doit être mis à jour et revalidé
"""
outdated
} }
""" """

View file

@ -6,7 +6,11 @@ class DossierCorrection < ApplicationRecord
scope :pending, -> { where(resolved_at: nil) } scope :pending, -> { where(resolved_at: nil) }
enum reason: { incorrect: 'incorrect', incomplete: 'incomplete' }, _prefix: :dossier enum reason: {
incorrect: 'incorrect',
incomplete: 'incomplete',
outdated: 'outdated'
}, _prefix: :dossier
def resolved? def resolved?
resolved_at.present? resolved_at.present?

View file

@ -5,3 +5,4 @@ en:
reasons: reasons:
incorrect: "The file is invalid and needs to be corrected" incorrect: "The file is invalid and needs to be corrected"
incomplete: "The file is incomplete and needs to be completed" incomplete: "The file is incomplete and needs to be completed"
outdated: "The file needs to be updated and revalidated"

View file

@ -5,3 +5,4 @@ fr:
reasons: reasons:
incorrect: "Le dossier nest pas valide et nécessite une correction" incorrect: "Le dossier nest pas valide et nécessite une correction"
incomplete: "Le dossier est incomplet et nécessite dêtre complété" incomplete: "Le dossier est incomplet et nécessite dêtre complété"
outdated: "Le dossier doit être mis à jour et revalidé"