Skip to content

[FEATURE/QUESTION] get_course_gradebook() omits assignments not assigned to "everyone" #38

Description

@monicathieu

Issue Type

  • Bug Report
  • Feature Request
  • Question/Support

Current Behavior

I am using get_course_gradebook() to reconstruct grades for my Canvas course. This Canvas course has 2 sections of students in it for classes that meet at different times; thus I often use "Assign to" in the Canvas GUI to assign section 1 to a slightly earlier due date for section 2 (so that students will see assignment due dates relative to their class time.) For these assignments, I do not use the "assign to everyone else" option. I know that all students will be assigned the assignment by assigning to sections.

get_course_gradebook() returns only results for assignments with visible_to_everyone == TRUE. I believe based on some skimming of the Canvas API docs that visible_to_everyone corresponds to the presence of student/section-specific due dates. I am thus missing grade columns for many of my assignments which are in actuality graded.

I also have some assignments with a single due date set for everyone, and these assignments show up as expected.

Expected Behavior

I expect the gradebook dataframe to return a column for every single assignment in my course, per the GUI Gradebook viewer.

Your Environment

  • Version used: 0.0.8
  • R 4.5.1 (Mac, but I don't think that is relevant to this issue/request)

Possible Solution

I'm not clear on what the initial motivation was to restrict the reconstructed assignments in get_course_gradebook() to only the ones with a single due date for everyone. Simply removing that line of code would solve my issue, but if there's a strong reason why some users might want filter for visible_to_everyone == TRUE, it could make sense to add a function argument include_visibility_overrides or something like that so the user can choose?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions