Commit Graph

9 Commits

Author SHA1 Message Date
Landon Wilkins 58e4df2494 da licença part 37
add consistent license headers to all source files
(ruby, coffeescript, javascript)

except for vendor files

Change-Id: Ibc881431ca51b7da3b0d3182033e95ebf7d6e524
Reviewed-on: https://gerrit.instructure.com/110067
Tested-by: Jenkins
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2017-04-27 22:44:36 +00:00
Cody Cutrer 884534ffa5 Rails 5: fix Rails version migration deprecation warning
also pins all migrations to Rails 4.2 semantics

Change-Id: I386566f7a1f3e3e8aa31675f467c87c443457aee
Reviewed-on: https://gerrit.instructure.com/95571
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Simon Williams <simon@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2016-11-17 23:46:22 +00:00
James Williams c291a53cd8 add tags to all the migrations
Change-Id: I06c07b3b5d676e5aa49e88b547e965c214862a9f
Reviewed-on: https://gerrit.instructure.com/66528
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2015-11-06 00:59:33 +00:00
Cody Cutrer 2c2e687e59 qualified names fixes for migrations
refs CNVS-21900

Change-Id: I6b7e323e3c700aee3a7c86cb8f06fce78e5606df
Reviewed-on: https://gerrit.instructure.com/63384
Tested-by: Jenkins
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-09-17 22:03:28 +00:00
Cody Cutrer b7b5042b2c rename transaction attribute to disable_ddl_migration!
for Rails 4 compatibility

Change-Id: I7dd48ef8cce10e9e15536eebf3e4ab5aee365a40
Reviewed-on: https://gerrit.instructure.com/25686
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2013-10-29 20:33:53 +00:00
Cody Cutrer 55e1bdbf79 arel-ify migrations
refs CNVS-4707

Change-Id: Iac66804015191f91e99e635571134fc575bd3ba8
Reviewed-on: https://gerrit.instructure.com/18751
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2013-03-22 20:23:35 +00:00
Cody Cutrer 48b179d4ac support marking a migration as non-transactional
test plan:
 * run the migrations against postgres - confirm by looking at logs
   that most migrations run in a transaction, but those modified
   here do not

Change-Id: I4820d982e2ce6abd21bde0c882b3177c3f11984e
Reviewed-on: https://gerrit.instructure.com/8456
Reviewed-by: Brian Palmer <brianp@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
2012-02-17 16:17:22 -07:00
Jon Jensen f523eac1ea do data migrations outside of a transaction
Change-Id: I4d43559ddff61f90593f8bb5616c2f1c57932717
Reviewed-on: https://gerrit.instructure.com/8685
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2012-02-14 11:43:27 -07:00
Jon Jensen 6d994d08c8 refine conversation creation for group submissions, fixes #7212
changes the behavior such that the only submission comments that create/
update conversations are ones by participants in the conversation.
previously, a comment on a group submission would update all private
conversations between the teacher(s) and all group members, rather than
the one(s) between the teacher(s) and the commenter. group comments by a
teacher will still go to each of his conversations with group members

test plan:

1. create a group assignment
2. submit it as a student
3. make a group comment as that student
4. ensure the student's conversation with the teacher gets updated if it
   already exists
5. ensure the teacher's conversation with the student gets updated and
   marked as unread (if not already)
6. ensure that no conversations between other group members and the
   teacher get created/updated
7. now make a group comment as the teacher
8. ensure that the conversations get updated/created between the teacher
   and all group memebrs, i.e.
   1. they should be unread from the student's perspective
   2. for everyone, the teacher's comment should be the reflected in the
      left-hand conversation preview

Change-Id: I1cfac34fc7b78fad17edf93acaa50b8b97461af6
Reviewed-on: https://gerrit.instructure.com/8644
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
2012-02-13 13:42:16 -07:00