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

Change Moodle Mobile Official Service for exclude web service deprecated method names and add the new ones

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7
    • Component/s: Web Services
    • Labels:
    • Testing Instructions:
      Hide
      • Enable the Mobile Web services
      • Remember to upgrade your Moodle installation (the version number is bumped in the commit)
      • Once upgraded, go to Home / Site administration / Plugins / Web services / External services / Moodle Mobile service / Functions and check that these web services are listed:

      'core_enrol_get_users_courses',
      'core_enrol_get_enrolled_users',
      'core_user_get_users_by_id',
      'core_webservice_get_site_info',
      'core_notes_create_notes',
      'core_user_get_course_user_profiles',
      'core_enrol_get_enrolled_users',
      'core_message_send_instant_messages'),

      Show
      Enable the Mobile Web services Remember to upgrade your Moodle installation (the version number is bumped in the commit) Once upgraded, go to Home / Site administration / Plugins / Web services / External services / Moodle Mobile service / Functions and check that these web services are listed: 'core_enrol_get_users_courses', 'core_enrol_get_enrolled_users', 'core_user_get_users_by_id', 'core_webservice_get_site_info', 'core_notes_create_notes', 'core_user_get_course_user_profiles', 'core_enrol_get_enrolled_users', 'core_message_send_instant_messages'),
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      Moodle 2.5 and 2.6 still have the old method names referenced in the core Moodle Mobile service:

      https://github.com/moodle/moodle/blob/MOODLE_25_STABLE/lib/db/services.php#L860

      A new fix should be commited to Moodle master in order to avoid this old name and start using the new ones from Moodle 2.7 and onwards

      This will require backwards compatibility in the Mobile app, this can be easily achieved checking first the existence of the core_webservice_get_site_info and it if fails fallback to the old ones web services

        Attachments

          Activity

            People

            Assignee:
            jleyva Juan Leyva
            Reporter:
            jleyva Juan Leyva
            Integrator:
            Damyon Wiese
            Tester:
            Damyon Wiese
            Participants:
            Component watchers:
            Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              12/May/14