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

Settings not being imported after import in Moodle #170

Open
tanurov opened this issue Oct 10, 2024 · 2 comments
Open

Settings not being imported after import in Moodle #170

tanurov opened this issue Oct 10, 2024 · 2 comments

Comments

@tanurov
Copy link

tanurov commented Oct 10, 2024

Dear team,

We have recently recieved a report from a teacher that after importing the block LevelUp in a new moodle course, not all the settings of the block were there:

  1. The level names were all deleted together with their descriptions.
  2. The CRUD settings were added to each seprate rule and also to the plugin in general, just like when you add it as a new block.
  3. For each rule (aprox. 10-12 added for the entire course), first there was the correct rule, then the same rule again, but with 'Error: unknown module'.

We are currently using the moodle version 4.1.13. The LevelUp version we are using is 3.16.0

This would result into having to delete all the extra added settings and filling out missing ones each semester, since it's an university and the teachers are reusing their courses very often.

Thanks in advance for your work!

Best
Tina

P.S. I've noticed this issue being reported in a forum in 2019: https://moodle.org/mod/forum/discuss.php?d=387354

@FMCorz
Copy link
Owner

FMCorz commented Oct 10, 2024

Hi @tanurov,

Thank you for leaving your feedback on the restore process.

Moodle's import process (within the restore process) is designed to merge data within an existing course. What appears to be happening in your case is that the XP block already exists in the target course. When XP was already added (even if it has been removed), the settings and levels cannot be merged and are therefore kept untouched. The rules however, are merged and combined with the existing ones (the default crud ones that would have been created when XP was initially added).

With regards to the "Unknown module" rule, this may be a bug but it can also be an artefact of a misconfiguration in the course the data is being imported from.

Would it be possible for you to try and setup XP in a fresh new course (C1)? Then create a new course (C2) without adding XP to it. It is important to note that XP should not be added, even automatically as a default block. And then to import C1 into C2. These steps should apply XP's setting as you'd expect in C2.

Thank you!
Fred

@tanurov
Copy link
Author

tanurov commented Oct 10, 2024

Thank you @FMCorz , this was actually the case in my test, everything looks like it should.

However, the teacher reports that they hadn't set up a LevelUp block in the new course. We will continue to observe this in other courses and in future semeters.

Thanks for your help and kind regards
Tina

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

No branches or pull requests

2 participants