-
Notifications
You must be signed in to change notification settings - Fork 2
Implement Rubrics methods for Canvas LMS API #20
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: tin900 <113692500+tin900@users.noreply.github.com>
tin900
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update pkdown too
Co-authored-by: tin900 <113692500+tin900@users.noreply.github.com>
Updated pkgdown configuration and documentation. Added rubrics functions to NAMESPACE exports, created manual pages (.Rd files), and updated _pkgdown.yml with new rubrics section. The functions are now properly documented and will appear on the pkgdown website. (commit 453d600) Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
tin900
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot use the new paginate function see other functions how to use it
Co-authored-by: tin900 <113692500+tin900@users.noreply.github.com>
Updated both |
This PR implements comprehensive support for retrieving rubrics data from the Canvas LMS API, addressing the request in issue #19.
Changes Made
Added four new functions following the established package patterns:
Course-Level Rubrics
get_rubrics(canvas, course_id, per_page = 100)- Retrieves list of rubrics for a specific courseget_rubric(canvas, course_id, rubric_id)- Retrieves a single rubric by ID from a courseAccount-Level Rubrics
get_account_rubrics(canvas, account_id, per_page = 100)- Retrieves list of rubrics for a specific accountget_account_rubric(canvas, account_id, rubric_id)- Retrieves a single rubric by ID from an accountImplementation Details
All functions follow the established vvcanvas package conventions:
@exporttagshttr::GETfor HTTP requests andjsonlite::fromJSONfor parsingper_pageparameter)API Endpoints Covered
These functions implement the following Canvas API endpoints:
GET /api/v1/courses/:course_id/rubricsGET /api/v1/courses/:course_id/rubrics/:idGET /api/v1/accounts/:account_id/rubricsGET /api/v1/accounts/:account_id/rubrics/:idUsage Example
Files Added
R/get_rubrics.R- Course rubrics list functionR/get_rubric.R- Single course rubric functionR/get_account_rubrics.R- Account rubrics list functionR/get_account_rubric.R- Single account rubric functionUpdated
TODO.mdto mark the corresponding rubrics endpoints as implemented.Fixes #19.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.