1. 12 Oct, 2015 3 commits
  2. 10 Oct, 2015 7 commits
    • Mark Nelson's avatar
    • Damyon Wiese's avatar
      MDL-46455 backup: Keep external database logstore code self-contained. · 51311962
      Damyon Wiese authored and Mark Nelson's avatar Mark Nelson committed
      General backup/restore does not need to handle external data sources natively - so
      any changes needed to achieve this should be contained to the plugin that needs it.
      51311962
    • Mark Nelson's avatar
      bcfa51ca
    • Eloy Lafuente's avatar
      MDL-46455 restore: Implement restore of standard logstore · ea6c5643
      Eloy Lafuente authored and Mark Nelson's avatar Mark Nelson committed
      Using standard subplugin support, this commits implements
      the restore of logstore subplugins in general and the
      standard logstore is particular. Notes:
      
      - TODO: Decide about these 2 pending issues:
      
      1) Some logs are already created (events fired) by the restore process itself. Every time
         an API is used and it fires events... corresponding (and actual!)
         logs are created. We need to prevent restore to duplicate them (or,
         alternatively, stop firing events when restore is happening).
      
      2) There are 2 pieces of information in the logs that, right now, can
         not be restored, because the process does not know enough to be able
         to remap that information to its new counterparts. We are talking
         about objectid and other columns. So we need to specify, in some way
         understandable by restore, to which existing mappings they correspond
         to.
      ea6c5643
    • Eloy Lafuente's avatar
      MDL-46455 backup: Implement backup of standard logstore · 73c2a354
      Eloy Lafuente authored and Mark Nelson's avatar Mark Nelson committed
      Using standard subplugin support, this commit implements
      the backup of logstore subplugins in general and the
      standard logstore in particular. Notes:
      
      - Uses a custom final element (base64_encode_final_element) to
        support the storage of serialized 'other' information in logs.
      - Organization: Instead of directly extending backup_subplugin,
        every logstore extends backup_tool_log_logstore_subplugin just
        in case any shared code is needed in the future.
      - Implements both course and activity logs, sharing the structure
        completely (both are based in contextid to pick the target
        information, from database or whatever other logstores use).
      73c2a354
    • Eloy Lafuente's avatar
      MDL-46455 restore: Extend support for subplugins to any plugin. · 6a45e6b1
      Eloy Lafuente authored and Mark Nelson's avatar Mark Nelson committed
      In order to implement the backup and restore of log stores, that
      are created as subplugins of the tool_log plugin , we need to
      extend subplugins support from activities to virtually any plugin.
      
      Basically that implies moving the add_subplugin_structure() method from
      its current, restricted, activity level to general restore_structure_step.
      
      This commit implements the change in restore, covered with tests verifying
      old, bc behavior and also new, general one.
      6a45e6b1
    • Eloy Lafuente's avatar
      MDL-46455 backup: Extend support for subplugins to any plugin. · ba66edd0
      Eloy Lafuente authored and Mark Nelson's avatar Mark Nelson committed
      In order to implement the backup and restore of log stores, that
      are created as subplugins of the tool_log plugin , we need to
      extend subplugins support from activities to virtually any plugin.
      
      Basically that implies moving the add_subplugin_structure() method from
      its current, restricted, activity level to general backup_structure_step.
      
      This commit implements the change in backup, covered with tests verifying
      old, bc behavior and also new, general one.
      ba66edd0
  3. 08 Oct, 2015 12 commits
  4. 07 Oct, 2015 18 commits