Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chatbot 630 documentary resources display && Chatbot 624 / 671 / 673 platform redesign #251

Open
wants to merge 21 commits into
base: develop
Choose a base branch
from

Conversation

romaricspklee
Copy link
Contributor

No description provided.

@romaricspklee romaricspklee changed the title Chatbot 630 documentary resources display Chatbot 630 documentary resources display && Chatbot 671 / 672 platform redesign Sep 27, 2024
@romaricspklee romaricspklee changed the title Chatbot 630 documentary resources display && Chatbot 671 / 672 platform redesign Chatbot 630 documentary resources display && Chatbot 671 / 673 platform redesign Sep 27, 2024
@romaricspklee romaricspklee force-pushed the chatbot-630-documentary-resources-display branch from 880fe8d to 7602916 Compare September 27, 2024 13:59
@romaricspklee romaricspklee changed the title Chatbot 630 documentary resources display && Chatbot 671 / 673 platform redesign Chatbot 630 documentary resources display && Chatbot 624 / 671 / 673 platform redesign Oct 11, 2024
}
}
return documentaryResourceExport;
}).collect(VCollectors.toDtList(DocumentaryResourceExport.class)));
Copy link
Collaborator

@cmazereau cmazereau Nov 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il me semblerait plus efficace, plutôt que de peupler la liste des documentaryResourceExport en Java, en bouclant sur chaque ressource et en les chargeant une à une, de récupérer cette liste directement à l'aide d'une requête en base.
Le seul point bloquant pour cette requête était la récupération du contenu de l'éventuel fichier associé, récupération supprimée dans le commit 9f31d23

}

@GET("/getDocumentaryResourceFile")
public VFile getDocumentaryResourceFile(@QueryParam("label") final String label) {
Copy link
Collaborator

@cmazereau cmazereau Nov 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Le libellé d'un document (utilisé ici comme paramètre) n'est pas unique, et ne permet donc pas d'identifier correctement le fichier à récupérer.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oui, je n'ai pas le détail de pourquoi c'est fait comme ça, mais il faudrait plutôt se baser sur un ID. A corriger

Copy link
Collaborator

@cmazereau cmazereau Nov 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrigé pour les ressources documentaires, mais le problème subsiste pour les pièces jointes, à cause d'un sujet fonctionnel (cf Jira CHATBOT-692)
cf commit ace3f6b , PR #255

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants