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

Export the sites list in JSON format in the sdcard

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3
    • Component/s: Accounts
    • Labels:
    • Testing Instructions:
      Hide
      1. Check that the sites stored in a file are updated when a site is added, deleted or updated. To do so you can either:
        • Open the file in Android with a FileSystem app. Path is: sdcard/Android/data/com.moodle.moodlemobile/migration/sites.json.
        • Open the console and execute the following:

          var $mmSitesManager = angular.element(document.querySelector('[ng-app]')).injector().get('$mmSitesManager');
          $mmSitesManager.getSitesStoredInFile().then(function(sites) {
              console.log(sites);
          });
          

      Show
      Check that the sites stored in a file are updated when a site is added, deleted or updated. To do so you can either: Open the file in Android with a FileSystem app. Path is: sdcard/Android/data/com.moodle.moodlemobile/migration/sites.json. Open the console and execute the following: var $mmSitesManager = angular.element(document.querySelector('[ng-app]')).injector().get('$mmSitesManager'); $mmSitesManager.getSitesStoredInFile().then(function(sites) { console.log(sites); });
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE

      Description

      Since we will be migrating to SQLLite and Crosswalk we need to start exporting the sites list in a place where it would be readable in any future version (the sdcard).

      This is because we can have the scenario of people upgrading skipping some versions, in that case, the Crosswalk version won't be able to access the previous ydbn database so we should, at least, be able to recover the sites list from the sdcard.

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            jleyva Juan Leyva
            Peer reviewer:
            Frédéric Massart
            Integrator:
            Juan Leyva
            Tester:
            Juan Leyva
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              8/Oct/15