Moodle

Export of grades in XML file is not as percentage

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.9
  • Fix Version/s: 1.9
  • Component/s: Gradebook
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

We require the XML export file to include the scores as percentages (and not reals). We do not want the '%' symbol included.

We also require that values be rounded before exporting with 0.5 and above being rounded up.

So 58.2 should be exported as 58
and 60.5 % should be rounded up to 61, etc.

Currently the preview shows scores as reals and the exported file also contains reals.

Activity

Hide
Petr Škoda (skodak) added a comment -

I think we can add gradestyle and decimals selectors into grade export form.
Would it solve the problem?

Show
Petr Škoda (skodak) added a comment - I think we can add gradestyle and decimals selectors into grade export form. Would it solve the problem?
Hide
Petr Škoda (skodak) added a comment -

Eh, overlooked the "no %", this would be harder to do - we do not have such grading style yet.

Show
Petr Škoda (skodak) added a comment - Eh, overlooked the "no %", this would be harder to do - we do not have such grading style yet.
Hide
Yu Zhang added a comment -

Do we need to make new settings for export or can we just use existing ones? I think having to select decimal points on every export could be slightly annoying.

Show
Yu Zhang added a comment - Do we need to make new settings for export or can we just use existing ones? I think having to select decimal points on every export could be slightly annoying.
Hide
Philip Butcher added a comment -

Just a few things about how we will use this that might help define what is done.

1 - I've just talked to our other computing service who look after the main OU Student Records system and will receive these exported files. They can adjust their code to cope with the trailing ' %' in scores and so it will be OK to use the normal percentage format for export.

2 - Irrespective of Grader report settings we will always want to export a percentage. So even if our Course Staff have set the Grader report to letter, for example if the course is only pass or fail, we would still want the XML export to export percentages. So the export should not be tied to other Grader report settings.

3 - And to stress that we only want to export percentages as integers; rounding up should be done before export. In part this is to ensure that Moodle controls exactly what appears in our external Student Records system.

Show
Philip Butcher added a comment - Just a few things about how we will use this that might help define what is done. 1 - I've just talked to our other computing service who look after the main OU Student Records system and will receive these exported files. They can adjust their code to cope with the trailing ' %' in scores and so it will be OK to use the normal percentage format for export. 2 - Irrespective of Grader report settings we will always want to export a percentage. So even if our Course Staff have set the Grader report to letter, for example if the course is only pass or fail, we would still want the XML export to export percentages. So the export should not be tied to other Grader report settings. 3 - And to stress that we only want to export percentages as integers; rounding up should be done before export. In part this is to ensure that Moodle controls exactly what appears in our external Student Records system.
Hide
Yu Zhang added a comment -

Added 2 additonal settings under gradebook for default export display format and decimal points. During export there are 2 new options (defaults to site setting) for users to choose the decimals and display format.

Show
Yu Zhang added a comment - Added 2 additonal settings under gradebook for default export display format and decimal points. During export there are 2 new options (defaults to site setting) for users to choose the decimals and display format.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: