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

Make it easier to monitor what AJAX web services requests are doing

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2, 3.3
    • Fix Version/s: 3.1.6, 3.2.3
    • Component/s: JavaScript
    • Labels:
    • Testing Instructions:
      Hide

      The main thing to test is that this does not cause any regressions, and hopefully Behat will do that.

      The other thing to do, is:

      1. Open your web browser.
      2. Open the developer tools.
      3. Switch to the Network tab.
      4. (Optionally, get it to only show XHR requests.)
      5. Load any page in Moodle.
      6. Look at the XHR requests, see if you can tell what each one is doing. (Compare to last week's Moodle version to see the difference.)
      Show
      The main thing to test is that this does not cause any regressions, and hopefully Behat will do that. The other thing to do, is: Open your web browser. Open the developer tools. Switch to the Network tab. (Optionally, get it to only show XHR requests.) Load any page in Moodle. Look at the XHR requests, see if you can tell what each one is doing. (Compare to last week's Moodle version to see the difference.)
    • Affected Branches:
      MOODLE_32_STABLE, MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE
    • Pull Master Branch:

      Description

      At the moment, all AJAX requests appear in the web-server logs as

      /lib/ajax/service.php?sesskey=28EnsgLleS

      (or the same with service-nologin.php).

      This is not very helpful, when you are trying to work out what is really going on.

      A simple idea form the 2017 London MoodleMoot hackfest was to just add some extra information in the URL (which is redundant, it would not change how the system worked) to indicate which web service function(s) are being called.

       

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                3 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  8/May/17