Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-70700

Clean up the orphan or unused h5p export files

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9.4, 3.10.1, 3.11
    • Fix Version/s: None
    • Component/s: H5P
    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE

      Description

      As a consequence of MDL-66769 where we have developed a task to clean up the orphan or unuse H5P content when some activity/resource was been removed, we need to remove the unused h5p export files which are linked to system context.

      In order to remove these files, we have to be sure that we could identify in the right way. For instance, taking a look at this function (get_export_info_from_context_id) we could figure out how to do it.

      This is how is the filename is built:

      $filename = "{$slug}{$content['id']}.h5p";
      

       

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              cescobedo Carlos Escobedo
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: