diff --git a/app/graphql/schema.graphql b/app/graphql/schema.graphql index a4820a002..827e3ac83 100644 --- a/app/graphql/schema.graphql +++ b/app/graphql/schema.graphql @@ -374,7 +374,7 @@ type Demarche { """ Date de la publication. """ - datePublication: ISO8601DateTime! + datePublication: ISO8601DateTime """ L’état de dossier pour une démarche déclarative @@ -1589,6 +1589,11 @@ type Revision { Date de la création. """ dateCreation: ISO8601DateTime! + + """ + Date de la publication. + """ + datePublication: ISO8601DateTime id: ID! } diff --git a/app/graphql/types/demarche_type.rb b/app/graphql/types/demarche_type.rb index 9cf7b8e98..42aae2d43 100644 --- a/app/graphql/types/demarche_type.rb +++ b/app/graphql/types/demarche_type.rb @@ -24,7 +24,7 @@ module Types field :declarative, DossierDeclarativeState, "L’état de dossier pour une démarche déclarative", null: true, method: :declarative_with_state field :date_creation, GraphQL::Types::ISO8601DateTime, "Date de la création.", null: false, method: :created_at - field :date_publication, GraphQL::Types::ISO8601DateTime, "Date de la publication.", null: false, method: :published_at + field :date_publication, GraphQL::Types::ISO8601DateTime, "Date de la publication.", null: true, method: :published_at field :date_derniere_modification, GraphQL::Types::ISO8601DateTime, "Date de la dernière modification.", null: false, method: :updated_at field :date_depublication, GraphQL::Types::ISO8601DateTime, "Date de la dépublication.", null: true, method: :unpublished_at field :date_fermeture, GraphQL::Types::ISO8601DateTime, "Date de la fermeture.", null: true, method: :closed_at diff --git a/app/graphql/types/revision_type.rb b/app/graphql/types/revision_type.rb index 3f1ef0847..372dbebb2 100644 --- a/app/graphql/types/revision_type.rb +++ b/app/graphql/types/revision_type.rb @@ -2,6 +2,7 @@ module Types class RevisionType < Types::BaseObject global_id_field :id field :date_creation, GraphQL::Types::ISO8601DateTime, "Date de la création.", null: false, method: :created_at + field :date_publication, GraphQL::Types::ISO8601DateTime, "Date de la publication.", null: true, method: :published_at field :champ_descriptors, [Types::ChampDescriptorType], null: false field :annotation_descriptors, [Types::ChampDescriptorType], null: false