Valid state from API? Submission not late or missing even though due date has passed

Jump to solution
spencer_rib
Community Member

Hello,

We are getting back submissions from the API that have the "missing" and "late" field as false even though the due date has gone by without a submission. Is this somehow a valid state?

I pulled the data below directly from the API 30 minutes ago and I'm confident I didn't mismatch the submission and assignment.

Redacted for privacy:

# Submission
{
 "grade"=>nil,
 "score"=>nil,
 "submitted_at"=>nil,
 "submission_type"=>nil,
 "workflow_state"=>"unsubmitted",
 "grade_matches_current_submission"=>true,
 "graded_at"=>nil,
 "grader_id"=>nil,
 "attempt"=>nil,
 "cached_due_date"=>"2023-03-13T03:59:59Z",
 "excused"=>nil,
 "late_policy_status"=>nil,
 "points_deducted"=>nil,
 "grading_period_id"=>nil,
 "extra_attempts"=>nil,
 "posted_at"=>nil,
 "redo_request"=>false,
 "late"=>false,
 "missing"=>false,
 "seconds_late"=>897910,
 "entered_grade"=>nil,
 "entered_score"=>nil,
}

 

# Assignment
{
 "due_at"=>"2023-03-13T03:59:59Z",
 "created_at"=>"2023-02-10T14:26:01Z",
 "updated_at"=>"2023-02-23T15:57:52Z",
 "allowed_attempts"=>-1,
 "submission_types"=>["external_tool"],
 "has_submitted_submissions"=>true,
 "due_date_required"=>false,
 "in_closed_grading_period"=>false,
 "graded_submissions_exist"=>true,
 "is_quiz_assignment"=>false,
 "workflow_state"=>"published",
 "muted"=>true,
 "needs_grading_count"=>0,
 "published"=>true,
 "unpublishable"=>false,
}

 

Thank you!

Labels (3)
0 Likes
1 Solution
JamesSekcienski
Community Coach
Community Coach

@spencer_rib I see that the assignment is an external tool submission.  This is likely the cause of what you are seeing.  If you check the guides, you see that external tool submissions are excluded from automatically being updated with missing/late policies.  This is likely due to variations in how vendors designed their integrations and may cause confusion if something is automatically marked late/missing that shouldn't be.

View solution in original post