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

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

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.1.6, 3.2.3
    • 3.2, 3.3
    • JavaScript
    • MOODLE_32_STABLE, MOODLE_33_STABLE
    • MOODLE_31_STABLE, MOODLE_32_STABLE
    • 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.)

      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.

       

            timhunt Tim Hunt
            timhunt Tim Hunt
            Sam Marshall Sam Marshall
            David Monllaó David Monllaó
            Mark Nelson Mark Nelson
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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