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

Export the sites list in JSON format in the sdcard

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.3
    • 2.3
    • Accounts
    • 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); });
    • MOODLE_23_STABLE
    • MOODLE_23_STABLE

      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.

            dpalou Dani Palou
            jleyva Juan Leyva
            Frédéric Massart Frédéric Massart
            Juan Leyva Juan Leyva
            Juan Leyva Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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