Assignments buckets broken? Finding unsubmtted?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'll start with a very specific question with an example:
How exactly are the buckets computed? What are the actual values being used to choose something for the unsubmitted bucket? I can't find info on this...look at my reference section below for all I've found.
As an example to reinforce my question, Why is the following assignment not showing up when I request unsubmitted bucket when it appears to be a valid unsubmitted assignment. (Coincidentally, it does show up on Dashboard List view on the due date, but doesn't show anywhere on the calendar...related?):
{
"id": 691750,
"description": "",
"due_at": "2020-09-28T04:59:59Z",
"unlock_at": "2020-09-16T05:00:00Z",
"lock_at": "2020-09-28T04:59:59Z",
"points_possible": 100,
"grading_type": "points",
"assignment_group_id": 72079,
"grading_standard_id": null,
"created_at": "2020-09-16T18:16:39Z",
"updated_at": "2020-09-16T20:56:30Z",
"peer_reviews": false,
"automatic_peer_reviews": false,
"position": 20,
"grade_group_students_individually": false,
"anonymous_peer_reviews": false,
"group_category_id": null,
"post_to_sis": true,
"moderated_grading": false,
"omit_from_final_grade": false,
"intra_group_peer_reviews": false,
"anonymous_instructor_annotations": false,
"anonymous_grading": false,
"graders_anonymous_to_graders": false,
"grader_count": 0,
"grader_comments_visible_to_graders": true,
"final_grader_id": null,
"grader_names_visible_to_final_grader": true,
"allowed_attempts": -1,
"secure_params": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9..tto7HMlkxBn0LE0NjBeGlEopongCj9zPHlv0DL2BgCk",
"course_id": 41166,
"name": "ckla 23.2 Adjectives 9/21",
"submission_types": [
"external_tool"
],
"has_submitted_submissions": false,
"due_date_required": true,
"max_name_length": 30,
"in_closed_grading_period": false,
"is_quiz_assignment": false,
"can_duplicate": false,
"original_course_id": null,
"original_assignment_id": null,
"original_assignment_name": null,
"original_quiz_id": null,
"workflow_state": "published",
"external_tool_tag_attributes": {
"url": "https://google-drive-lti-iad-prod.instructure.com/lti/content-view/cloud-assignment/XXXXXXXXX",
"new_tab": false,
"resource_link_id": "e4ccdc12f13a78d8ebb1b27f45237e7e5f695445",
"external_data": "",
"content_type": "ContextExternalTool",
"content_id": 58
},
"muted": true,
"html_url": "https://XXXXXXXXX.instructure.com/courses/41166/assignments/691750",
"url": "https://XXXXXXXXX.instructure.com/api/v1/courses/41166/external_tools/sessionless_launch?assignment_id=691750&launch_type=assessment",
"published": true,
"only_visible_to_overrides": false,
"locked_for_user": false,
"submissions_download_url": "https://XXXXXXXXX.instructure.com/courses/41166/assignments/691750/submissions?zip=1",
"post_manually": false,
"anonymize_students": false,
"require_lockdown_browser": false
}
MORE INFO:
I'm trying to write a script for myself and other parents at my school because it is simply too difficult for our elementary grade children to find all their assignment, especially unsubmitted ones. Idiosyncrasies like the above make me question that the APIs are returning the true number of assignments the kids need to do as I see things in their dashboards that contradict what the API returns like the above.
When I query for:
/api/v1/courses/41166/assignments?bucket=unsubmitted
it returns an empty list:
[]
even though there is a published assignment showing in their dashboard a week away they have not submitted.
REFERENCE
According to the docs, the assignments API call(s):
GET /api/v1/courses/:course_id/assignments
is supposed to support the following buckets:
If included, only return certain assignments depending on due date and submission status. Allowed values:past, overdue, undated, ungraded, unsubmitted, upcoming, future |
However there is no description of how these are computed. I found this page which describes some of them:
- Overdue Assignments: assignments and discussions that are past the due date, are still available, have not been submitted, and have not been graded.
- Upcoming Assignments: assignments, discussions, and quizzes that have an upcoming due date.
- Undated Assignments: assignments, discussions, and quizzes that do not have a due date.
- Past Assignments: assignments and discussions that are past the due date and either are not available, have been submitted, or have received a grade; quizzes that are past the due date.
But many are not discussed, including unsubmitted.
So, How exactly are these buckets computed?