Go to file
Spencer Olson e1d4b3ee4d add edited_at to submission_comments
closes GRADE-303

Test Plan:
1. Verify the migration succeeds, and verify you can also roll the
   migration back successfully. The rest of the steps will assume the
   migration has been run.
2. Create a course with an assignment. Submit to that assignment as a
   student, and comment on the submission as the student.
3. Make an API call to get the submissions and their comments for the
   assignment.

     GET api/v1/courses/:course_id/assignments/:id/submissions?
         include[]=submission_comments

   Verify the submission comments that are returned have an 'edited_at'
   key on them. The value of 'edited_at' should be nil for all comments.

4. Enter a rails console and update the 'comment' attribute on the
   submission comment.

   assignment = Assignment.find(<your-assignment-id>)
   student = User.find(<your-student-id>)
   submission = assignment.submissions.find_by(user_id: student)
   comment = submission.submission_comments.first
   comment.update!(comment: "i am updating the text on the comment!")

5. Make an API call to get the submissions and their comments for the
   assignment.

     GET api/v1/courses/:course_id/assignments/:id/submissions?
         include[]=submission_comments

   Verify the value of the 'edited_at' attribute for the comment you
   adjusted in step 4 is a timestamp.

Change-Id: I4c91fdfd7a9cef194f08a2d086601fb827a50095
Reviewed-on: https://gerrit.instructure.com/127476
Tested-by: Jenkins
Reviewed-by: Derek Bender <djbender@instructure.com>
Reviewed-by: Shahbaz Javeed <sjaveed@instructure.com>
QA-Review: Anju Reddy <areddy@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
2017-09-29 14:54:03 +00:00
Gemfile.d trigger consul event of HA Cache invalidation 2017-09-26 15:59:04 +00:00
app add edited_at to submission_comments 2017-09-29 14:54:03 +00:00
bin copyright linter auto correct, refs SD-2295 2017-05-11 20:06:08 +00:00
build pin yarn version for docker 2017-09-11 20:24:30 +00:00
client_apps Audit and move vendor/bootstrap/mixins 2017-09-18 19:28:09 +00:00
config LTI User show endpoint 2017-09-28 15:41:12 +00:00
db/migrate add edited_at to submission_comments 2017-09-29 14:54:03 +00:00
doc Add LTI variable substitutions for brand config urls 2017-09-27 18:04:44 +00:00
docker-compose remove redis_store from test env 2017-09-20 15:42:09 +00:00
frontend_build re-add missing timezone locales 2017-08-23 21:01:06 +00:00
gems fix offline course export rendering error 2017-09-26 19:14:05 +00:00
lib add edited_at to submission_comments 2017-09-29 14:54:03 +00:00
public use dialog for rubric rating edit 2017-09-27 19:20:06 +00:00
script trigger consul event of HA Cache invalidation 2017-09-26 15:59:04 +00:00
spec add edited_at to submission_comments 2017-09-29 14:54:03 +00:00
.babelrc Strip out react propTypes in prod webpack build 2017-03-13 23:04:17 +00:00
.bowerrc introduced bower to manage js dependencies 2013-12-13 17:45:57 +00:00
.codeclimate.yml disable ESLint in code climate 2017-02-14 17:47:39 +00:00
.dockerignore Fix build :fingers-crossed: 2017-07-06 19:24:41 +00:00
.editorconfig Add EditorConfig configuration file to help maintain code style 2016-11-15 20:08:55 +00:00
.eslintignore Don’t eslintignore public/js/vendor because we modified code in there 2017-04-11 16:31:48 +00:00
.eslintrc.js add prettier and config-eslint-prettier 2017-08-24 16:41:57 +00:00
.gitignore update .gitignore for rails 5.1 flag file 2017-07-28 16:27:55 +00:00
.i18nignore bump rails 3 to github branch for ruby 2.2 compatibility 2015-02-18 22:55:20 +00:00
.i18nrc upgrade to node 6 2016-08-09 23:37:07 +00:00
.jshintrc make jslint settings more sane 2012-08-17 11:04:40 -06:00
.npmrc fix brand config previewing and skipping 2015-10-27 16:16:15 +00:00
.nvmrc bump node version to v6.9.5 (latest LTS) 2017-02-09 22:31:33 +00:00
.rubocop.yml bump rubocop 2017-07-28 19:32:48 +00:00
.selinimumignore Revert and bring InstIcons into Canvas 2016-11-29 20:52:54 +00:00
.stylelintrc stylelint, refs SD-1603 2016-10-25 00:21:16 +00:00
.travis.yml more travis builds 2014-02-10 16:23:19 +00:00
CONTRIBUTING.md update CONTRIBUTING wording for CLAHub 2017-05-19 19:26:14 +00:00
COPYRIGHT Initial commit. 2011-01-31 18:57:29 -07:00
Dockerfile pin yarn version for docker 2017-09-11 20:24:30 +00:00
Dockerfile-production pin yarn version for docker 2017-09-11 20:24:30 +00:00
Gemfile remove rails 4.0 support 2016-10-25 17:17:22 +00:00
LICENSE Initial commit. 2011-01-31 18:57:29 -07:00
README.md Update README.md since Canvas is still modern 2016-12-15 03:18:28 +00:00
Rakefile remove dead parallelized specs task 2016-11-10 21:41:08 +00:00
bower.json use node_modules wherever possible 2016-11-01 15:14:52 +00:00
code_of_conduct.md contributor code of conduct 2014-12-23 18:13:59 +00:00
config.ru remove extra logging to debug Passenger connection orphan issue 2017-07-14 16:27:03 +00:00
docker-compose.jenkins.yml Rename docker-compose.test.yml 2017-05-17 18:51:53 +00:00
docker-compose.override.yml Remove karma container from docker-compose.override.yml 2017-08-18 20:03:30 +00:00
docker-compose.yml Use redis:alpine 2017-07-31 22:31:40 +00:00
gulpfile.js make all locale files agree on short month names 2017-08-04 22:14:48 +00:00
issue_template.md Add issue_template.md for GitHub issues 2016-02-17 21:00:48 +00:00
karma.conf.js upgrade webpack related npm modules 2017-08-16 21:33:10 +00:00
package.json use graphql for student context cards 2017-09-15 22:50:17 +00:00
schema.graphql Add updated graphQL schema file 2017-09-27 22:20:23 +00:00
webpack.config.js don't pass frontend build files through babel 2016-11-08 20:29:29 +00:00
webpack.production.config.js upgrade webpack related npm modules 2017-08-16 21:33:10 +00:00
webpack.test.config.js upgrade webpack related npm modules 2017-08-16 21:33:10 +00:00
yarn.lock use graphql for student context cards 2017-09-15 22:50:17 +00:00

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.