Moodle Community Sites
  1. Moodle Community Sites
  2. MDLSITE-1473

Find a method of redirecting from the old system to the new if appropriate

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Component/s: moodle.org/plugins
    • Labels:
      None
    • Rank:
      19735

      Description

      I've just been talking to Anthony, it would be great if there were a way to redirect from the old system to the new system if the user attempts to view a plugin within the old system that has already been added to the new.
      After thinking about this I think the following would be the best way around this:

      1. Add a field to the local_contrib_plugins table for oldpluginid.
      2. Allow contributors + admins to set that field when creating/editing.
      3. Create a hack for moodle.org/mod/data/view.php so that:
        1. If its the modules and plugins database
        2. and a valid plugin id was provided
        3. and the local_contrib_plugins table exists
        4. and there is a record where oldpluginid == plugin id.
        5. Then redirect to view the plugin in the new system.

      This would of course require a hack in moodle.org to deal with this and as moodle.org isn't running GIT yet would require as few changes as possible.

      Once we have the system up on moodle.org I'll create this hack and add the appropriate field so that we can start working on things.

      Marina please leave this one for me

        Issue Links

          Activity

          Hide
          Martin Dougiamas added a comment -

          Leaving this for you, Sam.

          Show
          Martin Dougiamas added a comment - Leaving this for you, Sam.
          Hide
          Aparup Banerjee added a comment -

          Hi

          (sorry for the spam, just wanted to watch lots of currently open issues)

          Show
          Aparup Banerjee added a comment - Hi (sorry for the spam, just wanted to watch lots of currently open issues)
          Hide
          Aparup Banerjee added a comment -

          added link to an idea that may help with this migration of old plugins into new DB.

          Show
          Aparup Banerjee added a comment - added link to an idea that may help with this migration of old plugins into new DB.

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development