Issue Details (XML | Word | Printable)

Key: MDL-11667
Type: Sub-task Sub-task
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Yu Zhang
Reporter: Philip Butcher
Votes: 0
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle
MDL-11573

Export of grades in XML file is not as percentage

Created: 09/Oct/07 04:16 AM   Updated: 10/Oct/07 02:43 PM
Return to search
Component/s: Gradebook
Affects Version/s: 1.9
Fix Version/s: 1.9

Participants: Petr Skoda, Philip Butcher and Yu Zhang
Security Level: None
Resolved date: 10/Oct/07
Affected Branches: MOODLE_19_STABLE
Fixed Branches: MOODLE_19_STABLE


 Description  « Hide
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.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Petr Skoda added a comment - 09/Oct/07 07:13 AM
I think we can add gradestyle and decimals selectors into grade export form.
Would it solve the problem?

Petr Skoda added a comment - 09/Oct/07 07:16 AM
Eh, overlooked the "no %", this would be harder to do - we do not have such grading style yet.

Yu Zhang added a comment - 09/Oct/07 02:26 PM
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.

Philip Butcher added a comment - 09/Oct/07 05:51 PM
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.


Yu Zhang added a comment - 10/Oct/07 02:43 PM
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.