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

Remove Atto

XMLWordPrintable

    • MOODLE_500_STABLE
    • MOODLE_500_STABLE
    • MDL-83282-main
    • Hide

      Setup

      1. Create a new Moodle site
      2. Ensure that the git repository is checked out to the previous week's release (prior to Atto being removed)
      3. Install the site
      4. Configure some users to have Atto as their preferred editor (User preferences -> Editor preferences -> Choose Atto)
      5. Set the default editor for the site to Atto

      Test

      1. Make a backup copy of lib/editor/atto
      2. Update the codebase to the testing release but DO NOT run the upgrade script
      3. Copy your Atto backup to lib/editor/atto
      4. Perform the Moodle upgrade
        1. Confirm that the Editor was not uninstalled
      5. Pull open the database connection and check:
        1. Confirm that some users still have the atto preference

          SELECT * FROM mdl_user_preferences WHERE name = 'htmleditor';
          

        2. Confirm that the site preference still mentions Atto

          SELECT * FROM mdl_config WHERE name = 'texteditors';
          

      6. Edit the version.php and bump the version number to tomorrow's date.
        For example, if today is February 5th 2025, you would put:
        2025020600.00
      7. Copy this number
      8. Edit the upgrade.php
      9. Find the upgrade step for the removal of Atto.
      10. Change all version references for and in this if block to use the new version number
      11. Remove the lib/editor/atto directory
      12. Run the upgrade script
      13. Pull open the database connection and check:
        1. Confirm that no users have the atto preference

          SELECT * FROM mdl_user_preferences WHERE name = 'htmleditor';
          

        2. Confirm that the site preference no longer mentions Atto

          SELECT * FROM mdl_config WHERE name = 'texteditors';
          

        3. Confirm that no Atto plugins remain

          select * from mdl_config_plugins where plugin like '%atto%';
          

      Show
      Setup Create a new Moodle site Ensure that the git repository is checked out to the previous week's release (prior to Atto being removed) Install the site Configure some users to have Atto as their preferred editor (User preferences -> Editor preferences -> Choose Atto) Set the default editor for the site to Atto Test Make a backup copy of lib/editor/atto Update the codebase to the testing release but DO NOT run the upgrade script Copy your Atto backup to lib/editor/atto Perform the Moodle upgrade Confirm that the Editor was not uninstalled Pull open the database connection and check: Confirm that some users still have the atto preference SELECT * FROM mdl_user_preferences WHERE name = 'htmleditor'; Confirm that the site preference still mentions Atto SELECT * FROM mdl_config WHERE name = 'texteditors'; Edit the version.php and bump the version number to tomorrow's date. For example, if today is February 5th 2025, you would put: 2025020600.00 Copy this number Edit the upgrade.php Find the upgrade step for the removal of Atto. Change all version references for and in this if block to use the new version number Remove the lib/editor/atto directory Run the upgrade script Pull open the database connection and check: Confirm that no users have the atto preference SELECT * FROM mdl_user_preferences WHERE name = 'htmleditor'; Confirm that the site preference no longer mentions Atto SELECT * FROM mdl_config WHERE name = 'texteditors'; Confirm that no Atto plugins remain select * from mdl_config_plugins where plugin like '%atto%';
    • Hide

      Code verified against automated checks.

      Checked MDL-83282 using repository: https://github.com/andrewnicols/moodle.git

      More information about this report

      Built on: Tue Jan 21 04:56:22 AM UTC 2025

      Show
      Code verified against automated checks. Checked MDL-83282 using repository: https://github.com/andrewnicols/moodle.git main (0 errors / 0 warnings) [branch: MDL-83282-main | CI Job ] More information about this report Built on: Tue Jan 21 04:56:22 AM UTC 2025
    • Show
      Launching automatic jobs for branch MDL-83282 -main https://ci.moodle.org/view/Testing/job/DEV.02%20-%20Developer-requested%20PHPUnit/17978/ PHPUnit (sqlsrv / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/61403/ Behat (NonJS - boost and classic / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/61404/ Behat (Firefox - boost / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/61405/ Behat (Firefox - classic / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/61406/ App tests (stable app version) / complete) Built on: Mon Jan 20 08:07:35 AM UTC 2025

      Final removal of Atto

            dobedobedoh Andrew Lyons
            dobedobedoh Andrew Lyons
            Raquel Ortega Raquel Ortega
            Huong Nguyen Huong Nguyen
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 days, 1 hour, 17 minutes
                3d 1h 17m

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