Commit Graph

15130 Commits

Author SHA1 Message Date
Simon Williams 531080ffa8 disable fragile external feed qunit specs temporarily
Change-Id: I124dfbe44fb5f0fec4a9c8b87786535a5f74fc87
Reviewed-on: https://gerrit.instructure.com/52209
Tested-by: Jenkins
Reviewed-by: Jason Madsen <jmadsen@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
QA-Review: Simon Williams <simon@instructure.com>
2015-04-15 02:14:14 +00:00
James Williams 945440dc40 reset page user on re-import
test plan:
* import a package with a page into a course
* edit the page
* re-import the package
* the revision history should not show the user
 who last edited it as the author of the latest
 revision (caused by the re-import)

closes #CNVS-19724

Change-Id: I525fe59295b8d9d266387045ef0f98a3d0154651
Reviewed-on: https://gerrit.instructure.com/52108
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
2015-04-14 21:12:54 +00:00
James Williams 5e5cd7b79c add tinymce editor for quiz question comments
test plan:
* should be able to create and edit question and
 answer comments using the html rce editor
* should be able to edit previously uneditable
 comments imported by certain packages

closes #CNVS-15633 #CNVS-10161

Change-Id: I3879fa3a2bb71e3e0f4ceefd66da3dbba41b0549
Reviewed-on: https://gerrit.instructure.com/52075
Reviewed-by: Brian Finney <bfinney@instructure.com>
Tested-by: Jenkins
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: Hilary Scharton <hilary@instructure.com>
2015-04-14 20:29:42 +00:00
Strand McCutchen 33d98d3fad return focus to "Set default grade" button
fixes CNVS-18702

test plan:
1. On the Individual View Gradebook screen, navigate to the
   "Set default grade" button using only the keyboard.
2. Enter a score and tab to the "Set Default Grade" button
   at the bottom of the modal.
3. Press Enter. The focus should return to the "Set default
   grade" button.

Change-Id: I4fa3de8721f339a5e2bb5e63cbc2feed7ea8b4cf
Reviewed-on: https://gerrit.instructure.com/51486
Tested-by: Jenkins
QA-Review: Nathan Rogowski <nathan@instructure.com>
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
Product-Review: Strand McCutchen <smccutchen@instructure.com>
2015-04-14 20:00:20 +00:00
Brian Palmer 8c3bef468b remove unwanted translation keys from generated/en.yml
These are keys we don't want going to transifex (and actually in this specific
case break loading the yml into transifex, since rails uses symbols instead of
strings for these)

Change-Id: Ife2eb01998c8173f180fe9158525b2026964c7c5
Reviewed-on: https://gerrit.instructure.com/52126
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
Tested-by: Jenkins
2015-04-14 19:58:57 +00:00
Benjamin Porter 20c0daa263 Learning Outcome Model add rubric_criterion method
This is very handy (and is used in a forth-coming patchset), and
provides symmetry with the rubric_criterion= method.

Refs CNVS-18658

Test Plan:

    - From a rails console, create a learning outcome object
    - Set some rubric_criterion data (you can use rubric_criterion=)
    - Check that rubric_criterion() returns that data to you
    - Check that it is the same data as returned by
      data[:rubric_criterion]

Change-Id: I5677f33604cb7965c7b7113f58dd97472f7dd9fb
Reviewed-on: https://gerrit.instructure.com/50282
Tested-by: Jenkins
Reviewed-by: Mike Nomitch <mnomitch@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
QA-Review: Simon Williams <simon@instructure.com>
2015-04-14 18:41:18 +00:00
Cody Cutrer 84f1082b6a don't autoextend methods from modules
we can't detect when a method is added from a module, so make immediate
detection work the same way

Change-Id: I8558e1fccf14a62d21efcc3108a1fca34f0c2ac4
Reviewed-on: https://gerrit.instructure.com/51799
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
Tested-by: Jenkins
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-04-14 18:41:01 +00:00
Ethan Vizitei 4e39bcfb76 add a parameter to user creation for forcing self-registraion flow
closes CNVS-19046

