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

Refactor how the app checks automatic completion changes

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.2.0
    • None
    • Completion
    • MOODLE_402_STABLE
    • Moodle App 4.3.0

    Description

      Initially, completion was only displayed in course page so what the app did was:

      When something that can change completion happens, the module has automatic completion and it's incomplete, we refresh the course page to get the latest completion (and get new restricted activities if needed).

      Now we also display completion in the module entry page so, besides the above, now we also update the affected activity data (not all course) when something that can change completion happens (this is done in the fetchModule function).

      In order to save data and avoid refreshing the course page when it isn't needed, it would be better to always fetch de module info first and, if we detect that the state has changed, then refresh the course page.

      Attachments

        Issue Links

          Activity

            People

              dpalou Dani Palou
              dpalou Dani Palou
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: