-
Notifications
You must be signed in to change notification settings - Fork 21
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
Changes to dates not syncing with Calendar #19
Comments
Sorry, I don't have time to look into this yet. As you say, something must be happening in the activity code that we need to replicate. |
Hi TIm, I've observed this issue as well. For some reason the events just weren't created for the resources I modified using Reports-->Dates We're running Moodle 3.4.3. The activities I was editing using Report-->Dates had been imported from a previous course. I was updating Expected completion dates. After editing expected completion dates using the Dates plugin, the updated file and URL activities weren't showing on the course calendar. If I enter the Edit settings individually for each of the activities and save, the activities then show in the calendar. The plugin is a huge timesaver. Please work to resolve this issue! Let me know if there is any additional information I can provide. |
I suspect that this problem with the dates on calendar events not updating after dates have been modified via the Edit Dates tool is actually an issue with core Moodle code and not the plugin. However, I have an idea for how it might be addressed via the plugin. Moodle has an adhoc task, refresh_mod_calendar_events_task, whose purpose is to update the dates on calendar events to ensure they are aligned to the dates in the settings of the course modules. For example, when you restore a course in Moodle, an instance of this adhoc task is created for the course. A couple years ago I had researched the origins of this task and it sounded like the task was Moodle's concession that some scenarios did not update calendar dates and that the task was an easier solution than trying to fix all the possible scenarios in a myriad of activity plugins. My suggestion would be to code the Edit Dates plugin to create an instance of the refresh_mod_calendar_events_task adhoc task for the course when a user submits any changes through the plugin. This would ensure that within a few minutes of updating dates on the activities in the course that the corresponding calendar events are also updated. |
There is a time saver if you want to use the tool, but have the Calendar work. After changing all the dates,
In the meantime, it would indeed be nice to see this bug addressed! |
I am also working with the Dates plugin and find it useful -- even if I have to open and save all the assignments it still saves time. |
We don't us teh assignment tool much ourselves, and I am busy with other things. However, if someone has time to make a pull request, I will find time to review it. |
I haven't check all the mod types, but I have a proposed fix for forums. #40 |
I have been testing the adhoc task that @brian-winstead mentioned. I'm currently just looking at forums. What I found is 2 things. So I have combined the two fixes. Using the task to rebuild some of the tasks, plus a fix for forums as well. #40 is now updated with this knowledge. :) |
In #60 , Tim mentioned that "what I said [in this thread] is the latest position": that " if someone has time to make a pull request, I will find time to review it." I've pinged Tim in the pull request mentioned #40 so that they can take a look! Hope I'm not being too obtrusive, and I appreciate anyone's time. |
This problem still exists and we regularly receive feedback from teachers at our university about incorrect dates in the calendar. I would really appreciate if someone could take a look at this now that the pull request has been made. 🙂 |
Not sure if this is problem with the calendar system or the Dates plugin.
Updated various dates for several forums, assignments and quizzes using the Dates Report system / plugin. The changes appeared to be saved to the individual activities, but did not update in the calendar system.
If I then open up (edit) the individual activity, I can see that the date was changed. When I then save the activity (even though I made no additional changes), the date is updating on the calendar.
I don't know the inner-workings of the Dates plugin, but it appears that some kind of database write is happening when saving directly from an activity that isn't happening when editing activity dates via the Dates plugin.
I am running Moodle 3.5.2 (just updated a day or two ago).
The text was updated successfully, but these errors were encountered: