Menu

#18 Converting XML questions to CP questions makes too many dirs

open
Spectatus (17)
2
2011-08-12
2011-08-11
No

It is possible to "convert" a question that is already held as a content package to a content package. No data seems to be lost, but each time it is done, a new directory is created for the resources. No problem so far (except for unnecessary op).

Take the newly created CP question, and convert again. The directory containing the resources is put into a parent directory (so it ends up one level down). So every time a CP question is "converted", another level of directory structure is created.

Example attachment contains quesiton1.zip converted to question1.zip.

Discussion

  • Marina Isaac

    Marina Isaac - 2011-08-11
     
  • Marina Isaac

    Marina Isaac - 2011-08-11

    Should find out why the multiple levels are created, but also, as different icons for XML questions and CP questions are desired, record the question's origin (XML or CP) and only convert if not already a CP.

     
  • Marina Isaac

    Marina Isaac - 2011-08-12

    When CP question added to the test, an extra level is created in its directory structure. Won't be easy to sort that out.

    Also, there's an additional type of question source: if the question was loaded as part of a test.

    So in effect, this is a thing to EXPORT individual questions from a test, so it shouldn't matter (very much) if all these extra directories are created.

    Something to look at at a later date...

     
  • Marina Isaac

    Marina Isaac - 2011-08-12
    • priority: 3 --> 2
    • status: open --> open-postponed
     
  • Marina Isaac

    Marina Isaac - 2011-08-12

    Actually the extra directory level is created when adding a question CP to a test. But the nett effect is the same.

     
  • Marina Isaac

    Marina Isaac - 2011-08-12
    • summary: Converting CP questions to CP questions makes too many dirs --> Converting XML questions to CP questions makes too many dirs
     
  • Marina Isaac

    Marina Isaac - 2011-08-12

    Every time a question content package is loaded into a test, an extra level is inserted into the "directory tree". So if such a question is exported to a new content package, the result has this extra level. In time, you could end up with a crazy number of directory levels. Also, at some point it seems to create problems with MAE, but only under certain circumstances, i.e. create a new test, add an XML question, export that to a CP called level1, add the level1 CP to the test, then export that ... until you end up adding the level3 CP to the test. The test runs OK. Create a fresh test, add the level3 CP, and MAE doesn't like it. Will require further investigation.

     
  • Marina Isaac

    Marina Isaac - 2011-08-12
    • status: open-postponed --> open
     
MongoDB Logo MongoDB