![]() Context and annotation id are necessary keys to looking up an annotation in DocViewer. This just allows that information to be saved when it is sent from DocViewer. closes GRADE-1593 Test Plan - Create/edit dynamic_settings.yml and add in an entry under "config" that is: canvadoc: secret: "c2Vrcml0" * the secret is "sekrit" base64 encoded if you're curious. - Open a rails console and enter: `Canvas::Security.create_jwt({}, nil, 'sekrit', :HS512)` The resulting token is your auth token for the duration of testing. - Create an assignment that accepts file uploads. - As a student, submit to that with a document. - As a teacher, launch speedgrader once for that assignment and view the document. - Open a rails console and find the submission, the attachment for that submission, and the canvadoc id related to that attachment. - Post to the docviewer audit events url (submissions/:submission_id/docviewer_audit_events) with data in the body looking like: { docviewer_audit_event: { annotation_body: "", annotation_id: "23", color: "", content: "", context: "some context", created_at: "", modified_at: "", page: "", type: "" }, token: your token from the second step, canvas_user_id: id of the teacher, document_id: the canvadoc id } - Open a rails console and verify that an AnonymousOrModerationEvent with the attributes context and annotation_id saved in the payload. Change-Id: I7431fbbb93926e755db5fb83a2004f3fa232fc45 Reviewed-on: https://gerrit.instructure.com/165276 Tested-by: Jenkins Reviewed-by: Jeremy Neander <jneander@instructure.com> Reviewed-by: Keith T. Garner <kgarner@instructure.com> QA-Review: Gary Mei <gmei@instructure.com> Product-Review: Keith T. Garner <kgarner@instructure.com> |
||
---|---|---|
.github | ||
Gemfile.d | ||
app | ||
bin | ||
build | ||
client_apps | ||
config | ||
db/migrate | ||
doc | ||
docker-compose | ||
frontend_build | ||
gems | ||
jest | ||
lib | ||
packages | ||
pact | ||
public | ||
script | ||
spec | ||
.babelrc | ||
.bowerrc | ||
.codeclimate.yml | ||
.dockerignore | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc.js | ||
.gitignore | ||
.i18nignore | ||
.i18nrc | ||
.jshintrc | ||
.npmrc | ||
.nvmrc | ||
.prettierrc | ||
.rubocop.yml | ||
.selinimumignore | ||
.stylelintrc | ||
.travis.yml | ||
CONTRIBUTING.md | ||
COPYRIGHT | ||
Dockerfile | ||
Dockerfile-production | ||
Gemfile | ||
LICENSE | ||
README.md | ||
Rakefile | ||
bower.json | ||
code_of_conduct.md | ||
config.ru | ||
docker-compose.jenkins.yml | ||
docker-compose.override.yml | ||
docker-compose.yml | ||
gulpfile.js | ||
issue_template.md | ||
jest.config.js | ||
karma.conf.js | ||
package.json | ||
schema.graphql | ||
webpack.config.js | ||
webpack.production.config.js | ||
webpack.test.config.js | ||
yarn.lock |
README.md
Canvas LMS
Canvas is a modern, open-source LMS developed and maintained by Instructure Inc. It is released under the AGPLv3 license for use by anyone interested in learning more about or using learning management systems.
Please see our main wiki page for more information
Installation
Detailed instructions for installation and configuration of Canvas are provided on our wiki.