-
Notifications
You must be signed in to change notification settings - Fork 27
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
Backup/Import improvements (series/episode selection + modules fix) #362
Conversation
Hi @mwuttke, |
@ferishili: My tests are successful. I made a bulk import with a new course and one with an old reseted course, using the duplicate workflow, and it works as expected. We used for the test Opencast Version 14.4/15.3 and Moodle Version 4.1.9+. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ferishili,
thank you very much!! I'm sorry for the wait, I have been rendered a bit ineffective for the last few weeks by a kidney stone...
I've left some notes, some more important than others :)
Justus
Hi @justusdieckmann, Thanks for your review, I will try my best to apply the changes as soon as possible. |
Co-authored-by: Justus Dieckmann <45795270+justusdieckmann@users.noreply.github.com>
Hi @justusdieckmann, Best Regards |
…moodle use exponential backoff
Hi @ferishili, thank you, I replied to all comments! Kind Regards |
Hey @justusdieckmann, BR |
Hey @justusdieckmann, Is there something else left to do here? |
Could you look at this in Moodle 4.4? I always get the error 'Your settings have been altered due to unmet dependencies' but can't find the specific cause. |
Hi @justusdieckmann, |
Hey @ferishili as said in the meeting we wanted to have the PR for the 4.4 Release. Therefore, we need it to be 4.4 ready. |
Hey @ferishili, if it would just be refactoring and code style fixes, I would agree. I actually was holding off creating and merging the code style fixes for 4.4 in order to not create more hassle and merge conflicts for you, since 4.4 for example wants to have the language strings sorted alphabetically by key. But this seems to be a functional bug which completely prevents imports in 4.4. Moodle 4.4 has been released for a few weeks now and we want to release a 4.4 version as soon as possible, so if we already found this bug here, it really doesn't make sense to delay fixing it |
Hey @ferishili, I've added a fix, does it look good to you? |
Hey @justusdieckmann, |
Hey @ferishili, that's weird, I have tested it on Moodle 4.1 and no error occured |
Hello @ferishili, I was also unable to detect any errors during my tests with Moodle 4.1 of this pull request. |
My scenario that ends up with that error: (Moodle 4.1)
|
As video: Screen.Recording.2024-05-15.at.16.15.47.400.mov |
Do you have a stacktrace for me @ferishili? |
Not at the moment, let me see what I can do tomorrow! |
I've just had a look through the rest of the code, and I think it isn't really a problem with 4.1, but rather the ACL mode. I've pushed a commit and I believe the error should not occur anymore |
Hey @justusdieckmann, By "ACL Change" as for IMHO they should always remain checked with green tick to avoid any confusion! The Help tooltip icon is also there to explain the logic! Your opinions here are most welcome @mwuttke @justusdieckmann BR |
Hello @ferishili, Hello @justusdieckmann, I've tested this pull request again by using the "ACL Change" and the "Unchecked" mode. And I think Farbod is right with his comment. We normally use "Duplicating Events". So I had forgotten to look at the other variant. |
Hello @justusdieckmann. It's not what I would expect in terms of look and feel, but it does what it's supposed to ;-) Thanks a lot for your review! And thanks a lot for you @ferishili for your work. |
Hi, BR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much!
This PR fixes #193
Description
Currently there is no possibility to select series and episode in course import wizard when selection "Duplicate Event" as import mode, and then the entire series and its events in a course will be imported. Apart from that, after the import is completed if you have also imported LTI modules or Activity modules, they also get imported in the new course, but they are still pointing to the event or series from the source course that everything has been imported from.
How it works.
How does the fix methods work:
the whole concept is that the newly created course after import contains modules that has series/event id from the old course. Therefore, the only goal is to collect the newly created series id, or duplicated event id and replace them in the modules (if any) of newly created course.
NOTE
Please refer to #193 (comment)
This PR will fix: Opencast-Moodle/moodle-mod_opencast#34 as well