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

Convert choice module charts to the new library

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: None
    • Component/s: Choice
    • Labels:
    • Testing Instructions:
      Hide
      1. In a given course, create a choice.
      2. In the choice creation set:
        • Display mode for the options: Display vertically
        • Publish results: Always show results to students
        • Privacy of results: Publish anonymous results, do not show student names
      3. Save.
      4. Answer the choice with multiple users to get some data.
      5. As admin, visit the choice.
      6. Please take note of the chart numbers.
      7. Create a separated branch.
      8. Revert the commit ea2c94b.
      9. Visit the response report page and make sure the chart data matches.
      10. Go to the choice settings page.
      11. Change Display mode for the options to Display horizontally.
      12. Visit the report again, make sure the bars are now being displayed horizontally and the data still matches.
      DEPRECATION
      1. Rename this call to display_publish_anonymous_horizontal.
      2. View the report and make sure you got an deprecation debug message, but the charts were generated using the new Chart API.
      3. Rename the same call to display_publish_anonymous_vertical and make sure you get a deprecation debug message as well.
      Show
      In a given course, create a choice. In the choice creation set: Display mode for the options : Display vertically Publish results : Always show results to students Privacy of results : Publish anonymous results, do not show student names Save. Answer the choice with multiple users to get some data. As admin, visit the choice. Please take note of the chart numbers. Create a separated branch. Revert the commit ea2c94b. Visit the response report page and make sure the chart data matches. Go to the choice settings page. Change Display mode for the options to Display horizontally. Visit the report again, make sure the bars are now being displayed horizontally and the data still matches. DEPRECATION Rename this call to display_publish_anonymous_horizontal . View the report and make sure you got an deprecation debug message, but the charts were generated using the new Chart API. Rename the same call to display_publish_anonymous_vertical and make sure you get a deprecation debug message as well.
    • Affected Branches:
      MOODLE_32_STABLE
    • Epic Link:
    • Pull from Repository:
    • Pull Master Branch:
      MDL-55208-master

      Description

      The choice module has charts that is generated using a table and it should be converted to use the new charts API.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: