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

Update multiple courses method #48

Merged
merged 1 commit into from
Apr 8, 2022

Conversation

bgarciaentornos
Copy link

Copy link
Member

@buckett buckett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I think would be good to update the course IDs to either be String or Long

Comment on lines 38 to 41
public UpdateCoursesOptions courseIds(List<Integer> courseIds) {
addNumberList("course_ids[]", courseIds);
return this;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normally I would expect this to accept String rather than a number so that you can use SIS IDs as well as Canvas course IDs (https://canvas.instructure.com/doc/api/file.object_ids.html).
If it doesn't support SIS ID expansion then it should at least be Long as all numbers in the Canvas API (for IDs) are 64 bit.

@bgarciaentornos
Copy link
Author

Done, thanks!

@buckett buckett merged commit dc43c54 into oxctl:master Apr 8, 2022
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.

2 participants