Project Grading
Manage grading rubrics and grade posting on the groups grade.
Grading
Grading (ghg:CanvasGroupy.github.GitHubGroup=None, cg:CanvasGroupy.canvas.CanvasGroup=None)
Initialize self. See help(type(self)) for accurate signature.
Type | Default | Details | |
---|---|---|---|
ghg | GitHubGroup | None | authenticated GitHub object |
cg | CanvasGroup | None | authenticated canvas object |
Grading.create_issue_from_md
Grading.create_issue_from_md (repo:github.Repository.Repository, md_fp:str)
Create GitHub issue from markdown file.
Type | Details | |
---|---|---|
repo | Repository | target repository to create issue |
md_fp | str | file path of the feedback markdown file |
Returns | Issue | open issue |
Grading.fetch_issue
Grading.fetch_issue (repo:github.Repository.Repository, component:str)
Fetch the issue on GitHub repo and choose related one
Type | Details | |
---|---|---|
repo | Repository | target repository to fetch issue |
component | str | the component of the project grading, let it be proposal/checkpoint/final. Need to match the issue’s title |
Returns | Issue |
Grading.parse_score_from_issue
Grading.parse_score_from_issue (repo:github.Repository.Repository, component:str)
parse score from the template issue
Type | Details | |
---|---|---|
repo | Repository | target repository to create issue |
component | str | The component of the project grading, let it be proposal/checkpoint/final. Need to match the issue’s title |
Returns | int | the fetched score of that component |
Grading.update_canvas_score
Grading.update_canvas_score (group_name:str, assignment_id, score:float, issue:github.Issue.Issue=None, post=False)
Post score to canvas
Type | Default | Details | |
---|---|---|---|
group_name | str | target group name on a canvas group | |
assignment_id | assignment id of the related component | ||
score | float | score of that component | |
issue | Issue | None | |
post | bool | False | whether to post score via api. for testing purposes |
Grading.grade_project
Grading.grade_project (repo:github.Repository.Repository, component:str, assignment_id:int, canvas_group_name:dict=None, canvas_group_category:str=None, post:bool=False)
grade github project components
Type | Default | Details | |
---|---|---|---|
repo | Repository | target repository to grade | |
component | str | The component of the project grading, let it be proposal/checkpoint/final. Need to match the issue’s title | |
assignment_id | int | assignment id that link to that component of the project | |
canvas_group_name | dict | None | mapping from GitHub repo name to Group name. If not specified, the repository name will be used. |
canvas_group_category | str | None | canvas group category (set) |
post | bool | False | whether to post score via api. For testing purposes |