Update dossier serialize query to stop using deprecated fileds
This commit is contained in:
parent
a2a66a6d59
commit
18ce027b84
4 changed files with 57 additions and 50 deletions
|
@ -1139,6 +1139,7 @@ type File {
|
|||
}
|
||||
|
||||
interface GeoArea {
|
||||
description: String
|
||||
geometry: GeoJSON!
|
||||
id: ID!
|
||||
source: GeoAreaSource!
|
||||
|
@ -1471,6 +1472,7 @@ type ParcelleCadastrale implements GeoArea {
|
|||
codeCom: String! @deprecated(reason: "Utilisez le champ `commune` à la place.")
|
||||
codeDep: String! @deprecated(reason: "Utilisez le champ `commune` à la place.")
|
||||
commune: String!
|
||||
description: String
|
||||
feuille: Int! @deprecated(reason: "L‘information n‘est plus disponible.")
|
||||
geometry: GeoJSON!
|
||||
id: ID!
|
||||
|
@ -1590,7 +1592,7 @@ type Revision {
|
|||
}
|
||||
|
||||
type SelectionUtilisateur implements GeoArea {
|
||||
description: String!
|
||||
description: String
|
||||
geometry: GeoJSON!
|
||||
id: ID!
|
||||
source: GeoAreaSource!
|
||||
|
|
|
@ -13,6 +13,7 @@ module Types
|
|||
global_id_field :id
|
||||
field :source, GeoAreaSource, null: false
|
||||
field :geometry, Types::GeoJSON, null: false, method: :safe_geometry
|
||||
field :description, String, null: true
|
||||
|
||||
definition_methods do
|
||||
def resolve_type(object, context)
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module Types::GeoAreas
|
||||
class SelectionUtilisateurType < Types::BaseObject
|
||||
implements Types::GeoAreaType
|
||||
|
||||
field :description, String, null: false
|
||||
end
|
||||
end
|
||||
|
|
|
@ -48,7 +48,9 @@ class SerializerService
|
|||
query serializeChamp($number: Int!, $id: ID!) {
|
||||
dossier(number: $number) {
|
||||
champs(id: $id) {
|
||||
...RootChampFragment
|
||||
...ChampFragment
|
||||
...RepetitionChampFragment
|
||||
...CarteChampFragment
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -56,7 +58,9 @@ class SerializerService
|
|||
query serializeAnnotation($number: Int!, $id: ID!) {
|
||||
dossier(number: $number) {
|
||||
annotations(id: $id) {
|
||||
...RootChampFragment
|
||||
...ChampFragment
|
||||
...RepetitionChampFragment
|
||||
...CarteChampFragment
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -77,29 +81,28 @@ class SerializerService
|
|||
label
|
||||
}
|
||||
champs {
|
||||
...RootChampFragment
|
||||
...ChampFragment
|
||||
...RepetitionChampFragment
|
||||
...CarteChampFragment
|
||||
}
|
||||
annotations {
|
||||
...RootChampFragment
|
||||
...ChampFragment
|
||||
...RepetitionChampFragment
|
||||
...CarteChampFragment
|
||||
}
|
||||
avis {
|
||||
...AvisFragment
|
||||
}
|
||||
demandeur {
|
||||
... on PersonnePhysique {
|
||||
civilite
|
||||
nom
|
||||
prenom
|
||||
dateDeNaissance
|
||||
}
|
||||
...PersonnePhysiqueFragment
|
||||
...PersonneMoraleFragment
|
||||
}
|
||||
motivation
|
||||
motivationAttachment {
|
||||
byteSize
|
||||
checksum
|
||||
filename
|
||||
contentType
|
||||
...FileFragment
|
||||
}
|
||||
revision {
|
||||
id
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -116,10 +119,7 @@ class SerializerService
|
|||
email
|
||||
}
|
||||
attachment {
|
||||
byteSize
|
||||
checksum
|
||||
filename
|
||||
contentType
|
||||
...FileFragment
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -141,10 +141,7 @@ class SerializerService
|
|||
}
|
||||
... on PieceJustificativeChamp {
|
||||
file {
|
||||
byteSize
|
||||
checksum
|
||||
filename
|
||||
contentType
|
||||
...FileFragment
|
||||
}
|
||||
}
|
||||
... on AddressChamp {
|
||||
|
@ -154,33 +151,35 @@ class SerializerService
|
|||
}
|
||||
}
|
||||
|
||||
fragment RootChampFragment on Champ {
|
||||
...ChampFragment
|
||||
... on RepetitionChamp {
|
||||
fragment RepetitionChampFragment on RepetitionChamp {
|
||||
champs {
|
||||
...ChampFragment
|
||||
}
|
||||
}
|
||||
... on CarteChamp {
|
||||
|
||||
fragment CarteChampFragment on CarteChamp {
|
||||
geoAreas {
|
||||
source
|
||||
description
|
||||
geometry {
|
||||
type
|
||||
coordinates
|
||||
}
|
||||
... on ParcelleCadastrale {
|
||||
codeArr
|
||||
codeCom
|
||||
codeDep
|
||||
feuille
|
||||
nomCom
|
||||
prefixe
|
||||
numero
|
||||
commune
|
||||
section
|
||||
surfaceParcelle
|
||||
surfaceIntersection
|
||||
surface
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fragment PersonnePhysiqueFragment on PersonnePhysique {
|
||||
civilite
|
||||
nom
|
||||
prenom
|
||||
dateDeNaissance
|
||||
}
|
||||
|
||||
fragment PersonneMoraleFragment on PersonneMorale {
|
||||
|
@ -229,5 +228,12 @@ class SerializerService
|
|||
regionName
|
||||
regionCode
|
||||
}
|
||||
|
||||
fragment FileFragment on File {
|
||||
filename
|
||||
checksum
|
||||
byteSize
|
||||
contentType
|
||||
}
|
||||
GRAPHQL
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue