Versions Compared

Key

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

...

Action

Description

Screenshot

  1. Submit

Submit student response:

  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@poll+block@d15a5fab48ad444db05ba5170758fa4c/handler/vote
    Request Method: POST
    Payload: (Form Data) {"choice":"R"}
    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@poll+block@d15a5fab48ad444db05ba5170758fa4c/handler/get_results
    Request Method: POST
    Payload: (Form Data) {}
    Response:

    Code Block
    {
        "question": "<p>What is your favorite color?</p>",
        "tally": [
            {
                "count": 1,
                "answer": "<p>Red</p>",
                "img": null,
                "img_alt": null,
                "key": "R",
                "first": true,
                "choice": true,
                "last": false,
                "percent": 100,
                "leader": true
            },
            {
                "count": 0,
                "answer": "<p>Blue</p>",
                "img": null,
                "img_alt": null,
                "key": "B",
                "first": false,
                "choice": false,
                "last": false,
                "percent": 0,
                "leader": false
            },
            {
                "count": 0,
                "answer": "<p>Green</p>",
                "img": null,
                "img_alt": null,
                "key": "G",
                "first": false,
                "choice": false,
                "last": false,
                "percent": 0,
                "leader": false
            },
            {
                "count": 0,
                "answer": "<p>Other</p>",
                "img": null,
                "img_alt": null,
                "key": "O",
                "first": false,
                "choice": false,
                "last": true,
                "percent": 0,
                "leader": false
            }
        ],
        "total": 1,
        "feedback": "",
        "plural": false,
        "display_name": "Poll",
        "any_img": false,
        "block_id": "d15a5fab48ad444db05ba5170758fa4c"
    }

Screenshot 2024-05-16 at 15.57.33.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@poll+block@d15a5fab48ad444db05ba5170758fa4c/handler/csv_export
    Request Method: POST
    Payload: (Form Data) {}
    Response:

Code Block
{
    "export_pending": false,
    "last_export_result": {
        "error": null,
        "report_filename": "poll-data-export-2024-05-16-125901.csv",
        "start_timestamp": 1715864341.7679486,
        "generation_time_s": 0.017258167266845703
    },
    "download_url": "/media/grades/bc464e2fcc7196b8bee26353b5b3742bd111e17d/poll-data-export-2024-05-16-125901.csv"
}

Screenshot 2024-05-16 at 16.00.44.png

  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. Survey offline mode table.

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.pngImage Added

  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.