Pogues icon indicating copy to clipboard operation
Pogues copied to clipboard

Select and add a code list from the metadata repo

Open romaintailhurat opened this issue 3 years ago • 3 comments

The implem has already been developped, but validation is needed.

romaintailhurat avatar Jan 21 '22 14:01 romaintailhurat

Context:

The validation is made on this Pogues instance (🔒 internal link)

Summary:

  • search on keyword is good, fast enough
  • performance issues after adding a large list (NAF) to a question
  • some encoding problems on output (NAF)
  • bug on "activité" ? → probably the "é" (or any non basic char ?)
    • validation produces a blanck screen
    • in the browser console o.map is not a function

Happy path:

  • In a newly created question, choose a unique choice list (🇫🇷 "Réponse à choix unique")
  • Then choose the option "A list from the repository" (🇫🇷 "Retrouver dans le référentiel")
  • In the search field, type "animal" then click "Search"
  • One echo, the "ANIMALS" list, click on the "Download" button (the ⬇️ )
  • Generate the collected variables
  • Validate

Problematic paths:

(1)

  • In a newly created question, choose a multiple choice list (🇫🇷 "Réponse à choix multiples")
  • Then choose the option "A list from the repository" (🇫🇷 "Retrouver dans le référentiel")
  • In the search field, type "animal" then click "Search"
  • One echo, the "ANIMALS" list, click on the "Download" button (the ⬇️ )
  • 🐞 ❗ Impossible to generate the collected variables
    • as a consequence, it is not possible to validate the whole question

(2)

  • In a newly created question, choose a multiple choice list (🇫🇷 "Réponse à choix multiples")
  • Then choose the option "A list from the repository" (🇫🇷 "Retrouver dans le référentiel")
  • In the search field, type "NAF" then click "Search"
  • 🐞 ❗ The imported list is not correctly encoded

(3)

  • In a newly created question, choose a multiple choice list (🇫🇷 "Réponse à choix multiples")
  • Then choose the option "A list from the repository" (🇫🇷 "Retrouver dans le référentiel")
  • In the search field, type "NAF" then click "Search"
  • After the import, most of the UI is laggy, for example getting in or out a question UI

(x)

In some particulars conditions (to be determined) it is not possible to both generate the collected variables and to validate the question.

romaintailhurat avatar Jan 25 '22 13:01 romaintailhurat

The encoding problem is solved! ⭐

romaintailhurat avatar Jan 28 '22 16:01 romaintailhurat

The feature is ok, but we still got an issue with Pogues performance when using a large list (the NAF codelist for example), we need to sort that out.

@loichenninger do we create a specific issue for that ?

romaintailhurat avatar Feb 03 '22 16:02 romaintailhurat