Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Improvement: Allow steps to be executed even though course no longer exists #222

Closed
ScottVerbeek opened this issue Sep 27, 2024 · 0 comments · Fixed by #223
Closed

Improvement: Allow steps to be executed even though course no longer exists #222

ScottVerbeek opened this issue Sep 27, 2024 · 0 comments · Fixed by #223

Comments

@ScottVerbeek
Copy link
Contributor

ScottVerbeek commented Sep 27, 2024

Use case: I want to clear up my database tables. After a course is backed-up, the backup file contains the logs that are in {logstore_standard_log} table. I then delete the course and finally I wish to remove all records from the {logstore_standard_log} table. I also don't want the deletion logs in the table, thus running the custom step (see below) before deletion isn't a option.

Here is the use case in a very simple plugin step: https://github.com/catalyst/moodle-tool_lcprunecourselogstep/blob/main/classes/lifecycle/step.php (plugin depends on #189 )

ScottVerbeek added a commit to catalyst/moodle-tool_lifecycle that referenced this issue Sep 27, 2024
picnicpete added a commit to catalyst/moodle-tool_lifecycle that referenced this issue Oct 2, 2024
…-course-does-not-exist

Allow steps to run when course no longer exits (learnweb#222)
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants