Skip to content

[FEATURE] MDX-140 RAG première inte#16449

Draft
joffreyboches-modulix wants to merge 2 commits into
devfrom
tmp-prem-inte-rag
Draft

[FEATURE] MDX-140 RAG première inte#16449
joffreyboches-modulix wants to merge 2 commits into
devfrom
tmp-prem-inte-rag

Conversation

@joffreyboches-modulix

@joffreyboches-modulix joffreyboches-modulix commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

🚙 Problème

🍃 Proposition

🦵 Remarques

🔗 Pour tester

https://app-pr16449.review.pix.fr/modules/8393fa52/ia-rag/details

@pix-bot-github

pix-bot-github commented Jun 5, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Les tests Modulix ont échoué. Voici les détails :


> pix-api@5.425.0 modulix:test
> npm run test:api:path -- 'tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js' 'tests/devcomp/acceptance/module-instantiation_test.js' 'tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js' 'tests/devcomp/unit/infrastructure/repositories/module-repository_test.js'


> pix-api@5.425.0 test:api:path
> NODE_ENV=test node --env-file-if-exists=.env ./node_modules/mocha/bin/mocha --exit --recursive --reporter=${MOCHA_REPORTER:-dot} --retries=${MOCHA_RETRIES:-0} --timeout=5000 tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js tests/devcomp/acceptance/module-instantiation_test.js tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js tests/devcomp/unit/infrastructure/repositories/module-repository_test.js

.env not found. Continuing without it.


  .................................!......................
  ........................................................
  ........................................................
  ......................................!

  205 passing (28s)
  2 failing

  1) Unit | Infrastructure | Datasources | Learning Content | ModuleDatasource
       #list
         modules content
           module "ia-rag" should contain a valid structure:
     AssertionError: 
============================================================

Error: "sections[1].grains[0].components[1].steps[0].elements[0].proposals[0].content" failed custom validation because HTML is not allowed in this field.
Valeur concernée à rechercher : "<p>Oui</p>"

────────────────────────────────────────────────────────────

Error: "sections[1].grains[0].components[1].steps[0].elements[0].proposals[1].content" failed custom validation because HTML is not allowed in this field.
Valeur concernée à rechercher : "<p>Non</p>"

────────────────────────────────────────────────────────────

Error: "sections[1].grains[0].components[1].steps[1].elements[0].proposals[0].content" failed custom validation because HTML is not allowed in this field.
Valeur concernée à rechercher : "<p>Oui</p>"

────────────────────────────────────────────────────────────

Error: "sections[1].grains[0].components[1].steps[1].elements[0].proposals[1].content" failed custom validation because HTML is not allowed in this field.
Valeur concernée à rechercher : "<p>Non</p>"

────────────────────────────────────────────────────────────

Error: "sections[1].grains[0].components[1].steps[2].elements[0].proposals[0].content" failed custom validation because HTML is not allowed in this field.
Valeur concernée à rechercher : "<p>Oui</p>"

────────────────────────────────────────────────────────────

Error: "sections[1].grains[0].components[1].steps[2].elements[0].proposals[1].content" failed custom validation because HTML is not allowed in this field.
Valeur concernée à rechercher : "<p>Non</p>"

────────────────────────────────────────────────────────────

Error: "sections[1].grains[0].components[1].steps[3].elements[0].proposals[0].content" failed custom validation because HTML is not allowed in this field.
Valeur concernée à rechercher : "<p>Oui</p>"

────────────────────────────────────────────────────────────

Error: "sections[1].grains[0].components[1].steps[3].elements[0].proposals[1].content" failed custom validation because HTML is not allowed in this field.
Valeur concernée à rechercher : "<p>Non</p>"

============================================================
: expected ValidationError: "sections[1].grains[0].c… { …(2) } to equal undefined
      at Context.<anonymous> (file:///home/runner/work/pix/pix/api/tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js:161:33)

  2) Unit | DevComp | Repositories | ModuleRepository
       #list
         errors
           if there are no duplicated IDs in modules content
             should result an empty array of duplicated IDs :

      AssertionError: expected [ Array(1) ] to deeply equal []
      + expected - actual

      -[
      -  "005e056b-0125-4b09-ad36-6e168e09507b"
      -]
      +[]
      
      at Context.<anonymous> (file:///home/runner/work/pix/pix/api/tests/devcomp/unit/infrastructure/repositories/module-repository_test.js:386:45)



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants