canvas-lms/spec
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
..
apis add edited_at to submission_comments 2017-09-29 14:54:03 +00:00
coffeescripts Render Excused instead of EX for excused assignments in new GB 2017-09-27 16:37:37 +00:00
controllers log AUA for courses#show api request 2017-09-27 22:39:22 +00:00
factories Adds sections and group info to live events 2017-09-27 18:58:23 +00:00
fixtures handle imported zip files inside a nested directory 2017-08-23 15:53:25 +00:00
formatters da licença part 46 2017-04-28 17:56:22 +00:00
gem_integration/canvas_connect Revert "bump canvas_connect... again" 2017-09-05 16:47:41 +00:00
graphql fix grade lookups for courses with no grading periods 2017-09-14 22:13:58 +00:00
helpers fix incorrect module sequence with autograded mastery path items 2017-09-14 23:41:44 +00:00
initializers configure cache store from consul 2017-09-13 17:30:48 +00:00
integration rubric criterion ui-changes 2017-09-27 19:19:59 +00:00
javascripts fix mastery paths js error when student has teacher roles 2017-09-28 19:44:36 +00:00
lib add edited_at to submission_comments 2017-09-29 14:54:03 +00:00
messages add a setting to the footer of emails 2017-09-05 18:55:38 +00:00
middleware Add rake task to populate Consul from dynamic_settings.yml 2017-09-19 18:08:39 +00:00
migrations master courses: migrate old import result format to new one 2017-09-08 15:21:10 +00:00
models add edited_at to submission_comments 2017-09-29 14:54:03 +00:00
observers spec: mocha => rspec-mocks for observers 2017-07-26 00:22:26 +00:00
presenters Fix OQAAT quiz to allow resume if all questions have been viewed 2017-09-18 19:51:57 +00:00
selenium spec: add specs for Grade Detail Tray comments 2017-09-28 22:07:25 +00:00
serializers Remove session from quiz permission grants 2017-09-20 21:14:14 +00:00
shared_examples da licença part 59 2017-05-01 21:11:16 +00:00
support spec: reset spec timeout 2017-09-21 20:03:14 +00:00
views add user_observers + change_sis_ids to sis counts 2017-09-22 23:13:12 +00:00
ams_spec_helper.rb spec: remove mocha 2017-07-27 18:22:39 +00:00
broadcast_integration.rb spec: rename the `user` helper to `user_factory` 2016-12-27 20:25:25 +00:00
cassandra_spec_helper.rb don't log errors for unconfigured auditors 2016-03-31 17:11:36 +00:00
coverage_tool.rb spec: rename the `user` helper to `user_factory` 2016-12-27 20:25:25 +00:00
import_helper.rb Add ability to import tool profiles 2017-06-19 19:31:52 +00:00
jspec.sh require yarn, not npm 2017-08-14 15:27:14 +00:00
jspec_env.js add npm script that can run specific js specs 2016-11-30 18:37:23 +00:00
lti2_course_spec_helper.rb Add ability to import tool profiles 2017-06-19 19:31:52 +00:00
lti2_spec_helper.rb Add DeveloperKey/vendor code association for LTI2 2017-08-07 16:32:48 +00:00
lti_spec_helper.rb da licença part 47 2017-04-28 17:59:55 +00:00
quiz_spec_helper.rb da licença part 60 2017-05-01 21:20:40 +00:00
rcov.opts
rspec_mock_extensions.rb spec: remove mocha 2017-07-27 18:22:39 +00:00
sharding_spec_helper.rb Skip tests that require plugin unless plugin installed 2017-07-28 19:30:52 +00:00
simple_cov_result_merger.rb spec: stabilize some gem dependencies, refs SD-2837 2017-08-30 16:12:08 +00:00
spec.opts spec: bring test-queue rerun logic into canvas 2017-01-25 22:29:41 +00:00
spec_helper.rb fix admin tools user search date picker 2017-09-22 21:27:45 +00:00