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

  1. Word cloud xBlock offline mode table.

Action

Description

Screenshot

Save

Press save button

Event: submit is sent.
Request URL:
http://local.overhang.io:8000/courses/course-v1:d+d+d/xblock/block-v1:d+d+d+type@word_cloud+block@d81b6465f3b54c0eb3be0e873f311fda/handler/xmodule_handler/submit
Request Method: POST
Payload: (Form Data)

Code Block
student_words%5B%5D=hello&student_words%5B%5D=world&student_words%5B%5D=how+&student_words%5B%5D=are&student_words%5B%5D=you

Response:

Code Block
{
    "status": "success",
    "submitted": true,
    "display_student_percents": true,
    "student_words": {
        "hello": 1,
        "world": 1,
        "how": 1,
        "are": 1,
        "you": 1
    },
    "total_count": 5,
    "top_words": [
        {
            "text": "are",
            "size": 1,
            "percent": 20
        },
        {
            "text": "hello",
            "size": 1,
            "percent": 20
        },
        {
            "text": "how",
            "size": 1,
            "percent": 20
        },
        {
            "text": "world",
            "size": 1,
            "percent": 20
        },
        {
            "text": "you",
            "size": 1,
            "percent": 20
        }
    ]
}

Screenshot 2024-05-16 at 17.33.44.pngImage Added

  1. Recommender xBlock offline mode table.

Action

Description

Screenshot

  1. Show and hide related resources

  1. Show related resources

    Event: event is sent.
    Request URL:

    http://local.overhang.io:8000/event
    Request Method: POST
    Payload: (Form Data)

    Code Block
    event_type=mit.recommender.hideShow&event=%7B%22status%22%3A%22show%22%2C%22element%22%3A%22block-v1%3Ad%2Bd%2Bd%2Btype%40recommender%2Bblock%409a9fb119dccc4387be5ecbf06b985167%22%7D&courserun_key=course-v1%3Ad%2Bd%2Bd&page=http%3A%2F%2Flocal.overhang.io%3A8000%2Fxblock%2Fblock-v1%3Ad%2Bd%2Bd%2Btype%40vertical%2Bblock%400603289c7f49411d8e4ab4a07de014ca%3Fshow_title%3D0%26show_bookmark_button%3D0%26recheck_access%3D1%26view%3Dstudent_view
    

    Response: success

  2. Hide related resources
    Event: event is sent.
    Request URL:

    http://local.overhang.io:8000/event
    Request Method: POST
    Payload: (Form Data)

    Code Block
    event_type=mit.recommender.hideShow&event=%7B%22status%22%3A%22hide%22%2C%22element%22%3A%22block-v1%3Ad%2Bd%2Bd%2Btype%40recommender%2Bblock%409a9fb119dccc4387be5ecbf06b985167%22%7D&courserun_key=course-v1%3Ad%2Bd%2Bd&page=http%3A%2F%2Flocal.overhang.io%3A8000%2Fxblock%2Fblock-v1%3Ad%2Bd%2Bd%2Btype%40vertical%2Bblock%400603289c7f49411d8e4ab4a07de014ca%3Fshow_title%3D0%26show_bookmark_button%3D0%26recheck_access%3D1%26view%3Dstudent_view

    Response: success

Screenshot 2024-05-16 at 17.56.50.pngImage Added

  1. Upload resources

Press upload resources button

  1. Event: event is sent.
    Request URL:

    http://local.overhang.io:8000/event
    Request Method: POST
    Payload: (Form Data)

    Code Block
    event_type=mit.recommender.importResource&event=%7B%22status%22%3A%22Entering+import+resource+mode%22%2C%22element%22%3A%22block-v1%3Ad%2Bd%2Bd%2Btype%40recommender%2Bblock%409a9fb119dccc4387be5ecbf06b985167%22%7D&courserun_key=course-v1%3Ad%2Bd%2Bd&page=http%3A%2F%2Flocal.overhang.io%3A8000%2Fxblock%2Fblock-v1%3Ad%2Bd%2Bd%2Btype%40vertical%2Bblock%400603289c7f49411d8e4ab4a07de014ca%3Fshow_title%3D0%26show_bookmark_button%3D0%26recheck_access%3D1%26view%3Dstudent_view

    Response: success

  2. Event: import_resources is sent.
    Request URL:

    http://local.overhang.io:8000/courses/course-v1:d+d+d/xblock/block-v1:d+d+d+type@recommender+block@9a9fb119dccc4387be5ecbf06b985167/handler/import_resources
    Request Method: POST
    Payload: (Form Data)

    Code Block
    ------WebKitFormBoundarykH70x9xJEoEtPkxb
    Content-Disposition: form-data; name="file"; filename="resource (3).json"
    Content-Type: application/json
    
    
    ------WebKitFormBoundarykH70x9xJEoEtPkxb--

