Skip to content

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

@ScottVerbeek

Description

@ScottVerbeek
Contributor

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 )

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @ScottVerbeek@bluetom

      Issue actions

        Improvement: Allow steps to be executed even though course no longer exists · Issue #222 · learnweb/moodle-tool_lifecycle