UNIMOODLE / moodle-local_coursetransfer

Lote P3.2 - Restauración de cursos entre plataformas
2 stars 2 forks source link

Functionality 3. Admin Moodle CLI script to restore a category using functionalities 1 and 2 #17

Closed mapemo8 closed 2 months ago

mapemo8 commented 2 months ago

Bugs reported on the latest published version of the plugin on github (2024031800).

As an admin role:

*Administrator UI

  1. When restoring a category to an existing category by choosing to delete the source category and restoring the courses without source data, two problems are observed:

    i. Rename the target category using the source name and restore the X courses from the source category to it. ii) It restores the X courses from the source category.

    Actual result:

It is a wrong behaviour.

Expected result:

If a source category X with 4 courses is selected to be restored to a target Y with 5 courses, there will be two working situations.

For a category Y with 5 courses, there can be managed two working situations: 1) In category Y, the subcategory X with its 4 courses will be created. 2) In category Y, it restores the 4 source courses without creating a subcategory.

Actually, what it has produced is a third unexpected situation: it does not create a subcategory.

mapemo8 commented 2 months ago

Bugs reported on the latest published version of the plugin on github (2024031800).

As an admin role:

*Administrator UI

1. When restoring a category to an existing category by choosing to delete the source category and restoring the courses without source data, two problems are observed:

i. Rename the target category using the source name and restore the X courses from the source category to it. ii) It restores the X courses from the source category.

Actual result:

It is a wrong behaviour.

Expected result:

If a source category X with 4 courses is selected to be restored to a target Y with 5 courses, there will be two working situations.

For a category Y with 5 courses, there can be managed two working situations:

1. In category Y, the subcategory X with its 4 courses will be created.

2. In category Y, it restores the 4 source courses without creating a subcategory.

Actually, what it has produced is a third unexpected situation: it does not create a subcategory.