Screenshot 2024-05-16 at 18.07.20.pngImage Added

  1. Download resources

Press button Download resources

  1. Event: export_resources is sent.
    Request URL:

    http://local.overhang.io:8000/courses/course-v1:d+d+d/xblock/block-v1:d+d+d+type@recommender+block@9a9fb119dccc4387be5ecbf06b985167/handler/export_resources
    Request Method: POST
    Payload: (Form Data) {}

    Response:

    Code Block
    {
        "export": {
            "recommendations": {},
            "removed_recommendations": {},
            "endorsed_recommendation_ids": [],
            "endorsed_recommendation_reasons": [],
            "flagged_accum_resources": {}
        }
    }
  2. Event: event is sent.
    Request URL:

    http://local.overhang.io:8000/event
    Request Method: POST
    Payload: (Form Data)

    Code Block
    event_type=mit.recommender.exportResource&event=%7B%22status%22%3A%22Export+resources%22%2C%22information%22%3A%7B%22export%22%3A%7B%22recommendations%22%3A%7B%7D%2C%22removed_recommendations%22%3A%7B%7D%2C%22endorsed_recommendation_ids%22%3A%5B%5D%2C%22endorsed_recommendation_reasons%22%3A%5B%5D%2C%22flagged_accum_resources%22%3A%7B%7D%7D%7D%2C%22element%22%3A%22block-v1%3Ad%2Bd%2Bd%2Btype%40recommender%2Bblock%409a9fb119dccc4387be5ecbf06b985167%22%7D&courserun_key=course-v1%3Ad%2Bd%2Bd&page=http%3A%2F%2Flocal.overhang.io%3A8000%2Fxblock%2Fblock-v1%3Ad%2Bd%2Bd%2Btype%40vertical%2Bblock%400603289c7f49411d8e4ab4a07de014ca%3Fshow_title%3D0%26show_bookmark_button%3D0%26recheck_access%3D1%26view%3Dstudent_view
    

    Response: success

Screenshot 2024-05-16 at 18.08.11.pngImage Added

  1. Add new resource

