Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-3967

Add setting to show legacy completion

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.9.5
    • 4.0.0
    • Completion
    • Hide

      This issue only needs to be tested in 1 device.

      1. Edit the file src/core/features/course/components/course-format/course-format.html and add [showLegacyCompletion]="true" in core-course-module.
      2. Run the app.
      3. Login in master and open the MM Dev Testing course. Check that the completion uses the old checkboxes.
      4. Remove the previous change and now edit the moodle.config.json file to add "uselegacycompletion": true. You can use the portal to override the config if you prefer.
      5. Run the app and open the MM Dev Testing course again. Check that the completion uses the old checkboxes.
      6. Now use "uselegacycompletion": false, or just remove the value.
      7. Run the app and open the MM Dev Testing course again. Check that the completion uses the new format.
         
      Show
      This issue only needs to be tested in 1 device. Edit the file src/core/features/course/components/course-format/course-format.html and add [showLegacyCompletion] ="true" in core-course-module . Run the app. Login in master and open the MM Dev Testing course. Check that the completion uses the old checkboxes. Remove the previous change and now edit the moodle.config.json file to add "uselegacycompletion": true. You can use the portal to override the config if you prefer. Run the app and open the MM Dev Testing course again. Check that the completion uses the old checkboxes. Now use "uselegacycompletion": false, or just remove the value. Run the app and open the MM Dev Testing course again. Check that the completion uses the new format.  
    • MOODLE_39_STABLE
    • MOODLE_400_STABLE
    • Moodle App 4.0

    Description

      I want to re-use legacy completion so that can easier modify it in a custom theme that still uses COMPLETION_COMPLETE_PASS.
      Therefore I suggest creating a new setting called show legacy completion so that the user can choose to show the old version of completion box.

      Related to the MDL issue about using the old way to display completion https://tracker.moodle.org/browse/MDL-71856

      Slightly related moodle tracker ticket: https://tracker.moodle.org/browse/MDL-73172

       

      To explain this in more detail, the issue we have is that in order to make our course format work as we want, we would like completion to display the way it used to (tickboxes). We’ve done this within our theme and course format on the website, but it is difficult to do this in the app. The app has an option to show ‘legacy’ completion, but this is fixed based on the Moodle version, i.e. it uses the newer completion display if you are using Moodle 3.11. What we would like is some way to set the app to use the legacy completion option even on Moodle 3.11, for example via a site setting or something configured in the course format plugin. Whatever is done it should be fairly easy to code in the app since the option is already present but we’re honestly not sure what would be the best approach for this...

      Attachments

        1. screenshot-1.png
          screenshot-1.png
          154 kB
        2. screenshot-2.png
          screenshot-2.png
          150 kB
        3. screenshot-3.png
          screenshot-3.png
          25 kB

        Activity

          People

            dpalou Dani Palou
            dinhhien0307 DinhPhamVinhHien
            Pau Ferrer Pau Ferrer
            Juan Leyva Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              22/Apr/22