Moodle
  1. Moodle
  2. MDL-31609

Web Service Test Client only contains the deprecated moodle_* functions. Need to add the new core_user_* functions.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.0.2, 2.1, 2.2
    • Fix Version/s: STABLE backlog
    • Component/s: Web Services
    • Labels:
    • Environment:
      Any
    • Database:
      Any
    • Testing Instructions:
      Hide

      Login to demo.moodle.net and open the Web service test client under Site administration / Development (/admin/webservice/testclient.php).
      Click on the Function list. It should display all the new core_user_* functions instead of (or including?) the old deprecated moodle_* functions.

      Show
      Login to demo.moodle.net and open the Web service test client under Site administration / Development (/admin/webservice/testclient.php). Click on the Function list. It should display all the new core_user_* functions instead of (or including?) the old deprecated moodle_* functions.
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE

      Description

      The Function list on the Web service test client (Site administration / Development) only shows the old moodle_* functions which have, according to the http://docs.moodle.org/dev/Web_services_Roadmap, been deprecated. The core_user_* functions should be added to the test client so that web services using the new core_user_* methods can be tested when an admin wants to test a web service that uses those functions.

      Example:

      Some of the old functions currently available in the test client are:
      moodle_user_create_users()
      moodle_user_delete_users()
      moodle_user_get_users_by_id()
      moodle_user_update_users()

      Some of the new functions that are NOT available in the test client are:
      core_user_create_users()
      core_user_get_users_by_id()
      core_user_delete_users()
      core_user_update_users()

      See comments in MDL-23397.

        Gliffy Diagrams

          Issue Links

            Activity

            Luis de Vasconcelos created issue -
            Helen Foster made changes -
            Field Original Value New Value
            Link This issue has a non-specific relationship to MDL-23397 [ MDL-23397 ]
            Hide
            Luis de Vasconcelos added a comment -

            Related Using Moodle forum discussion: http://moodle.org/mod/forum/discuss.php?d=195492

            Show
            Luis de Vasconcelos added a comment - Related Using Moodle forum discussion: http://moodle.org/mod/forum/discuss.php?d=195492
            Luis de Vasconcelos made changes -
            Comment [ Related Using Moodle discussion: http://moodle.org/mod/forum/discuss.php?d=195492 ]
            Hide
            Michael de Raadt added a comment -

            Thanks for spotting that.

            Show
            Michael de Raadt added a comment - Thanks for spotting that.
            Michael de Raadt made changes -
            Fix Version/s STABLE backlog [ 10463 ]
            Priority Minor [ 4 ] Critical [ 2 ]
            Labels triaged
            Hide
            Jérôme Mouneyrac added a comment -

            I think the admin client should be generated automatically for any functions and it should use the Moodle protocol clients. In my opinion it's a minor issue, I lower the priority if everybody is ok.

            Show
            Jérôme Mouneyrac added a comment - I think the admin client should be generated automatically for any functions and it should use the Moodle protocol clients. In my opinion it's a minor issue, I lower the priority if everybody is ok.
            Jérôme Mouneyrac made changes -
            Priority Critical [ 2 ] Minor [ 4 ]
            Hide
            Jérôme Mouneyrac added a comment -

            I forgot, thanks for reporting this issue Luis

            Show
            Jérôme Mouneyrac added a comment - I forgot, thanks for reporting this issue Luis
            Hide
            Jérôme Mouneyrac added a comment -

            I opened a duplicated as MDL-33059 which ask to fix a bit more, so I'm closing this issue even thought it was written before. Thanks Luis.

            Show
            Jérôme Mouneyrac added a comment - I opened a duplicated as MDL-33059 which ask to fix a bit more, so I'm closing this issue even thought it was written before. Thanks Luis.
            Jérôme Mouneyrac made changes -
            Status Open [ 1 ] Closed [ 6 ]
            Resolution Duplicate [ 3 ]
            Michael de Raadt made changes -
            Link This issue will be resolved by MDL-33059 [ MDL-33059 ]
            Jérôme Mouneyrac made changes -
            Link This issue has been marked as being related by MDL-33059 [ MDL-33059 ]

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: