Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Action

Description

Screenshot

  1. Submit

Submit student answer:

  1. Vote:
    Event: vote is sent.
    Request URL:
    http://local.edly.io:8000/courses/course-v1:f+f+f/xblock/block-v1:f+f+f+type@survey+block@f2768608de5a45b0952fa73efa1e1e5e/handler/vote
    Request Method: POST
    Payload: (Form Data) {"enjoy":"Y","recommend":"N","learn":"M"}
    Response:

    Code Block
    {
        "success": true,
        "errors": [],
        "can_vote": false,
        "submissions_count": 1,
        "max_submissions": 1
    }
  2. Get results:
    Event: get_results is sent.
    Request URL:
    http://local.edly.io:8000/courses/course-v1:f+f+f/xblock/block-v1:f+f+f+type@survey+block@f2768608de5a45b0952fa73efa1e1e5e/handler/get_results
    Request Method: POST
    Payload: (Form Data) {}
    Response:

    Code Block
    {
        "answers": [
            {
                "key": "Y",
                "label": "Yes"
            },
            {
                "key": "N",
                "label": "No"
            },
            {
                "key": "M",
                "label": "Maybe"
            }
        ],
        "tally": [
            {
                "label": "<p>Are you enjoying the course?</p>",
                "img": null,
                "img_alt": null,
                "answers": [
                    {
                        "count": 1,
                        "choice": true,
                        "key": "Y",
                        "top": true,
                        "percent": 100
                    },
                    {
                        "count": 0,
                        "choice": false,
                        "key": "N",
                        "top": false,
                        "percent": 0
                    },
                    {
                        "count": 0,
                        "choice": false,
                        "key": "M",
                        "top": false,
                        "percent": 0
                    }
                ],
                "key": "enjoy",
                "choice": false
            },
            {
                "label": "<p>Would you recommend this course to your friends?</p>",
                "img": null,
                "img_alt": null,
                "answers": [
                    {
                        "count": 0,
                        "choice": false,
                        "key": "Y",
                        "top": false,
                        "percent": 0
                    },
                    {
                        "count": 1,
                        "choice": true,
                        "key": "N",
                        "top": true,
                        "percent": 100
                    },
                    {
                        "count": 0,
                        "choice": false,
                        "key": "M",
                        "top": false,
                        "percent": 0
                    }
                ],
                "key": "recommend",
                "choice": false
            },
            {
                "label": "<p>Do you think you will learn a lot?</p>",
                "img": null,
                "img_alt": null,
                "answers": [
                    {
                        "count": 0,
                        "choice": false,
                        "key": "Y",
                        "top": false,
                        "percent": 0
                    },
                    {
                        "count": 0,
                        "choice": false,
                        "key": "N",
                        "top": false,
                        "percent": 0
                    },
                    {
                        "count": 1,
                        "choice": true,
                        "key": "M",
                        "top": true,
                        "percent": 100
                    }
                ],
                "key": "learn",
                "choice": false
            }
        ],
        "total": 1,
        "feedback": "",
        "plural": false,
        "block_name": "Poll",
        "block_id": "f2768608de5a45b0952fa73efa1e1e5e"
    }

Screenshot 2024-05-16 at 16.19.50.png

  1. View results

  1. View results.
    The same as Get results event in the answer submission.

  1. Export results to CSV

  1. Export results to CSV
    Event: csv_export is sent.
    Request URL:
    http://local.edly.io:8000/courses/course-v1:f+f+f/xblock/block-v1:f+f+f+type@survey+block@f2768608de5a45b0952fa73efa1e1e5e/handler/csv_export
    Request Method: POST
    Payload: (Form Data) {}
    Response:

    Code Block
    {
        "export_pending": false,
        "last_export_result": {
            "error": null,
            "report_filename": "survey-data-export-2024-05-16-132114.csv",
            "start_timestamp": 1715865674.623029,
            "generation_time_s": 0.01493692398071289
        },
        "download_url": "/media/grades/bc464e2fcc7196b8bee26353b5b3742bd111e17d/survey-data-export-2024-05-16-132114.csv"
    }

  1. Download CSV

  1. Download CSV
    Doesn’t work for now (Quince release, tutor local installation)
    The link to download the CSV file is not generated with error: local.edly.io refused to connect.

  1. Done xBlock offline mode table.

Action

Description

Screenshot

Complete

  1. Mark as complete
    Event: toggle_button is sent.
    Request URL:
    http://local.overhang.io:8000/courses/course-v1:d+d+d/xblock/block-v1:d+d+d+type@done+block@b945afa1f8b547a1ad2090ee370b979b/handler/toggle_button
    Request Method: POST
    Payload: (Form Data) {"done":true}
    Response: {"state": true}

  2. Unmark
    Event: toggle_button is sent.
    Request URL:
    http://local.overhang.io:8000/courses/course-v1:d+d+d/xblock/block-v1:d+d+d+type@done+block@b945afa1f8b547a1ad2090ee370b979b/handler/toggle_button
    Request Method: POST
    Payload: (Form Data) {"done":false}
    Response: {"state": false}

Screenshot 2024-05-16 at 17.11.30.pngImage Added

Screenshot 2024-05-16 at 17.14.18.pngImage Added