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

Restoring a course backup does not restore the question bank with --overwrite option #447

Open
Badatos opened this issue Sep 11, 2023 · 1 comment

Comments

@Badatos
Copy link

Badatos commented Sep 11, 2023

  • moosh version: 1.14
  • moodle version: 4.2.2
    • database: Postgres
  • php version: 8.0
  • operating system: Ubuntu 22.04.3 LTS

Actual behaviour

When we use MOOSH to restore a course backup with --overwrite option , it does not restore the question bank, it just delete all the questions.
nb: If we use the same command to restore the backup a 2nd time (or on a course with no question bank), it works well.

Expected behaviour

The course-restore --overwrite command must overwrite the question bank.

Steps to reproduce

  1. Export a course backup with a question bank containing at least 2 questions
  2. Modify the questions
  3. Restore the backup with this command:
    course-restore --overwrite -e course.mbz [COURSE_ID]
@Badatos
Copy link
Author

Badatos commented Sep 11, 2023

For the record, I just tested the same manipulation directly inside Moodle (Restore the same course backup on the course already containing a question bank), and Moodle worked as expected. The problem really comes from Moosh.

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

No branches or pull requests

1 participant