Skip to content

Update get_appointment_groups, checks for creating new appointment groups - #679

Open
bennettscience wants to merge 1 commit into
ucfopen:developfrom
bennettscience:issue/678-get-appointment-groups
Open

Update get_appointment_groups, checks for creating new appointment groups#679
bennettscience wants to merge 1 commit into
ucfopen:developfrom
bennettscience:issue/678-get-appointment-groups

Conversation

@bennettscience

Copy link
Copy Markdown
Collaborator

Two issues in one:

  1. canvas.get_appointment_groups() returns an empty list for teachers because it defaults to "reservable", but instructors can't reserve, so the list is empty. Create a new param on the method that defaults to reservable but can be overridden. Update the docstring to note the change.

  2. Update create_appointment_group() to take either a course ID or a Course object. Check that the context_codes key is present on the appointment_group dict before checking formatting.

All tests passing.

Fixes #678

… groups

Fixes ucfopen#678

Two issues in one:

1. `canvas.get_appointment_groups()` returns an empty list for teachers
because it defaults to "reservable", but instructors can't reserve, so
the list is empty. Create a new param on the method that defaults to
`reservable` but can be overridden. Update the docstring to note the
change.

2. Update `create_appointment_group()` to take either a course ID or a
`Course` object. Check that the `context_codes` key is present on the
`appointment_group` dict before checking formatting.

All tests passing.
@codecov

codecov Bot commented Dec 28, 2024

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (45ba5ac) to head (4e0ae56).
⚠️ Report is 37 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff            @@
##           develop      #679   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           74        74           
  Lines         3764      3769    +5     
=========================================
+ Hits          3764      3769    +5     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

get_appointment_groups is broken

1 participant