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

Gradebook export fields

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.4
    • 1.9.7, 2.3, 2.4
    • Gradebook
    • LAMP
    • Any
    • MOODLE_19_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • MOODLE_24_STABLE
    • MDL-21572-master
    • Hide

      Test pre-requisites

      • 4 user custom fields as follow: firstname, foo, bar, foobar
      • User A is a teacher with capability course:viewhiddenuserfields
      • User B is a teacher without capability course:viewhiddenuserfields
      • Some students with custom fields filled (set firstname to something different than the user firstname)
      • Set setting grade_export_userprofilefields to its default value, but remove 'email' and add 'password,idontexist'
      • Set setting grade_export_customprofilefields to 'foo,bar,firstname'
      • Set setting $CFG->hiddenuserfields to 'bar,lastname' in your config file
      • Have a few grades on a few activities for the students

      Test 1

      1. As user A go to the gradebook
      2. Export the grades to plain text file
      3. In the preview, make sure that:

      • password, idontexist, email DO NOT appear
      • foo, bar, lastname appear
      • firstname appears TWICE with different values

      4. Export the file, and make sure

      • password, idontexist, email DO NOT appear
      • foo, bar, lastname appear
      • firstname appears TWICE with different values

      5. Repeat steps exporting to XLS and ODS.

      Test 2

      1. As user B go to the gradebook
      2. Export the grades to plain text file
      3. In the preview, make sure that:

      • password, idontexist, email, lastname, bar DO NOT appear
      • foo appears
      • firstname appears TWICE with different values

      4. Export the file, and make sure

      • password, idontexist, email, lastname, bar DO NOT appear
      • foo appears
      • firstname appears TWICE with different values

      5. Repeat steps exporting to XLS and ODS.

      Show
      Test pre-requisites 4 user custom fields as follow: firstname, foo, bar, foobar User A is a teacher with capability course:viewhiddenuserfields User B is a teacher without capability course:viewhiddenuserfields Some students with custom fields filled (set firstname to something different than the user firstname) Set setting grade_export_userprofilefields to its default value, but remove 'email' and add 'password,idontexist' Set setting grade_export_customprofilefields to 'foo,bar,firstname' Set setting $CFG->hiddenuserfields to 'bar,lastname' in your config file Have a few grades on a few activities for the students Test 1 1. As user A go to the gradebook 2. Export the grades to plain text file 3. In the preview, make sure that: password, idontexist, email DO NOT appear foo, bar, lastname appear firstname appears TWICE with different values 4. Export the file, and make sure password, idontexist, email DO NOT appear foo, bar, lastname appear firstname appears TWICE with different values 5. Repeat steps exporting to XLS and ODS. Test 2 1. As user B go to the gradebook 2. Export the grades to plain text file 3. In the preview, make sure that: password, idontexist, email, lastname, bar DO NOT appear foo appears firstname appears TWICE with different values 4. Export the file, and make sure password, idontexist, email, lastname, bar DO NOT appear foo appears firstname appears TWICE with different values 5. Repeat steps exporting to XLS and ODS.

      At present, GB allows teacher or admin to export data with grade items and following user related fields: firstname, surname, ID, institution, department and email. It would be useful to be able to export data from other profile fields including city/town and country. The default export contains optional profile fields, yet omits mandatory fields. thank you.

            fred Frédéric Massart
            chadsta Chad Outten
            Andrew Davis Andrew Davis
            Sam Hemelryk Sam Hemelryk
            Rossiani Wijaya Rossiani Wijaya
            Votes:
            9 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

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