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

Elevate the ltiservice (mod/lti/service/gradebookservices) subplugin type to a core plugin type.

XMLWordPrintable

    • MDL-79593-main
    • Hide

      Testing the data migration during upgrade

      1. Install a new site using b2fa19f45df7bb8 (this is the last weekly on which the feature branch is based and prevents version number issues during this test)
      2. Expose your site on ngrok, etc.
      3. Go to "Site admin > Plugins > External tool > Manage tools"
      4. Paste in https://robotest.theedtech.dev/register and click "Add LTI Advantage"
      5. When the tool's registered, go down and click the "Close" button.
      6. Go back to the manage tools page
      7. Activate the tool
      8. Edit the tool and change "Tool configuration" to "Show in activity chooser..."
      9. Create a course
      10. Click to add an activity, selecting Robotest
      11. Click "Select content"
      12. Choose "Why choose, one of each please"
      13. Save the activity instance form
      14. Open a terminal and go to your DB
      15. Run:

        select * from mdl_ltiservice_gradebookservices;
        

      16. Verify 3 rows are returned
      17. Now, back in the terminal, run the following (just to ensure we don't have records starting at id 1, for testing purposes)

        delete from mdl_ltiservice_gradebookservices where id=1;
        

      18. Now run:

        select * from mdl_ltiservice_gradebookservices;
        

      19. Note the rows, there should be 2 starting at id=2
      20. Now, checkout the patch
      21. Upgrade the site and Verify no errors are seen during upgrade
      22. Now, again run:

        select * from mdl_ltiservice_gradebookservices;
        

      23. Verify you see the same 2 rows, this time starting at id=1 (i.e. new table, data copied over)
      24. Check the mod/lti/service directory
      25. Verify it's empty except for the readme (to be dealt with in MDL-80231)
      Show
      Testing the data migration during upgrade Install a new site using b2fa19f45df7bb8 (this is the last weekly on which the feature branch is based and prevents version number issues during this test) Expose your site on ngrok, etc. Go to "Site admin > Plugins > External tool > Manage tools" Paste in https://robotest.theedtech.dev/register and click "Add LTI Advantage" When the tool's registered, go down and click the "Close" button. Go back to the manage tools page Activate the tool Edit the tool and change "Tool configuration" to "Show in activity chooser..." Create a course Click to add an activity, selecting Robotest Click "Select content" Choose "Why choose, one of each please" Save the activity instance form Open a terminal and go to your DB Run: select * from mdl_ltiservice_gradebookservices; Verify 3 rows are returned Now, back in the terminal, run the following (just to ensure we don't have records starting at id 1, for testing purposes) delete from mdl_ltiservice_gradebookservices where id=1; Now run: select * from mdl_ltiservice_gradebookservices; Note the rows, there should be 2 starting at id=2 Now, checkout the patch Upgrade the site and Verify no errors are seen during upgrade Now, again run: select * from mdl_ltiservice_gradebookservices; Verify you see the same 2 rows, this time starting at id=1 (i.e. new table, data copied over) Check the mod/lti/service directory Verify it's empty except for the readme (to be dealt with in MDL-80231 )
    • 3
    • Team Alpha - Sprint 2 I1-2024, Team Alpha - Sprint 3 I1-2024

      Transfer the present mod/lti/service/gradebookservices plugins that are already part of the core into the designated destination for the new plugin type, 'ltiservice.'

            jaked Jake Dallimore
            ismael-texidor Ish Texidor-Rodriguez
            Glyn (Mathew) May Glyn (Mathew) May
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours, 32 minutes
                6h 32m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.