Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submission Metadata format has diverged from documented #60

Open
tsachleben opened this issue Sep 11, 2021 · 1 comment
Open

Submission Metadata format has diverged from documented #60

tsachleben opened this issue Sep 11, 2021 · 1 comment
Labels

Comments

@tsachleben
Copy link

tsachleben commented Sep 11, 2021

Describe the bug
Submission Metadata documentation page does not match real format of submission_metadata. Of particular note, the object .assignment.outline (type=list) is not present in the documentation.

To Reproduce
Create and submit a programming assignment with an autograder via the Gradescope webpage.

Expected behavior
Submission Metadata matches format in submission_metadata.md

Actual behavior

$ jq . submission_metadata.json 
{
  "id": 87184652,
  "users": [
    {
      "id": 233634,
      "email": "t.sachleben@northeastern.edu",
      "name": "Tariq Sachleben",
      "sid": null,
      "assignment": {
        "release_date": "2021-09-10T18:00:00.000000-07:00",
        "due_date": "2021-09-14T18:00:00.000000-07:00",
        "late_due_date": "2021-12-17T20:00:00.000000-08:00"
      }
    }
  ],
  "created_at": "2021-09-10T18:25:53.109082-07:00",
  "assignment_id": null,
  "assignment": {
    "id": 1482034,
    "title": "Project 1 Test",
    "release_date": "2021-09-10T18:00:00.000000-07:00",
    "due_date": "2021-09-14T18:00:00.000000-07:00",
    "total_points": "100.0",
    "course_id": 267363,
    "group_submission": false,
    "group_size": null,
    "late_due_date": "2021-12-17T20:00:00.000000-08:00",
    "outline": [  
      {
        "id": 11489099,
        "type": "ProgrammingQuestion",
        "title": "Autograder",
        "parent_id": null,
        "weight": "0.0",
        "content": [],
        "crop_rect_list": [],
        "index": 1
      },
      {
        "id": 11489101,
        "type": "FreeResponseQuestion",
        "title": "Manual Grading",
        "parent_id": null,
        "weight": "100.0",
        "content": [],
        "crop_rect_list": [],
        "index": 2
      }
    ]
  },
  "submission_method": "upload",
  "previous_submissions": [
    {
      "submission_time": "2021-09-10T18:20:07.128128-07:00",
      "score": "0.0",
      "results": {
        "output": "The autograder failed to execute correctly. Contact your course staff for help in debugging this issue. Make sure to include a link to this page so that they can help you most effectively."
      }
    }
  ]
}
@tsachleben tsachleben added the bug label Sep 11, 2021
tsachleben added a commit to northeastern-khoury/gradescope-autograding-lib that referenced this issue Sep 11, 2021
 - Missing .assignment.outline
   - Not documented; opened <gradescope/autograder_samples#60>
@ibrahima
Copy link
Contributor

Hi Tariq, thanks for pointing this out! It looks like we actually added this several years ago. I've made a ntoe that we should update the documentation to address this. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants