Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe Commits: 2bdf7bee by Tony CHEMIT at 2017-09-06T21:56:32+00:00 [PS] Unicité des enregistrements des rejets de thons à modifier (See #443) - - - - - 4 changed files: - validation/src/main/resources/fr/ird/observe/dto/data/seine/SetSeineTargetCatchDto-update-targetDiscarded-error-validation.xml - validation/src/main/resources/i18n/validation_en_GB.properties - validation/src/main/resources/i18n/validation_es_ES.properties - validation/src/main/resources/i18n/validation_fr_FR.properties Changes: ===================================== validation/src/main/resources/fr/ird/observe/dto/data/seine/SetSeineTargetCatchDto-update-targetDiscarded-error-validation.xml ===================================== --- a/validation/src/main/resources/fr/ird/observe/dto/data/seine/SetSeineTargetCatchDto-update-targetDiscarded-error-validation.xml +++ b/validation/src/main/resources/fr/ird/observe/dto/data/seine/SetSeineTargetCatchDto-update-targetDiscarded-error-validation.xml @@ -28,11 +28,9 @@ <field name="targetCatch"> - <!-- clef unique sur la categorie weight et la raison rejet --> - <field-validator type="collectionFieldExpression"> <param name="mode">UNIQUE_KEY</param> - <param name="keys">weightCategory.id,reasonForDiscard.id,broughtOnDeck</param> + <param name="keys">species.id,weightCategory.id,reasonForDiscard.id,broughtOnDeck</param> <message>observe.validation.targetDiscarded.uniqueKey</message> </field-validator> ===================================== validation/src/main/resources/i18n/validation_en_GB.properties ===================================== --- a/validation/src/main/resources/i18n/validation_en_GB.properties +++ b/validation/src/main/resources/i18n/validation_en_GB.properties @@ -687,7 +687,7 @@ observe.validation.targetDiscarded.required.reasonForDiscard=Reason for discard observe.validation.targetDiscarded.required.species=Species must be filled. observe.validation.targetDiscarded.required.weight=Weight must be filled. observe.validation.targetDiscarded.required.weightCategory=Weight category must be filled. -observe.validation.targetDiscarded.uniqueKey=Tuple (category - reasonForDiscard - brought on deck) must be unique. +observe.validation.targetDiscarded.uniqueKey=Tuple (species - category - reasonForDiscard - brought on deck) must be unique. observe.validation.targetLength.bound.length=Length must be bound between %s and %s. observe.validation.targetLength.bound.weight=Weight must be bound between %s and %s. observe.validation.targetLength.desactivated.sex=Selected sex is disabled. ===================================== validation/src/main/resources/i18n/validation_es_ES.properties ===================================== --- a/validation/src/main/resources/i18n/validation_es_ES.properties +++ b/validation/src/main/resources/i18n/validation_es_ES.properties @@ -687,7 +687,7 @@ observe.validation.targetDiscarded.required.reasonForDiscard=Es obligatoria sele observe.validation.targetDiscarded.required.species=Es obligatorio seleccionar una especie de atún. observe.validation.targetDiscarded.required.weight=El peso es obligatorio. observe.validation.targetDiscarded.required.weightCategory=Es obligatorio seleccionar una categoría de peso. -observe.validation.targetDiscarded.uniqueKey=El par (categoria - causa del descarte - izado a bordo) debe ser única. +observe.validation.targetDiscarded.uniqueKey=El par (especie - categoria - causa del descarte - izado a bordo) debe ser única. observe.validation.targetLength.bound.length=La talla para esta especie debe estar comprendida entre %1$s y %2$s. observe.validation.targetLength.bound.weight=La peso para esta especie debe estar comprendida entre %1$s y %2$s. observe.validation.targetLength.desactivated.sex=El sexo está desactivado. ===================================== validation/src/main/resources/i18n/validation_fr_FR.properties ===================================== --- a/validation/src/main/resources/i18n/validation_fr_FR.properties +++ b/validation/src/main/resources/i18n/validation_fr_FR.properties @@ -687,7 +687,7 @@ observe.validation.targetDiscarded.required.reasonForDiscard=La sélection d'une observe.validation.targetDiscarded.required.species=La sélection d'une espèce de thon est obligatoire. observe.validation.targetDiscarded.required.weight=Le poids est obligatoire. observe.validation.targetDiscarded.required.weightCategory=La sélection d'une catégorie poids est obligatoire. -observe.validation.targetDiscarded.uniqueKey=Le couple (catégorie - raison rejet) doit être unique. +observe.validation.targetDiscarded.uniqueKey=Le tuple (espèce - catégorie - raison rejet - monté sur le pont) doit être unique. observe.validation.targetLength.bound.length=La longueur pour cette espèce doit être comprise entre %1$s et %2$s. observe.validation.targetLength.bound.weight=Le poids individuel de l'échantillon doit être compris entre %1$s et %2$s. observe.validation.targetLength.desactivated.sex=Le sexe sélectionné est désactivé. View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/commit/2bdf7beece94a83e35f33b085012... --- View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/commit/2bdf7beece94a83e35f33b085012... You're receiving this email because of your account on gitlab.com.