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

Dashboard Timeline doesn't show new date set via moosh #451

Open
smehrbrodt opened this issue Oct 13, 2023 · 2 comments
Open

Dashboard Timeline doesn't show new date set via moosh #451

smehrbrodt opened this issue Oct 13, 2023 · 2 comments

Comments

@smehrbrodt
Copy link

  • moosh version: 1.11
  • moodle version: 4.2.1
    • database: 10.6.11-MariaDB
  • php version: 8.1.24
  • operating system: Ubuntu

Actual behaviour

After updating quiz using moosh activity-config-set activity 41880 quiz timeclose 1700175481, the timeclose does indeed get updated.
However, in the dashboard, in the timeline widget, there is still the old date. Clearing all cache (both with moosh cache-clear or with Moodle UI) doesn't help.
Only after editing the quiz (without changing anyting) and saving it, the date in the dashboard timeline gets updated.

Expected behaviour

After running moosh activity-config-set activity 41880 quiz timeclose 1700175481 the dashboard timeline should show the new date.

Steps to reproduce

  • Run moosh activity-config-set activity <id> quiz timeclose <new_timestamp>
  • Check timeline in the dashboard

FWIW, the same behavior is seen when updating assignments (fields 'duedate and cutoffdate).

@smehrbrodt
Copy link
Author

I found out that the timeline uses events from the Moodle event table.
When I update the timestart and timesort fields in the events table for the corresponding data set, the timeline displays the correct date.

Is it possible to update the event table when running activity-config-set?

@smehrbrodt
Copy link
Author

Probably it's the core\event\course_module_updated event that needs to be called. Didn't verify yet.

@mi7chal mi7chal assigned mi7chal and unassigned mi7chal Aug 29, 2024
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

2 participants