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

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

Open
ScottVerbeek opened this issue Sep 27, 2024 · 0 comments · May be fixed by #223
Open

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

ScottVerbeek opened this issue Sep 27, 2024 · 0 comments · May be 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)
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

Successfully merging a pull request may close this issue.

1 participant