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

Log WS like activity view, grading does not update last course access time

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.11.3
    • None
    • Web Services
    • MOODLE_311_STABLE

    Description

      When log call is not related to any course, SITEID course access time should be updated. This issue was originally reported on MOBILE-3586

      Some affected WS are:

      • gradereport_overview_view_grade_report
      • core_blog_view_entries
      • core_notes_view_notes
      • core_user_view_user_list
      • core_user_view_user_profile
      • core_competency_user_competency_plan_viewed
      • core_competency_user_competency_viewed_in_plan
      • core_competency_user_competency_viewed_in_course
      • core_competency_competency_viewed
      • Activity module view log, like mod_workshop_view_workshop
      • Activity list module view log: When listing activities of the same type within a course (ie: mod/assign/index.php) there is no WS to log it (probably a new issue should be open).

      Other activity logs:

      • mod_assign_view_submission_status
      • mod_assign_view_grading_table
      • mod_forum_view_forum_discussion
      • mod_glossary_view_entry
      • mod_h5pactivity_log_report_viewed
      • mod_quiz_view_attempt
      • mod_quiz_view_attempt_review
      • mod_quiz_view_attempt_summary
      • mod_scorm_launch_sco
      • mod_wiki_view_page
      • mod_workshop_view_submission
        ... probably incomplete list.

      Possible solutions:

      1. Add a general parameter to services that determines it's a logging ws and updates the last access time.
      2. More precise but repetitive: Add call to user_accesstime_log like in core_course_view_course.
      3. A more general solution, but more difficult: Add some logic to require_login that determines the WS is not prefetch or sync call and calls user_accesstime_log.

      Attachments

        Issue Links

          Activity

            People

              jleyva Juan Leyva
              pferre22 Pau Ferrer
              Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: