drew-royster / canvasFileSync

Syncs Canvas course files to your local computer
https://canvasfilesync.com
MIT License
46 stars 6 forks source link

CFS doesn't list all my courses #6

Open MikeTheGreat opened 5 years ago

MikeTheGreat commented 5 years ago

When I first installed & ran this it only listed about a half-dozen courses. I've been using Canvas for a while and have more like 100.

Sadly, the ones I'm teaching this quarter weren't listed in the list :(

What info can I get to help debugging this?

kkysen commented 4 years ago

The listActiveCanvasCourses function in src/utils/apis.js doesn't take into account the Canvas API's pagination, so only 10 courses are returned. It should read the Link response header, which contains links to the remaining pages, so it can get all the courses.

drew-royster commented 4 years ago

Thanks @kkysen I must have assumed that people wouldn't be in 10 active courses at the same time.

@MikeTheGreat you are a teacher? This may be helpful for you, but it was designed to keep students up to date with the course files their teacher posts.

MikeTheGreat commented 4 years ago

I am a teacher. :)

I don't know why my college doesn't change the older courses to 'Inactive' but I can see the list of all 100-ish courses that I've been listed as the teacher in.

At this point I'm trying to keep stuff up to date by having my Canvas courses linking to my DropBox files, which allows me to edit them locally and not worry about them getting out of date

kkysen commented 4 years ago

My old courses aren't always listed as inactive, and I'd like to have them tracked as well anyways. I wasn't sure if you were still working on this, but I'd really appreciate it if you could get it to work with all courses.