Commit Graph

19023 Commits

Author SHA1 Message Date
Transifreq 3295340841 update pt-BR translation
Change-Id: I2e51cafb5295266e0ae7e0988a7121fb74128aa4
2016-01-26 05:23:25 -07:00
Transifreq a53fc476a3 update nl translation
Change-Id: Ie721dada31e11ce3fe1dc463665b2e37dc03db31
2016-01-26 05:20:31 -07:00
Transifreq 8d96758bf0 update nb translation
Change-Id: I5868beed3939e12c67df0e8d087d341b8eaa84bb
2016-01-26 05:19:25 -07:00
Transifreq 720086dbfd update hy translation
Change-Id: Iee3e9b2fb3fc19254bdc5fec1e12da7d9c4ffaf1
2016-01-26 05:15:45 -07:00
Transifreq 768fcec974 update fr translation
Change-Id: I7a3d65e89e7deacccc349d979a8144b1a0d27b43
2016-01-26 05:14:36 -07:00
Transifreq 51623acb08 update es translation
Change-Id: I40f5e598049bfa92b5340abb03c260c1eb04fbdd
2016-01-26 05:12:36 -07:00
Transifreq 4919e3c5c6 update en-GB translation
Change-Id: I5f15ee6453cb9ccaacddd5694c6089d37ff20bb4
2016-01-26 05:11:28 -07:00
Transifreq 1b877fa2af update ar translation
Change-Id: Ic25673d78293bba5e74db4bb3b2384a140d9328e
2016-01-26 05:07:39 -07:00
Cody Cutrer 3d6658f0ce accept t/f for boolean in Api
and document boolean parameter formats

Change-Id: I70b295e93c6f19b471bfc6f4b31f3a7c3642d8f4
Reviewed-on: https://gerrit.instructure.com/70861
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2016-01-26 02:50:09 +00:00
Simon Williams 6a39d7a0c3 spec: fix coffeescript module namespaces
in qunit, tests run in the namespace of the last module call that
happened. so if you say:

  module('module1');
  test('test1', function() { ... });

then test1 runs in the namespace of module1.  you can pass module1 an
object as a second argument which are functions that will be defined in
the module namespace, and some modules (like setup and teardown) have
special functionality.  unfortunately, you can also pass a test in the
module object and it will happily run, but in the namespace of the
previous module definition.

this is all exacerbated by coffeescript! because in coffeescript:

  module 'module1'
  test 'test1' -> ...

is correct, but

  module 'module1',
  test 'test1' -> ...

runs the test in the previous namespace.  notice the difference? ONE
COMMA! I did an audit of these instances and fixed as many as I could
fine, as well as one legit test issue that came out of fixing them.

Change-Id: I79ea0c673df49e6c09151b50cf765ed9ec760a0d
Reviewed-on: https://gerrit.instructure.com/70950
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
Tested-by: Jenkins
2016-01-26 02:48:26 +00:00
Jon Jensen 9c0b4c999d spec: simplify login/session helper methods
this rabbit hole refactor stems from an observation that destroy_session
could be a no-op (depending on the previous spec), and typically wasn't
useful/necessary. remove lots of other unnecessary stuff, and delineate
more clearly between fake and frd logins

test plan:
1. modified specs (including P2) should all pass
2. all other specs should pass

Change-Id: I8cda5d81f3797c3bb39b98f80c846d346ea36150
Reviewed-on: https://gerrit.instructure.com/70863
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2016-01-26 02:32:01 +00:00
Jon Jensen 693641626e spec: randomize spec run order
this should make it easier to get past ordering issues during the rerun
phase and retriggers. conversely, this will also expose more flaky tests
lurking in the suite, so we can fix them

test plan:
1. specs should pass
2. it should still say "Randomize with seed N"
3. it should actually be randomized

Change-Id: Ie109ec79290aa32727d8027ca0ae9cb3e07ce8ef
Reviewed-on: https://gerrit.instructure.com/70891
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2016-01-25 23:01:21 +00:00
MFairbourn 43c8c25b2a spec: fix fragile spec in speedgrader_discussion_submissions_spec
Test Plan:
-Code review
-Specs pass

Change-Id: I73ead75c816d68faba45fc556d961d4ec2dcdbb2
Reviewed-on: https://gerrit.instructure.com/70942
Reviewed-by: Pedro Fajardo <pfajardo@instructure.com>
Tested-by: Jenkins
Product-Review: Matt Fairbourn <mfairbourn@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
2016-01-25 21:41:35 +00:00
James Williams 6375efe760 rails 4.2: use ActiveRecord::Migrator.migrations
also fixes migrations_paths to be more in line with
default rails behavior

refs #CNVS-26056

Change-Id: Ifce7fce1f0e8e2bb3d9719e952694227816ea861
Reviewed-on: https://gerrit.instructure.com/70929
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2016-01-25 21:22:26 +00:00
MFairbourn f7e1b26f15 spec: fixing a fragile outcome group spec
Test Plan:
-Specs should pass
-Code review

Change-Id: I9e5835dfdb193c726f03aa72d4d378a1b84f6491
Reviewed-on: https://gerrit.instructure.com/70934
Reviewed-by: Pedro Fajardo <pfajardo@instructure.com>
Tested-by: Jenkins
Product-Review: Matt Fairbourn <mfairbourn@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
2016-01-25 18:36:33 +00:00
MFairbourn fe7f893ea5 spec: Checks discussion on main page in seperate test
Test Plan:
-Specs should pass
-Code Review

Change-Id: Ifff8b0e7c38d8fdd55e95dc34844a438be083ffb
Reviewed-on: https://gerrit.instructure.com/70902
Tested-by: Jenkins
Reviewed-by: Pedro Fajardo <pfajardo@instructure.com>
Product-Review: Pedro Fajardo <pfajardo@instructure.com>
QA-Review: Pedro Fajardo <pfajardo@instructure.com>
2016-01-25 16:52:45 +00:00
Transifreq 2443780b35 update ru translation
Change-Id: Idac65cb9ad3ee0a49e588d558c78fe75a6993392
2016-01-25 05:23:40 -07:00
Transifreq d6c4ed2dd3 update ja translation
Change-Id: I9987ca0d8b8db8b7a1bbf652ca5da9a27de37873
2016-01-25 05:16:26 -07:00
Transifreq 460e3dd465 update hy translation
Change-Id: Iad34090dbd2b3fd9a724cf306b50cd5c74c4e440
2016-01-25 05:15:14 -07:00
Transifreq ddaf772da4 update en-AU translation
Change-Id: Ie1a6d270f368dcda61a73b291b5a1e1e14f8d2bc
2016-01-25 05:10:33 -07:00
Transifreq 602fc1a3d1 update de translation
Change-Id: Ie778aa1259506d825e79a1fe03aeb0e3f601ab6d
2016-01-25 05:09:26 -07:00
Transifreq 9df83d4350 update ru translation
Change-Id: I42a35253e29b3c35b0b152f33734b03982571bf9
2016-01-24 05:24:40 -07:00
Transifreq 15195ad9c7 update nb translation
Change-Id: I7c2b62601e5373a6412bd2cd4af7f9f0458067c7
2016-01-24 05:19:53 -07:00
Transifreq 9a54f99637 update mi translation
Change-Id: If51bc301662624381e6c15ad9d051693c2b1b651
2016-01-24 05:18:44 -07:00
Transifreq 18b152f565 update hy translation
Change-Id: Ib04a7f2767a6a839eb0d9a0c8fed9c3e4cd97bf1
2016-01-24 05:16:00 -07:00
Transifreq 4cce4dd77e update ar translation
Change-Id: Ibc7bcd82aaade5c9049cfacec1975c779c11c172
2016-01-24 05:08:43 -07:00
Brian Palmer d2410941ef move user_id to dedicated errors report field
closes CNVS-26758

Sentry has a dedicated field for this now, opening up additional
functionality such as a count of affected users for each error.

test plan: enable sentry and trigger an in-request error, the error
report will now include your user id in a separate "user" section.

Change-Id: Ia58d54b923f7daa67e2ce060c02f0cfa0494387d
Reviewed-on: https://gerrit.instructure.com/70918
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins
Product-Review: Brian Palmer <brianp@instructure.com>
QA-Review: Brian Palmer <brianp@instructure.com>
2016-01-23 20:07:19 +00:00
Brian Palmer 38e69d175c pass the canvas release to sentry
closes CNVS-26745

We were already passing it as a tag, but sentry now has a native release
field that provides additional functionality, so pass it there as well.
We'll keep the tag because it's still nice for searching.

Change-Id: I5447ecabf3cc7246ebc36abd05829320d8d449a7
Reviewed-on: https://gerrit.instructure.com/70889
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins
Product-Review: Brian Palmer <brianp@instructure.com>
QA-Review: Brian Palmer <brianp@instructure.com>
2016-01-23 17:56:38 +00:00
Transifreq b3fa0c35ae update pt-BR translation
Change-Id: I1b75b0b10ce1dba0c795997dc6d3be8c33915236
2016-01-23 05:24:36 -07:00
Transifreq 7f6653950a update pt translation
Change-Id: I94dffe4ec24623a953e0d027f6c6976c4f57f9fc
2016-01-23 05:23:29 -07:00
Transifreq 69781c82db update nb translation
Change-Id: I1afae2eca79eef20393aa3b167118ddc2820ff2a
2016-01-23 05:20:34 -07:00
Transifreq d121ed8ed9 update mi translation
Change-Id: I0c8b307e86ad905418e59a4669814e83d546b0ad
2016-01-23 05:19:25 -07:00
Transifreq ed97b760c7 update hy translation
Change-Id: I437f0fdd500c3dbfd4be928fcc21162b6910ee60
2016-01-23 05:16:37 -07:00
Transifreq 3e82e2c749 update fr translation
Change-Id: If3ab315d41f03c1cd518277189e1556f917a9344
2016-01-23 05:15:27 -07:00
Transifreq a80753cb18 update ar translation
Change-Id: Iba71bb85665dd4ec35175db3669f3f5a3de5b832
2016-01-23 05:09:03 -07:00
Ethan Vizitei f5fab37bd6 spec: stabilize groups_teacher_spec
refs CNVS-25916

this spec fails reliably when not all the events have re-bound
yet after switching the leader position of the student.  Adding
a normal ajaximations reliably solves the fragility in local
and jenkins node tests.

TEST PLAN:
 1) groups_teacher_spec:167 should stop being the most common
    fragile spec

Change-Id: I68d39a0566b183d3fb81c6eded599145fda9fc67
Reviewed-on: https://gerrit.instructure.com/70901
Reviewed-by: Jon Jensen <jon@instructure.com>
Tested-by: Jenkins
Product-Review: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
2016-01-23 03:06:01 +00:00
Ethan Vizitei 94cee9db6a bump switchman version
refs CNVS-26368

the latest switchman version handles connection
disruptions during the re-caching of the default
shard gracefully

TEST PLAN:
 1) no behavior should change
 2) load up a sharded app
 3) force a db exception just as "establish_connection" is
     being called for database reconnection after a process
     fork
 4) the "Shard.default" method should return the
     previously cached default shard, not the
     DefaultShard.instance

Change-Id: I04c4905a8b2c662473e7e55a38d0b7b2987e343b
Reviewed-on: https://gerrit.instructure.com/70757
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>
2016-01-23 00:23:49 +00:00
Ethan Vizitei eb7d2a5c5e remove secondary bundle extension mechanism
closes CNVS-26657

Most bundles are extended in plugins with the glue
code method, this second method was only used
by one plugin.  Now that we've
ported it to the glue code method, we can remove
this extension mechanism entirely.

Change-Id: Ice1ad4a3308779f12a85b560f624203fdc09d63d
Reviewed-on: https://gerrit.instructure.com/70755
Reviewed-by: Jon Jensen <jon@instructure.com>
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Tested-by: Jenkins
Product-Review: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
2016-01-22 22:59:01 +00:00
Ryan Taylor 55557f7fa1 Redesign the quiz_stats page for a11y/UI reasons
This rearranges and redefines much of the user experience on this page.

The score distribution chart is now rendered in HTML from React. Other
charts on the page have been rearranged or tweaked to match the new UI
design.

The new table contains all the screenreader data required, there are no
longer tooltips to be rendered on each score column (now a horizontal bar).
The bar chart is not read to screenreaders.
The bar chart indicates correctness by more than color alone.
The donut chart contains "N% responded correctly" in the center
The donut chart is not read by screenreaders, other than a brief
explanatory message.

Closes CNVS-25737
Closes CNVS-25738

Test Plan:

- Full test of quiz stats for both a11y and basic functionality
- Confirm that webpack and require_js builds are working
- Make sure it looks good!

Change-Id: Ie3f1a2ae99e7b2eea56e97e1cb5b6d3f51b83792
Reviewed-on: https://gerrit.instructure.com/70164
Tested-by: Jenkins
Reviewed-by: Davis McClellan <dmcclellan@instructure.com>
QA-Review: Michael Hargiss <mhargiss@instructure.com>
Product-Review: Jason Sparks <jsparks@instructure.com>
2016-01-22 22:22:30 +00:00
Davis McClellan 5d13f410e4 Check if a reviewer is the same person as the student
fixes CNVS-23960

test plan:
- Create a peer review assignment with a rubric
- Assign the review to the same student who submitted it via the api
- Ensure that api does not allow this to happen
  (should get a 400 error)

Change-Id: I0cdd3a7856b21c77315f060ef4ffbbd53b32b25e
Reviewed-on: https://gerrit.instructure.com/70498
Tested-by: Jenkins
Reviewed-by: Ryan Taylor <rtaylor@instructure.com>
QA-Review: Michael Hargiss <mhargiss@instructure.com>
Product-Review: Davis McClellan <dmcclellan@instructure.com>
2016-01-22 22:18:41 +00:00
James Williams e2ea8435c7 remove remove_index reference from plugin
Change-Id: I01094e16974c2f2ecaadef15e16666097131a23b
Reviewed-on: https://gerrit.instructure.com/70865
Tested-by: Jenkins
Product-Review: Steven Burnett <sburnett@instructure.com>
QA-Review: Steven Burnett <sburnett@instructure.com>
Reviewed-by: Jonathan Featherstone <jfeatherstone@instructure.com>
2016-01-22 21:37:05 +00:00
Alex Boyd f91d1bc9c1 spec: fix spec failures introduced by the to-do list rewrite
Fixes CNVS-26697

Test plan N/A

Change-Id: Iab7225c5f207476b47d65198958d96f7288f1ab4
Reviewed-on: https://gerrit.instructure.com/70844
Reviewed-by: Joel Hough <joel@instructure.com>
Tested-by: Jenkins
Product-Review: Alex Boyd <aboyd@instructure.com>
QA-Review: Alex Boyd <aboyd@instructure.com>
2016-01-22 20:48:24 +00:00
Ryan Shaw d937797668 don't say "New UI" is "beta"
fixes: CNVS-26648

test plan:
you should not see "beta" next to the New UI feature option

Change-Id: Ifcac554dc860f5ad4cc9b90f22f1e0eff2b3484a
Reviewed-on: https://gerrit.instructure.com/70725
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Colleen Palmer <colleen@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
2016-01-22 20:37:58 +00:00
James Williams c06f95d270 rails 4.2: fix controller, integration and view specs
refs #CNVS-26056

Change-Id: I854a085afc6bff640c814098956344efff65f1a7
Reviewed-on: https://gerrit.instructure.com/70658
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2016-01-22 20:01:11 +00:00
Jonathan Featherstone 0db9ae3260 Add notification failure processor
Using the new notification_service allows us to provide more specific
failure feedback to canvas.  When we enqueue a message to the
notification service, we pass along the canvas global message id.  If
the message fails to send, we enqueue a failure message to a
"notification_failure" sqs queue, and reference the global message id.
This allows us to write failure information off to the canvas message
object and put it into an error state.

Test Plan:
  * Start local fake_sqs environment

If using docker
`$ docker pull feathj/fake-sqs`
`$ docker run -it -p 9494:9494 -e VIRTUAL_HOST=sqs.docker feathj/fake-sqs`

