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

IMS-Use the timecreated field when users are created

    • MOODLE_500_STABLE
    • MDL-83689-main
    • Hide
      • Run unit tests

         phpunit enrol/imsenterprise/tests/imsenterprise_test.php

      • Manual testing
        • Enable “IMS Enterprise file”
          • admin/settings.php?section=manageenrols
        • Check the createnewusers setting
          • admin/settings.php?section=enrolsettingsimsenterprise
        • Use the imsenterprise-enrol.xml file and put it into the moodledata/1 directory
        • Launch the \enrol_imsenterprise\task\cron_task
        • Run this SQL

       SELECT username, timecreated, timemodified FROM mdl_user WHERE username = 'p0123456'

      *

        • Behavior without the fix
          • timecreated = 0
        • Behavior with the fix
          • timecreated not equal to 0 and equal to timemodified

       

      Show
      Run unit tests phpunit enrol/imsenterprise/tests/imsenterprise_test.php Manual testing Enable “IMS Enterprise file” admin/settings.php?section=manageenrols Check the createnewusers setting admin/settings.php?section=enrolsettingsimsenterprise Use the imsenterprise-enrol.xml file and put it into the moodledata/1 directory Launch the \enrol_imsenterprise\task\cron_task Run this SQL SELECT username, timecreated, timemodified FROM mdl_user WHERE username = 'p0123456' * Behavior without the fix timecreated = 0 Behavior with the fix timecreated not equal to 0 and equal to timemodified  
    • Hide

      Fails against automated checks.

      Checked MDL-83689 using repository: https://github.com/StudiUM/moodle

      Should these errors be fixed?

      Built on: Mon Mar 17 19:55:44 UTC 2025

      Show
      Fails against automated checks. Checked MDL-83689 using repository: https://github.com/StudiUM/moodle main [branch: MDL-83689-main | CI Job ] Error: The MDL-83689 -main branch at https://github.com/StudiUM/moodle is very old (>60 days ago). Please rebase against current main. Should these errors be fixed? Built on: Mon Mar 17 19:55:44 UTC 2025

      When we created users with IMS. The timcreated column is set to 0 because the creation of user in only using SQL and not API to deal with this king of stuff.

      $id = $DB->insert_record('user', $person); 

      It's a realy important information to have.

        1. image-2024-11-11-16-46-57-814.png
          7 kB
          Steve Massicotte
        2. imsenterprise-enrol.xml
          0.3 kB
          Steve Massicotte

            massicos Steve Massicotte
            massicos Steve Massicotte
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

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