Services/loterre annotate/loterre annotate first#444
Conversation
parmentf
left a comment
There was a problem hiding this comment.
Une petite suggestion (pour une typo) et des remarques diverses...
| post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream | ||
| post.requestBody.required = true | ||
| post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream | ||
| post.summary = Produit la liste des termes Loterre identifiés dans le texte ou rend le texte annoté |
There was a problem hiding this comment.
❓ question: Il y a un paramètre pour sélectionner le comportement de la route (produire la liste des termes identifiés / rendre le texte annoté) ?
Ou bien c'est juste une manière différente d'exprimer la même chose ?
L'exemple indique plutôt le premier comportement.
| post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream | ||
| post.requestBody.required = true | ||
| post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream | ||
| post.summary = Produit la liste des termes Loterre identifiés dans le texte ou rend le texte annoté |
There was a problem hiding this comment.
❓ question: Même question que pour la version en...
| } | ||
| } | ||
| ], | ||
| "paths": { |
There was a problem hiding this comment.
🪳 : nitpick (non-blocking): D'habitude on ne crée pas nous-mêmes les champs paths et components du swagger, c'est le serveur ezs qui le fait.
Il est possible que ce fichier surcharge ce que produirait le serveur ezs.
L'important c'est que si tu gardes cette manière de faire, il faut maintenir cette partie aussi (au lieu de la générer via les métadonnées des fichiers .ini).
There was a problem hiding this comment.
Mais tout ça m'a l'air très propre.
| ENV LOTERRE_REGISTRY=/app/public/configs/registry.yaml | ||
|
|
||
| RUN apt-get update && \ | ||
| apt-get -y --no-install-recommends install git && \ |
There was a problem hiding this comment.
🪳 : nitpick (non-blocking): La bonne pratique pour l'installation d'un paquet apt dans un Dockerfile est de mettre sa version complète (même si je comprends que pendant le développement, c'est plus pratique de ne pas la préciser).
C'est principalement pour une question de reproductibilité (et malheureusement, ça force à une maintenance plus pénible pour les versions suivantes, mais c'est déjà ce qui est fait en ligne 7 pour la première étape).
Co-authored-by: François Parmentier <francois.parmentier@gmail.com>
There was a problem hiding this comment.
OK. Tu peux maintenant faire une nouvelle version:
npm -w services/loterre-annotate version majorÇa provoquera la construction de l'image et ça la poussera sur Docker Hub.
Il n'y aura plus qu'à renseigner la machine et le port dans swagger.json avant que je puisse merger la branche, et créer l'URL qui pointera vers le bon container.
Ah, mais je vois que ton swagger.json n'a plus les lignes à modifier:
{
"url": "http://vptermsuite.intra.inist.fr:49157/",
"description": "Latest version for production",
"x-profil": "Standard"
}Il faut y mettre le bon port (et ne pas oublier le champ x-profil, sinon notre script de publication ne fonctionnera pas).
parmentf
left a comment
There was a problem hiding this comment.
Ce qui est étonnant, c'est que des tests soient quand même passés.
Co-authored-by: François Parmentier <francois.parmentier@gmail.com>
|
Bon, ben maintenant il faut faire une version patch. |
parmentf
left a comment
There was a problem hiding this comment.
Je ne vois pas ce qui coince dans la construction de l'image (a priori c'est la récupération du dictionary, mais pourquoi alors que la version précédente était passée.).
|
|
||
| #### URL du service | ||
|
|
||
| > https://loterre-annotate.2.0.2/v1/CODE_LANGUE/loterre-annotate/2.0.2?loterreID=CODE_VOC |
There was a problem hiding this comment.
🪳 : nitpick (non-blocking): Bad URL
| > https://loterre-annotate.2.0.2/v1/CODE_LANGUE/loterre-annotate/2.0.2?loterreID=CODE_VOC | |
| > https://loterre-annotate.services.istex.fr/v1/CODE_LANGUE/loterre-annotate/annotate?loterreID=CODE_VOC |
| ### Requête | ||
|
|
||
| ```bash | ||
| curl -X POST 'https://loterre-annotate.2.0.2/v1/en/loterre-annotate/2.0.2?loterreID=P66' \ |
There was a problem hiding this comment.
🪳 : nitpick (non-blocking): Bad URL
| curl -X POST 'https://loterre-annotate.2.0.2/v1/en/loterre-annotate/2.0.2?loterreID=P66' \ | |
| curl -X POST 'https://loterre-annotate.services.istex.fr/v1/en/loterre-annotate?loterreID=P66' \ |
| }, | ||
| { | ||
| "url": "https://loterre-annotate.services.istex.fr", | ||
| "description": "Service de production" |
There was a problem hiding this comment.
☑️ todo: Add x-profil standard
| "description": "Service de production" | |
| "description": "Service de production", | |
| "x-profil": "Standard" |
Did you use an AI Assistant, it keeps removing that line...
No description provided.