From fa1f9109da6e339883010d047d932e585c6ad53d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Parmentier?= Date: Tue, 8 Oct 2024 15:03:11 +0200 Subject: [PATCH] refactor(loterre-resolvers): Remove useless fetch.cfg --- services/loterre-resolvers/v1/fetch.cfg | 28 -------------------- services/loterre-resolvers/v1/transcribe.cfg | 2 +- 2 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 services/loterre-resolvers/v1/fetch.cfg diff --git a/services/loterre-resolvers/v1/fetch.cfg b/services/loterre-resolvers/v1/fetch.cfg deleted file mode 100644 index 1841a07c..00000000 --- a/services/loterre-resolvers/v1/fetch.cfg +++ /dev/null @@ -1,28 +0,0 @@ -[use] -plugin = basics - -[combine] -path = value - -[combine/URLStream] -url = env('primer') -path = false - -[combine/FILESave] -identifier = env('loterreID', 'noid').append('.skos') - -[combine/replace] -path = id -value = get('filename') -path = value -value = self() - -[assign] -path = value -value = get('value.id') - - -# -# À noter : -# L'utilisation d'un fichier .cfg évite de faire apparaître ce fichier comme une route dans la documentation openAPI -# diff --git a/services/loterre-resolvers/v1/transcribe.cfg b/services/loterre-resolvers/v1/transcribe.cfg index 5c4a57e4..5fc0fb9e 100644 --- a/services/loterre-resolvers/v1/transcribe.cfg +++ b/services/loterre-resolvers/v1/transcribe.cfg @@ -45,7 +45,7 @@ value = self().pick(['skos$prefLabel', 'rdf$about']) # Prevent keys from containing dot path notation or start with a dollar character (which is forbidden by nodeJS mongoDB driver) -# use map is trick to apply stamtement only on the value field +# use map is trick to apply statement only on the value field [map] path = value