Marketing is moving to take over the FFT form, which means
the user creation will occur via API, but they'll still need
to get the self-registration style emails to get passwords right
and such.

This provides a parameter to do so.  It also pulls out a handful
of lines from the users_controller all related to how and which
notifications get sent, and moves them into a policy object, which
has some predicate methods for the controller to make decisions off
of, and also does the notification dispatching.

Change-Id: I0513062aedf4258b7d9f51a46b1d8e42b2a2582a
Reviewed-on: https://gerrit.instructure.com/51608
Tested-by: Jenkins
Reviewed-by: Jacob Fugal <jacob@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
2015-04-14 17:26:05 +00:00
Matthew Berns ef7a7b474b set default focus to close button on 'other services' modal
fixes CNVS-19245

test plan:
- go to user settings page
- use keyboard nav to get to the buttons under 'other services'
- when opening the modal for a given service, focus should be on close button

Change-Id: Ie9dc206802642a96ec11217bc5e03331fc9f5229
Reviewed-on: https://gerrit.instructure.com/52095
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Product-Review: Matt Berns <mberns@instructure.com>
2015-04-14 17:00:05 +00:00
Steven Shepherd 1c7605e8a0 Add specs to test teachers moving students to other groups
Test Plan:
  - Run specs

Change-Id: I5f88ffcdf7ae6b893695724a0eecd43e4f6a1aea
Reviewed-on: https://gerrit.instructure.com/52071
Tested-by: Jenkins
Reviewed-by: Derek Hansen <dhansen@instructure.com>
Product-Review: Derek Hansen <dhansen@instructure.com>
QA-Review: Steven Shepherd <sshepherd@instructure.com>
2015-04-14 16:05:39 +00:00
Aaron Cannon 7b3ca3d652 A11y: Assign question title heading an ARIA level
Fixes CNVS-14107

Test plan:
- View a question bank with questions.
- Using a screen reader, navigate to each question title.
- Validate that it is read as a heading.
- Verify that you can navigate to that heading via the hotkey that takes you
  specifically to level 2 headings.

Change-Id: I65c8ed136177b2a94a0a951d99e769c5b65d3667
Reviewed-on: https://gerrit.instructure.com/51791
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
Tested-by: Jenkins
QA-Review: Nathan Rogowski <nathan@instructure.com>
Product-Review: Aaron Cannon <acannon@instructure.com>
2015-04-14 15:40:44 +00:00
Cody Cutrer 69a20bf2a1 bump tzinfo gem
Change-Id: Iaeb75bfde1ee7d30f1c85f9ef8b3ce9c06be60b2
Reviewed-on: https://gerrit.instructure.com/52045
Tested-by: Jenkins
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-04-14 14:28:46 +00:00
James Williams 340331d0be bump moodle2cc to 0.2.18
test plan:
* import the package referenced in the ticket
* should be successful

fixes #CNVS-19788

Change-Id: I7b3bd193e9467a63e1f328bc3fcab321990d5462
Reviewed-on: https://gerrit.instructure.com/52066
Tested-by: Jenkins
Reviewed-by: Nathan Mills <nathanm@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2015-04-14 00:09:16 +00:00
Ethan Vizitei 1004e66540 get sentry into canvas
closes CNVS-6016

No more error reports!  (soon)

this commit builds up sentry integration through the new
Canvas::Errors module, along with other things that need
to happen on every exception.  ErrorReports
should now get pushed towards just being used for representing
a complaint a user filed via the get help form.

I fixed about half the things that got linted as well
while I was in here, but because this touches to much
I fear divergence from tackling too many (I think we
can safely say it's "better than we found it")

I left a lot of the infrastructure for error reports in place
until other commits for plugins can be merged

TEST PLAN:
 1) setup your raven.yml config file with the dsn for our
  sentry install
 2) force an error to happen in a request response cycle.
 3) see the error in sentry
 4) force an error to happen in a job
 5) see the error in sentry
 6) statsd increments shoudl still fire
 7) for the moment, an error report should still get created.

Change-Id: I5a9dc7214598f8d5083451fd15f0423f8f939034
Reviewed-on: https://gerrit.instructure.com/51621
Reviewed-by: Simon Williams <simon@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
Tested-by: Jenkins
QA-Review: August Thornton <august@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
2015-04-13 22:26:15 +00:00
Cody Cutrer bd52b0a491 fix autoextend for ruby 1.9
const_get in 1.9 doesn't support nested constants

Change-Id: I1f511697b44846f7b8c9714f8bf84adaf42591bf
Reviewed-on: https://gerrit.instructure.com/52054
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-04-13 21:11:08 +00:00
James Williams 32f38c0004 fix student choosing based on turnitin_data
fixes the sad spec
 "chooses the student with turnitin data to represent"
 in  spec/models/assignment_spec.rb

turns out every submission has "not null" turnitin data

before, this spec seemed to pass/fail
 randomly based on how the users were ordered

Change-Id: I0c2751ef72b022409020de535a19b0fd8b1801f7
Reviewed-on: https://gerrit.instructure.com/51828
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
2015-04-13 20:31:32 +00:00
Ethan Vizitei 90e7cd1997 don't let rlint get confused on non-structure constant assignments
Change-Id: Ic41b0576a6c6bcf933992471318e93439b19d183
Reviewed-on: https://gerrit.instructure.com/52055
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
Tested-by: Ethan Vizitei <evizitei@instructure.com>
2015-04-13 19:57:15 +00:00
Cody Cutrer 218e839545 allow plugins to specify their base as a symbol
so it doesn't have to load the base module if it's not used

Change-Id: I6a2c1ac169b1ac4a506dcdfae8b8e14eae1098f5
Reviewed-on: https://gerrit.instructure.com/51930
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-04-13 18:53:17 +00:00
Cody Cutrer a424a91f97 add autoextend gem for plugins to easily add functionality to canvas
closes CNVS-14263

Change-Id: If2fb80e776662cae1fe56dd9e5e550c50f6accd8
Reviewed-on: https://gerrit.instructure.com/51654
Tested-by: Jenkins
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-04-13 18:25:50 +00:00
Ethan Vizitei ba96e7d4e1 Ignore parameters unaligned in rlint
Change-Id: I52def3db787cfc60bc35a6340c8a87818d8ec1fa
Reviewed-on: https://gerrit.instructure.com/52044
Reviewed-by: Mike Nomitch <mnomitch@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
Tested-by: Ethan Vizitei <evizitei@instructure.com>
2015-04-13 18:22:04 +00:00
Ethan Vizitei 913e89b0d6 make rlint handle Time.now.utc correctly
Change-Id: If2facabedd06c8f16466eebd045988a401834ea1
Reviewed-on: https://gerrit.instructure.com/52036
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
Product-Review: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
2015-04-13 17:00:27 +00:00
Ethan Vizitei e9e659d990 add boyscout mode for rlint
also back off the hash syntax rule

Change-Id: Ib5daec82b013cb5ca3abeec7705f3838cc438d06
Reviewed-on: https://gerrit.instructure.com/52023
Reviewed-by: Jason Madsen <jmadsen@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
Tested-by: Ethan Vizitei <evizitei@instructure.com>
2015-04-11 15:13:26 +00:00
Ethan Vizitei 54ba883c44 don't forget initial setup for your database when using docker-compose
DOCS CHANGE ONLY, NO TEST PLAN

Change-Id: Iac0b289b4e7b7a553d959bd72f5e0e313a00c657
Reviewed-on: https://gerrit.instructure.com/51443
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
2015-04-11 14:10:36 +00:00
Ethan Vizitei 72cd48462c this test fails all the time in jenkins, probably because it's crazy async
Let's find out.

TEST PLAN:
  1) Less Fragile Failures

Change-Id: I4e0f7137850f107ae3e758c6d0dee5206979123c
Reviewed-on: https://gerrit.instructure.com/52021
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
Tested-by: Jenkins
Product-Review: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
2015-04-11 13:41:44 +00:00
Ethan Vizitei 1329e71c53 colorize rlint output
Change-Id: I357a15e38c454991efd556491cd8f047a07f701a
Reviewed-on: https://gerrit.instructure.com/52008
Reviewed-by: Braden Anderson <braden@instructure.com>
Product-Review: Braden Anderson <braden@instructure.com>
QA-Review: Braden Anderson <braden@instructure.com>
Tested-by: Jenkins
2015-04-10 20:13:36 +00:00
James Williams 2b8cd4c6ad restore re-copied items to published state if not unpublishable
test plan:
* create a regular assignment, and a quiz
* keep them unpublished
* copy them to another course
* publish the quiz and assignment
* enroll a student and submit to the
 assignment and the quiz
* delete the assignment and quiz
* re-copy the assignment and quiz over
 from the original course
* should restore them to a published state

closes #CNVS-14510

Change-Id: I4a97602882fdc2f88427892d92526bc21c57e0b2
Reviewed-on: https://gerrit.instructure.com/51862
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2015-04-10 19:43:46 +00:00
James Williams 662a88df14 important commit for important things
Change-Id: I5e1cea86576ae1787b3c837d4594d0a7c3e687d8
Reviewed-on: https://gerrit.instructure.com/51991
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
Tested-by: Jenkins
QA-Review: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Dana Danger <dana@instructure.com>
2015-04-10 19:29:56 +00:00
Steven Shepherd 63039e7a28 Add specs to test adding students to groups, and also a helper for group
Test Plan:
  - Run Specs

Change-Id: Iff16dd28ef9a7bbefa8acbd941cf026644ca9733
Reviewed-on: https://gerrit.instructure.com/51867
Reviewed-by: Derek Hansen <dhansen@instructure.com>
Tested-by: Jenkins
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
2015-04-10 18:04:27 +00:00
Ethan Vizitei 125fab73e6 make the internal body element for a new editor bigger
closes CNVS-19751

By default, this body is only 20px, so right clicking in the editor
below that point doesn't let you paste.

TEST PLAN:
 1) create a new assignment (or some other empty tinymce)
 2) right click *more* than 20px from the top
 3) you should be able to paste

Change-Id: I11618abe859ea34b582c181eef1a847fa013481e
Reviewed-on: https://gerrit.instructure.com/51944
Tested-by: Jenkins
Reviewed-by: Matthew Wheeler <mwheeler@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
2015-04-10 17:08:30 +00:00
Ethan Vizitei dac72fc53c disable indentation linting
Change-Id: I0c78d81afa3d41063d071ad6d8d88ef5a1c596df
Reviewed-on: https://gerrit.instructure.com/52000
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
Tested-by: Ethan Vizitei <evizitei@instructure.com>
2015-04-10 17:04:46 +00:00
James Williams 5b8a1875fb allow rce editor buttons to work with group contexts
test plan:
* create a group for a course
* add an editor_button configured LTI tool to
 the course or account (such as youtube embed)
* create or edit rce content in the group
 (such as a discussion topic or wiki page)
* the editor button should show up and function

closes #CNVS-2866

Change-Id: Icad2258689565046d5a40d346e1968e8dad6cbdb
Reviewed-on: https://gerrit.instructure.com/51927
Tested-by: Jenkins
Reviewed-by: Nathan Mills <nathanm@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2015-04-10 17:01:52 +00:00
Ethan Vizitei 13f8256e92 add heavy mode and INFO on only touched lines
lets rlint only run with local changeset unless you specify "--heavy"

Also checks for whether you actually touched a line
or not before deciding an INFO comment is relevant

Change-Id: I4a960c72644dfc46aca7a51d04321711cef0850c
Reviewed-on: https://gerrit.instructure.com/51992
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
Tested-by: Ethan Vizitei <evizitei@instructure.com>
2015-04-10 16:59:07 +00:00
Ethan Vizitei f8e4b93f37 make script/rlint faster
on jenkins this was taking up to 9 minutes.

By removing the file I/O and batching
the georgich commits, this ran locally on my
sentry patch set in 15 seconds.

Change-Id: I23b0df9b9396829de4b8ff084f4f92df6e698da2
Reviewed-on: https://gerrit.instructure.com/51987
Reviewed-by: Jon Jensen <jon@instructure.com>
Tested-by: Jenkins
Product-Review: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
2015-04-10 16:53:19 +00:00
Jon Jensen a79556c97a normalize jst task failure output, include filename
now when looking at the jenkins logs, it's more clear what's happening.
but more importantly, this will make it more easily gergichible, which
means you won't have to look at jenkins logs \o/

test plan:
1. try various problematic hbs things (mismatched blocks, syntax errors,
   i18n probs)
2. run `rake jst:compile`
3. note that it now shows the filename, and the formatting is somewhat
   consistent

Change-Id: I6ff9fc789e93929e5591fa2be3995410a1be2c2e
Reviewed-on: https://gerrit.instructure.com/51975
Tested-by: Jenkins
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2015-04-10 16:29:26 +00:00
Ethan Vizitei 0a84308119 better conditional configuration for rubocop
and also remove a useless newline linter

Change-Id: I875ed410bc5b54484af503312f75b7021323060a
Reviewed-on: https://gerrit.instructure.com/51988
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
Tested-by: Ethan Vizitei <evizitei@instructure.com>
2015-04-10 15:03:00 +00:00
Ethan Vizitei 5a92d12498 back off rails 4 rubocop
Change-Id: I6b833430f224051c93c2b36803bc4cfc1ce2376c
Reviewed-on: https://gerrit.instructure.com/51986
Reviewed-by: Matthew Wheeler <mwheeler@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
Tested-by: Ethan Vizitei <evizitei@instructure.com>
2015-04-10 13:46:49 +00:00
Clare 5e4b64cbd3 added missing course settings to xsd file
Adds a few newer course settings to the xsd file.

Fixes CNVS-19750

Test plan:

* Go to <your canvas instance>/xsd/cccv1p0.xsd
* Verify that the following elements are shown under the course element (should be the first section):
   * lock_all_announcements
   * public_syllabus
   * hide_distribution_graphs
   * allow_student_discussion_topics
   * allow_student_discussion_editing

Change-Id: I09170c9cd421a9516c059958a347a2c4d4e97986
Reviewed-on: https://gerrit.instructure.com/51937
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
2015-04-09 23:19:20 +00:00
Ethan Vizitei c4238b62e3 back off, gergich
Change-Id: Id6b537dbfe139a9e63079d2cc3d04a08ad72c8cd
Reviewed-on: https://gerrit.instructure.com/51966
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
Tested-by: Ethan Vizitei <evizitei@instructure.com>
2015-04-09 22:30:35 +00:00
Jon Willesen 8aca79402a don't create a calendar event with the "new" endpoint
fixes CNVS-19739

test plan:
 - go to calendar
 - click on a date, then click "more options" in the event
   creation dialog
 - don't save, just go back to calendar and open undated events
 - a new event should not have been created

Change-Id: I2eb2ae95f8a4137d450537f098eea2316066b82b
Reviewed-on: https://gerrit.instructure.com/51816
Tested-by: Jenkins
Reviewed-by: Mark Severson <markse@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: Jon Willesen <jonw@instructure.com>
2015-04-09 20:25:22 +00:00
Ethan Vizitei 4cd4557542 make gergich a better coworker
Change-Id: I9a04d12fc49f6e0095359e5dabbb5f5f18629692
Reviewed-on: https://gerrit.instructure.com/51939
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
Tested-by: Ethan Vizitei <evizitei@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
2015-04-09 19:57:14 +00:00
Cody Cutrer 84ea147a3e fix Workflow state to be idempotent when included/called multiple times
also remove unused meta stuff

Change-Id: I6a2e6d937bb8ba1064b6b2e7788c4c5adbf785e9
Reviewed-on: https://gerrit.instructure.com/51800
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
Tested-by: Jenkins
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-04-09 19:39:04 +00:00
Cody Cutrer 9834937c8c don't autorequire a bunch of gems that are rarely used
Change-Id: I09ed3686629b62849d392684d587f30cb2047013
Reviewed-on: https://gerrit.instructure.com/51853
Tested-by: Jenkins
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-04-09 18:47:50 +00:00
Ethan Vizitei 4a42cbbeda Update script/rlint to work on jenkins
Needed some better use of environment variables
to get the right SHA.  also shouldn't care about
dirty working directory on jenkins.

Change-Id: I85d4b9468f629217adcdd25039e44f26fd20b1d5
Reviewed-on: https://gerrit.instructure.com/51907
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
2015-04-09 17:40:41 +00:00
Clare 38238baceb include "Disable comments on announcements" setting in course copy
Adds the course_lock_all_announcements course attribute to course copy.

fixes CNVS-7289

Test plan:
* On course settings, select the option "Disable comments on announcements"
* Copy the course
* On the new course, verify that "Disable comments on announcements" is enabled

Change-Id: I4b7dee1adee2833b970cacc23971f9bb6fb3059e
Reviewed-on: https://gerrit.instructure.com/51881
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
2015-04-09 17:35:57 +00:00
Cody Cutrer 18b91f6b01 move account settings to a separate module
so that a plugin can define settings on account before account
is fully loaded

Change-Id: I41b538d152136e3b48452e8f48046a9caa882c13
Reviewed-on: https://gerrit.instructure.com/51773
Tested-by: Jenkins
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-04-09 17:03:11 +00:00
Cody Cutrer 8ed1edcbb1 spec: just truncate all tables, instead of known tables
avoid having to load all the gazillion models

Change-Id: I112fcc3c2230246187b490058c8199a8d572bddf
Reviewed-on: https://gerrit.instructure.com/51856
Tested-by: Jenkins
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-04-09 17:00:18 +00:00
Cody Cutrer d57b057ada reduce loading interdependencies from Context
by referencing symbols, just loading Context doesn't immediately cause
all the other stuff (and their dependents) to be loaded

Change-Id: I90e939ea03b628435ba77e2dc9ea886bf3f837c4
Reviewed-on: https://gerrit.instructure.com/51801
Tested-by: Jenkins
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-04-09 17:00:08 +00:00
Cody Cutrer f54f51694e make some module classes, so that they're easier to extend with a plugin
Change-Id: Ie38f6b6b90e2c99ab6abfb0c90dc5740cf9fe90f
Reviewed-on: https://gerrit.instructure.com/51781
Tested-by: Jenkins
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-04-09 16:57:37 +00:00
James Williams 2fe55cfdd6 fix new files for folders names including uri characters
test plan:
* should be able to use new files ui with folders
 that have characters like "+", "?", and "#" in them

fixes #CNVS-19616

Change-Id: Ic8291ceedb96b582d425ed67a645f2388ea63626
Reviewed-on: https://gerrit.instructure.com/51901
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
2015-04-09 16:18:46 +00:00
Cody Cutrer 47cced0c4d add headers to inform the client where they stand for throttling
test plan:
 * enable redis
 * watch your resposne headers - they should include
   X-Request-Cost and X-Rate-Limit-Remaining, and make
   sense (per-request cost, and remaining goes down
   after each request, but goes back up the longer
   you wait)

Change-Id: I15dd73d3e024a956fd908dad4f41c498fdad0514
Reviewed-on: https://gerrit.instructure.com/51529
Tested-by: Jenkins
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
2015-04-09 15:52:22 +00:00