Press button Add new resource

  1. Event: event is sent.
    Request URL:

    http://local.overhang.io:8000/event
    Request Method: POST
    Payload: (Form Data)

    Code Block
    event_type=mit.recommender.addResource&event=%7B%22status%22%3A%22Entering+add+resource+mode%22%2C%22element%22%3A%22block-v1%3Ad%2Bd%2Bd%2Btype%40recommender%2Bblock%409a9fb119dccc4387be5ecbf06b985167%22%7D&courserun_key=course-v1%3Ad%2Bd%2Bd&page=http%3A%2F%2Flocal.overhang.io%3A8000%2Fxblock%2Fblock-v1%3Ad%2Bd%2Bd%2Btype%40vertical%2Bblock%400603289c7f49411d8e4ab4a07de014ca%3Fshow_title%3D0%26show_bookmark_button%3D0%26recheck_access%3D1%26view%3Dstudent_view
    

    Response: success

  2. Event: event is sent.
    Request URL:

    http://local.overhang.io:8000/event
    Request Method: POST
    Payload: (Form Data)

    Code Block
    event_type=mit.recommender.addResource&event=%7B%22status%22%3A%22Add+new+resource%22%2C%22information%22%3A%7B%22url%22%3A%22https%3A%2F%2Fwww.lipsum.com%2F%22%2C%22title%22%3A%22What+is+Lorem+Ipsum%3F%22%2C%22descriptionText%22%3A%22Lorem+Ipsum+is+simply+dummy+text+of+the+printing+and+typesetting+industry.+Lorem+Ipsum+has+been+the+industry's+standard+dummy+text+ever+since+the+1500s%2C+when+an+unknown+printer+took+a+galley+of+type+and+scrambled+it+to+make+a+type+specimen+book.+It+has+survived+not+only+five+centuries%2C+but+also+the+leap+into+electronic+typesetting%2C+remaining+essentially+unchanged.+It+was+popularised+in+the+1960s+with+the+release+of+Letraset+sheets+containing+Lorem+Ipsum+passages%2C+and+more+recently+with+desktop+publishing+software+like+Aldus+PageMaker+including+versions+of+Lorem+Ipsum.%22%2C%22description%22%3A%22C%3A%5C%5Cfakepath%5C%5Csad_725099.png%22%7D%2C%22element%22%3A%22block-v1%3Ad%2Bd%2Bd%2Btype%40recommender%2Bblock%409a9fb119dccc4387be5ecbf06b985167%22%7D&courserun_key=course-v1%3Ad%2Bd%2Bd&page=http%3A%2F%2Flocal.overhang.io%3A8000%2Fxblock%2Fblock-v1%3Ad%2Bd%2Bd%2Btype%40vertical%2Bblock%400603289c7f49411d8e4ab4a07de014ca%3Fshow_title%3D0%26show_bookmark_button%3D0%26recheck_access%3D1%26view%3Dstudent_view
    

    Response: success

  3. Event: upload_screenshot is sent.
    Request URL:

    http://local.overhang.io:8000/courses/course-v1:d+d+d/xblock/block-v1:d+d+d+type@recommender+block@9a9fb119dccc4387be5ecbf06b985167/handler/upload_screenshot
    Request Method: POST
    Payload: (Form Data)

    Code Block
    event_type=mit.recommender.addResource&event=%7B%22status%22%3A%22Add+new+resource%22%2C%22information%22%3A%7B%22url%22%3A%22https%3A%2F%2Fwww.lipsum.com%2F%22%2C%22title%22%3A%22What+is+Lorem+Ipsum%3F%22%2C%22descriptionText%22%3A%22Lorem+Ipsum+is+simply+dummy+text+of+the+printing+and+typesetting+industry.+Lorem+Ipsum+has+been+the+industry's+standard+dummy+text+ever+since+the+1500s%2C+when+an+unknown+printer+took+a+galley+of+type+and+scrambled+it+to+make+a+type+specimen+book.+It+has+survived+not+only+five+centuries%2C+but+also+the+leap+into+electronic+typesetting%2C+remaining+essentially+unchanged.+It+was+popularised+in+the+1960s+with+the+release+of+Letraset+sheets+containing+Lorem+Ipsum+passages%2C+and+more+recently+with+desktop+publishing+software+like+Aldus+PageMaker+including+versions+of+Lorem+Ipsum.%22%2C%22description%22%3A%22C%3A%5C%5Cfakepath%5C%5Csad_725099.png%22%7D%2C%22element%22%3A%22block-v1%3Ad%2Bd%2Bd%2Btype%40recommender%2Bblock%409a9fb119dccc4387be5ecbf06b985167%22%7D&courserun_key=course-v1%3Ad%2Bd%2Bd&page=http%3A%2F%2Flocal.overhang.io%3A8000%2Fxblock%2Fblock-v1%3Ad%2Bd%2Bd%2Btype%40vertical%2Bblock%400603289c7f49411d8e4ab4a07de014ca%3Fshow_title%3D0%26show_bookmark_button%3D0%26recheck_access%3D1%26view%3Dstudent_view
    

    Response: {"file_name": "fs://6e0ac0d5e8b61274199e225a229209fa.png"}

  4. Event: add_resource is sent.
    Request URL:

    http://local.overhang.io:8000/courses/course-v1:d+d+d/xblock/block-v1:d+d+d+type@recommender+block@9a9fb119dccc4387be5ecbf06b985167/handler/add_resource
    Request Method: POST
    Payload: (Form Data)

    Code Block
    {"url":"https://www.lipsum.com/","title":"What is Lorem Ipsum?","descriptionText":"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.","description":"fs://6e0ac0d5e8b61274199e225a229209fa.png"}

    Response:

    Code Block
    {
        "url": "https://www.lipsum.com/",
        "title": "What is Lorem Ipsum?",
        "description": "/static/djpyfs/block--v1-_d-.d-.d-.type_64_recommender-.block_64_9a9fb119dccc4387be5ecbf06b985167/fs/NONE.NONE/6e0ac0d5e8b61274199e225a229209fa.png",
        "descriptionText": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
        "id": "https://www.lipsum.com/",
        "upvotes": 0,
        "downvotes": 0
    }

Screenshot 2024-05-16 at 18.21.57.pngImage Added

  1. Requirements for the offline ORA xblock running