If running native
`$ gem install fake_sqs`
`$ fake_sqs`

  * Create `<canvas>/config/notification_failures.yml` file and place
    the following in it:

If using docker
```
development:
  use_ssl: false
  sqs_endpoint: sqs.docker
  sqs_port: 9494
  access_key_id: access key id
  secret_access_key: secret access key
```

If running native
```
development:
  use_ssl: false
  sqs_endpoint: localhost
  sqs_port: 4568
  access_key_id: access key id
  secret_access_key: secret access key
```

  * Create a canvas message to put in error state
    * Login to canvas
    * Create new conversation message
    * Open rails console and confirm that message.state is not
      "transmission_error", also take note of message id
  * Start canvas jobs, from canvas-lms directory:
`$ bundle exec script/delayed_job run`

  * Manually enqueue failure message to fake_sqs
```
require 'yaml'
require 'aws-sdk'
require 'aws-sdk-core'
require 'aws-sdk-resources'
require 'aws-sdk-v1'

client = AWS::SQS::Client.new(
  use_ssl: false,
  sqs_endpoint: '<YOUR_SQS_HOST>',
  sqs_port: <YOUR_SQS_PORT>,
  access_key_id: 'access key id',
  secret_access_key: 'secret access key'
)
client.create_queue(queue_name: 'notification-service-failures') rescue
nil
queue_url = client
  .list_queues[:queue_urls]
  .reject { |queue| /dead/i.match(queue) }
  .detect { |queue| /notification-service-failures/.match(queue) }

puts queue_url
puts client.send_message(queue_url: queue_url, message_body: {
  'global_id' => <YOUR_MESSAGE_ID>,
  'error' => 'the message failed to send amigo'
}.to_json)
```
  * Verify that message is state is set to "transmission_error" and the
    transmission_errors field has your error message

closes CNVS-26442

Change-Id: Ic379142727d4e186ae3032241caca1b1e4c5e074
Reviewed-on: https://gerrit.instructure.com/70447
Reviewed-by: Christina Wuest <cwuest@instructure.com>
Reviewed-by: Steven Burnett <sburnett@instructure.com>
Tested-by: Jenkins
QA-Review: Heath Hales <hhales@instructure.com>
Product-Review: Jonathan Featherstone <jfeatherstone@instructure.com>
2016-01-22 19:23:55 +00:00
Cody Cutrer fe4a9d74ca bump rake
Change-Id: I73cf6b9d85ff49214b3849551770b5c0c16c0db6
Reviewed-on: https://gerrit.instructure.com/70690
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2016-01-22 17:58:46 +00:00
James Williams 9531a37afd rails 4.2: fix scope.new calls
scope.new no longer keeps the record out of the association

refs #CNVS-26056

Change-Id: I5867253645c1020cde8853ccc389a0730c241652
Reviewed-on: https://gerrit.instructure.com/70788
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2016-01-22 16:54:37 +00:00
James Williams ca36398dbf rails 4.2: bump folio-pagination
refs #CNVS-26056

Change-Id: I1ad89e2d9922e9994937963b0ad783eccebc5bc5
Reviewed-on: https://gerrit.instructure.com/70759
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2016-01-22 16:16:29 +00:00
Cody Cutrer 790664445b rename distinct to distinct_values
to no longer hide the Rails 4.0+ method of the same name

Change-Id: I979fd002c9bb6b168d3d8fd9998545c2d217e68d
Reviewed-on: https://gerrit.instructure.com/70806
Tested-by: Jenkins
Reviewed-by: James Williams  <jamesw@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2016-01-22 14:51:17 +00:00
James Williams 4f9a25a79c rails 4.2: fix migration methods + unhack things
fixes index_exists?, add_index, remove_index, and
 add_foreign_key method calls in migrations

unhacks remove_index to fail silently if the index
 doesn't exist (and removes some unnecessary remove_index calls)

also fixes migration specs for rails 4.2

refs #CNVS-26056

Change-Id: Id878aa4cb871fc5ae6d0d4e7c6e8cfe1c5d88d35
Reviewed-on: https://gerrit.instructure.com/70692
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2016-01-22 14:17:36 +00:00