Merge pull request #8919 from tchak/graphql-stub-fake-files-meta

ETQ intégrateur API, je ne veux pas avoir d'erreurs lorsque j'interroge les métadonnées de certains fichiers
This commit is contained in:
github-merge-queue[bot] 2023-04-18 11:56:32 +00:00 committed by GitHub
commit 110a8aec97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View file

@ -240,7 +240,7 @@ class API::V2::StoredQuery
...FileFragment ...FileFragment
} }
pdf { pdf {
url ...FileFragment
} }
usager { usager {
email email

View file

@ -143,7 +143,10 @@ module Types
{ {
filename: "dossier-#{object.id}.pdf", filename: "dossier-#{object.id}.pdf",
content_type: 'application/pdf', content_type: 'application/pdf',
url: Rails.application.routes.url_helpers.api_v2_dossier_pdf_url(id: sgid) url: Rails.application.routes.url_helpers.api_v2_dossier_pdf_url(id: sgid),
byte_size: 0,
byte_size_big_int: '0',
checksum: ''
} }
end end
@ -152,7 +155,10 @@ module Types
{ {
filename: "dossier-#{object.id}-features.json", filename: "dossier-#{object.id}-features.json",
content_type: 'application/json', content_type: 'application/json',
url: Rails.application.routes.url_helpers.api_v2_dossier_geojson_url(id: sgid) url: Rails.application.routes.url_helpers.api_v2_dossier_geojson_url(id: sgid),
byte_size: 0,
byte_size_big_int: '0',
checksum: ''
} }
end end