From 6ec6aebd53d10f84512214219a26252586281ac3 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Wed, 15 Jun 2022 11:25:44 +0100 Subject: [PATCH] fix(graphql): cleanup deprecation messages --- app/graphql/schema.graphql | 8 ++++---- app/graphql/types/avis_type.rb | 2 +- app/graphql/types/champs/date_champ_type.rb | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/graphql/schema.graphql b/app/graphql/schema.graphql index 5ecbbb6a1..7814fa7f1 100644 --- a/app/graphql/schema.graphql +++ b/app/graphql/schema.graphql @@ -118,7 +118,7 @@ type Avis { dateReponse: ISO8601DateTime expert: Profile id: ID! - instructeur: Profile! @deprecated(reason: "Utilisez le champ claimant à la place.") + instructeur: Profile! @deprecated(reason: "Utilisez le champ `claimant` à la place.") question: String! reponse: String } @@ -328,7 +328,7 @@ type DateChamp implements Champ { """ La valeur du champ formaté en ISO8601 (DateTime). """ - value: ISO8601DateTime @deprecated(reason: "Utilisez le champ 'date' ou le fragment 'DatetimeChamp' à la place.") + value: ISO8601DateTime @deprecated(reason: "Utilisez le champ `date` ou le fragment `DatetimeChamp` à la place.") } type DatetimeChamp implements Champ { @@ -434,8 +434,8 @@ Une démarche """ type Demarche { activeRevision: Revision! - annotationDescriptors: [ChampDescriptor!]! @deprecated(reason: "Utilisez le champ `active_revision.annotation_descriptors` à la place.") - champDescriptors: [ChampDescriptor!]! @deprecated(reason: "Utilisez le champ `active_revision.champ_descriptors` à la place.") + annotationDescriptors: [ChampDescriptor!]! @deprecated(reason: "Utilisez le champ `activeRevision.annotationDescriptors` à la place.") + champDescriptors: [ChampDescriptor!]! @deprecated(reason: "Utilisez le champ `activeRevision.champDescriptors` à la place.") """ Date de la création. diff --git a/app/graphql/types/avis_type.rb b/app/graphql/types/avis_type.rb index b9c282758..a3a27d1be 100644 --- a/app/graphql/types/avis_type.rb +++ b/app/graphql/types/avis_type.rb @@ -11,7 +11,7 @@ module Types { Extensions::Attachment => { attachment: :piece_justificative_file } } ] - field :instructeur, Types::ProfileType, null: false, method: :claimant, deprecation_reason: "Utilisez le champ claimant à la place." + field :instructeur, Types::ProfileType, null: false, method: :claimant, deprecation_reason: "Utilisez le champ `claimant` à la place." field :claimant, Types::ProfileType, null: true field :expert, Types::ProfileType, null: true end diff --git a/app/graphql/types/champs/date_champ_type.rb b/app/graphql/types/champs/date_champ_type.rb index d454c0621..d72fe244d 100644 --- a/app/graphql/types/champs/date_champ_type.rb +++ b/app/graphql/types/champs/date_champ_type.rb @@ -2,7 +2,7 @@ module Types::Champs class DateChampType < Types::BaseObject implements Types::ChampType - field :value, GraphQL::Types::ISO8601DateTime, "La valeur du champ formaté en ISO8601 (DateTime).", null: true, deprecation_reason: "Utilisez le champ 'date' ou le fragment 'DatetimeChamp' à la place." + field :value, GraphQL::Types::ISO8601DateTime, "La valeur du champ formaté en ISO8601 (DateTime).", null: true, deprecation_reason: "Utilisez le champ `date` ou le fragment `DatetimeChamp` à la place." field :date, GraphQL::Types::ISO8601Date, "La valeur du champ formaté en ISO8601 (Date).", null: true def value