Skip to content

failed to loop all pages from Canvas course API result #139

Open

Description

The current implementation of Canvas_API_call function relies on the ref="last" value returned from the Canvas Pagination link header

However, the last value may be missing if the API call is expensive for all pages:

These will only be included if they are relevant. For example, the first page of results will not contain a rel="prev" link. rel="last" may also be excluded if the total count is too expensive to compute on each request.
As a result, the sis_set_url.rb now only works on the first page (100 courses) returned from Canvas course API call, and did not update all course site urls.

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

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