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

Schedule fetching rosters for sections #6948

Open
wants to merge 2 commits into
base: canvas-factory
Choose a base branch
from

Conversation

marcospri
Copy link
Member

After a sucesful course roster fetch, if the course has sections, we will schedule a task to fetch the rosters for that course's sections.

This commit includes a new method to fetch section rosters. It doesn't yet fetch (schedule) rosters.

This are different than the other ones we have so far (course, assignments and Canvas groups in a few different ways:

- We use the Canvas API instead of the LTI one. This means we have to deal with users tokens, refreshing them etc.

For now we'll just attempt a token refresh if necessary. If that, or anything else fails, we'll give up.

- The API doesn't provide enough information to create the users we haven't seen.

This means that section rosters only help us to organize existing users into existing sections.

We fetch sections on every launch so discovering sections shouldn't be a concern.
Not being able to discover new users means that we'd need the course/section roster to begin with. This limits canvas sections also to LTI1.3.
After a sucesful course roster fetch, if the course has sections, we will
schedule a task to fetch the rosters for that course's sections.
@marcospri marcospri force-pushed the schedule-section-roster-fetching branch from 869e334 to 2a21144 Compare January 16, 2025 15:08
@marcospri marcospri force-pushed the canvas-sections-rosters branch from 9728880 to 57aa854 Compare January 17, 2025 11:21
@marcospri marcospri marked this pull request as ready for review January 17, 2025 14:02
Base automatically changed from canvas-sections-rosters to canvas-factory January 17, 2025 14:07
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.

1 participant