Commit Graph

26591 Commits

Author SHA1 Message Date
Pam Hiett b01e7e7c55 Resolve CSS TODOs: _ic-super-toggle.scss
Fixes: CNVS-38646

test plan:
- as an admin navigate to the account theme editor
- select *any* of the default themes
- within the preview pane of theme editor - scroll down to
  "switch-style checkbox"
- the focus state has been updated - example of new look:
  https://screencast.com/t/IM2oRSLdEpO

Change-Id: Ifaa47fa3b5dae931b4587b654853a4f6e0347bfc
Reviewed-on: https://gerrit.instructure.com/122498
Tested-by: Jenkins
Reviewed-by: Chris Hart <chart@instructure.com>
Product-Review: Chris Hart <chart@instructure.com>
QA-Review: Dan Sasaki <dsasaki@instructure.com>
2017-08-14 17:00:46 +00:00
Pam Hiett 9165c0a0ff Resolve CSS TODOs: _ic-range-input.scss
Fixes: CNVS-38645

test plan:
- as an admin navigate to the account theme editor
- select *any* of the default themes
- select the "watermakr and other images" section
- the watermark opacity slider uses the "range-input"
  styles... move the slide back and forth to see the
  updated focus & active styles

  example of new styles: https://screencast.com/t/tlnqb5eN

Change-Id: I58bcba9d1c62f79697a8b6c8323df681e7e893f6
Reviewed-on: https://gerrit.instructure.com/122493
Tested-by: Jenkins
Reviewed-by: Chris Hart <chart@instructure.com>
Product-Review: Chris Hart <chart@instructure.com>
QA-Review: Dan Sasaki <dsasaki@instructure.com>
2017-08-14 17:00:36 +00:00
Chris Hart 9c544bfc5d Fix missing peer review reminder button icon
Fixes: CNVS-38371

Test plan:
- As a teacher/admin, create a course assignment or
  discussion that has peer reviews
- As a student in that same course, complete the
  assignment
- As a teacher/admin, go to the assignment, then click
  `Peer Reviews` in the right sidebar
- Assign a second student to peer review the assignment
  completed by the first student
- Reload the page, then hover over the incomplete peer
  review under the second student's name
- Confirm there is a bell/alert button now showing to
  remind the student he/she needs to complete the
  peer review:

  https://cl.ly/2P033s2w3L2O

Change-Id: I123be5c4bd9001e89a53c24a2924d5e2adbb0920
Reviewed-on: https://gerrit.instructure.com/122016
Tested-by: Jenkins
Reviewed-by: Stephen Jensen <sejensen@instructure.com>
QA-Review: Dan Sasaki <dsasaki@instructure.com>
Product-Review: Chris Hart <chart@instructure.com>
2017-08-14 17:00:04 +00:00
Chris Hart b039529663 Resolve brandable CSS TODOs: _ic-forms.scss
Fixes: CNVS-38644

Test plan:

- Code reviewer: confirm Canvas CSS and assets compile
  ok.

- All reviewers:

  - Confirm that in normal contrast, the newer Canvas
    CSS form inputs have the following :focus state
    (see /styleguide):
    https://cl.ly/3B3j1I3M1I1H

  - Confirm that in HIGH contrast, the newer Canvas
    CSS form inputs have the following :focus state
    (see /styleguide):
    https://cl.ly/0a473P412824

Change-Id: Iaa791c20f71fa4ce2f7b8ffdcd4eac3665f71768
Reviewed-on: https://gerrit.instructure.com/122495
Tested-by: Jenkins
Reviewed-by: Pam Hiett <phiett@instructure.com>
QA-Review: Dan Sasaki <dsasaki@instructure.com>
Product-Review: Pam Hiett <phiett@instructure.com>
2017-08-14 16:59:50 +00:00
James Williams 1c516e9eb7 master courses: allow generated quiz questions when locked
test plan:
* create a question bank in a blueprint course
 with a multiple choice question
* create a quiz with a quiz group linked to
 the question bank
* lock the quiz
* sync to an associated course
* should be able to preview and take the quiz
 and have answers scored

closes #CNVS-38629

Change-Id: Iab770823411ad68dcf293ba2dc53c08bdce729f0
Reviewed-on: https://gerrit.instructure.com/122571
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: David Mirabile <dmirabile-c@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2017-08-14 16:12:06 +00:00
Clay Diffrient 719e29156d Add initial dashboard planner widget
closes FALCOR-505
closes FALCOR-554

Test Plan:
  - Enable the planner feature flag
  - Create some To Do items from the planner
  - Add some other items that have due dates or "to do" dates
  - These items should show in the widget
    NOTE: The widget only shows when on the card view or recent activity views
          of the dashboard
  - Click the X icon on one of the items, it should remove the item.
  - Click the title of a non-todo note item and it should take you to the
    show page for that item.
  - See if show more button shows up only when you have more then 5 todos
  - Click show more buttons shows all the todos

Some things to note for future changes this only pulls first 10
for now but we will add pagination and day limiting in the future

Change-Id: Ie1babd4de190bcfb62df87e40676d9c9293feed2
Reviewed-on: https://gerrit.instructure.com/118917
Tested-by: Jenkins
Reviewed-by: Jon Willesen <jonw+gerrit@instructure.com>
QA-Review: David Mirabile <dmirabile-c@instructure.com>
Product-Review: Aaron Kc Hsu <ahsu@instructure.com>
2017-08-14 16:05:25 +00:00
James Williams 7c18d51f73 spec: remove add_role_id_columns_spec
messes up sometimes and it's not really necessary anymore

Change-Id: I20c8429c323048774f4289996787734ef376c085
Reviewed-on: https://gerrit.instructure.com/122605
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
Tested-by: Jenkins
2017-08-14 16:03:18 +00:00
Spencer Olson 548e170189 add missing pills to individual gradebook
closes GRADE-146

Test Plan:
1. Go to the Individual Gradebook and select a Student + Assignment for
   a missing submission.
2. Verify there is a 'MISSING' label in the 'Grading' section.

Change-Id: Ie2581d1c2e154b2b22bd12f59e4996f729dcb772
Reviewed-on: https://gerrit.instructure.com/122233
Tested-by: Jenkins
Reviewed-by: Jeremy Neander <jneander@instructure.com>
Reviewed-by: Neil Gupta <ngupta@instructure.com>
QA-Review: KC Naegle <knaegle@instructure.com>
Product-Review: Matt Goodwin <mattg@instructure.com>
2017-08-14 15:45:17 +00:00
James Williams d11450e8fb master courses: ignore deleted courses in account page counts
test plan:
* add an associated course to a blueprint course
* delete the associated course
* the accounts index shouldn't say "1 associated course"

closes #CNVS-38562

Change-Id: Ifac1b8e999f2cce76585f09ec5964ba189fac105
Reviewed-on: https://gerrit.instructure.com/122436
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: David Mirabile <dmirabile-c@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2017-08-14 15:37:38 +00:00
Cody Cutrer 622ed3314a require yarn, not npm
Change-Id: I2dbb037d4cbb0de7952dde19196c6937d18924e9
Reviewed-on: https://gerrit.instructure.com/122554
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2017-08-14 15:27:14 +00:00
James Williams 5418ceed1f create stream items in slices
Change-Id: I4421d13c6905265f8565d16fd6ca001ba86f3f32
Reviewed-on: https://gerrit.instructure.com/122444
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2017-08-14 14:46:57 +00:00
Spencer Olson 1e838fce6f fix stale grading_period_id on submissions
When 1) a grading period is deleted, or 2) a grading period's start
or end date changes, we now update the cached grading_period_id on
submissions in the course.

closes GRADE-177

Test Plan:

1. At the account level, create two grading periods. For simplicity
   sake, let's make them full-year 2016 and 2017.
2. Create a course under that account with at least one student, and
   create an assignment without a due date.
3. Enter a rails console and verify the submissions created for the
   assignment have the grading period id for grading period "2017".

   assignment = course.assignments.find(<the-assignment-id>)
   submission = assignment.submissions.find_by(user_id: <a-student-id>)
   submission.grading_period_id # should match the id for "2017" period

4. Update the "2017" grading period so that its start date is Jan 1,
   2015, and its end date is Dec 31, 2015.
5. Enter a rails console and verify the submission from step 3 has had
   its grading_period_id updated to reflect the id for grading period
   "2016".

   submission.reload.grading_period_id # should match the id for "2016"

6. Delete the "2016" grading period (so that the only the "2017" grading
   period remains, whose dates span Jan-Dec of 2015).
7. Enter a rails console and verify the submission from step 3 has had
   its grading_period_id updated to reflect the id for grading period
   "2017".

   submission.realod.grading_period_id # should match the id for "2017"

Change-Id: Ideec6a1f22801593eaaa94e829b68dfc95f170e8
Reviewed-on: https://gerrit.instructure.com/122295
Reviewed-by: Neil Gupta <ngupta@instructure.com>
Tested-by: Jenkins
Reviewed-by: Jeremy Neander <jneander@instructure.com>
QA-Review: KC Naegle <knaegle@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
2017-08-14 14:43:30 +00:00
James Williams b8eb9b04d2 call translated license names in a lambda
Change-Id: Ibdbca9847de64e79f472df8d3ff886e3b9c4a4ba
Reviewed-on: https://gerrit.instructure.com/122503
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2017-08-14 13:03:04 +00:00
Rob Orton 570d1b32a3 use distinct instead of uniq
refs CNVS-38622

Change-Id: I4b25d337f79a81a0a2829eea05d0690252fd620c
Reviewed-on: https://gerrit.instructure.com/122560
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
2017-08-13 23:05:48 +00:00
Cody Cutrer 132f414813 rails 5: only include well-known zones in the US time zone list
refs CNVS-38321

test plan:
 * go to account settings
 * open the time zone dropdown
 * there shouldn't be a bunch of zones at the top without translations

Change-Id: Ib3d641f641c0773e510eb36f3e85fba3c257a036
Reviewed-on: https://gerrit.instructure.com/122163
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2017-08-12 14:06:53 +00:00
Cody Cutrer 32b0d11466 rails 5: add zurich to en.yml
it's a new named time zone

fixes CNVS-38321

Change-Id: Ie5424a164ad3e67d34a20c5d33850efb8c2886ec
Reviewed-on: https://gerrit.instructure.com/122177
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Reviewed-by: Ryan Shaw <ryan@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2017-08-12 14:06:31 +00:00
Transifreq b57439843b update zh-Hans translation
Change-Id: I59b7dcd19b3d13d9fcf1e08ebf02a56f1cc68127
2017-08-12 05:28:46 -06:00
Han Yan 9aef896a9b Not Published label on quiz creation receives focus
closes QUIZ-2232

test plan:
- As a teacher, navigate to the Assignments page of a course
- Click on the "+Quiz/Test" button
- Tab to the cog menu in the top right corner
- "Not Published" label should not be tabbed

Change-Id: Icb00788f0df73b59819e6c09bdd66dfc0041d628
Reviewed-on: https://gerrit.instructure.com/121847
Tested-by: Jenkins
Reviewed-by: John Corrigan <jcorrigan@instructure.com>
QA-Review: Omar Khan <okhan@instructure.com>
Product-Review: Han Yan <hyan@instructure.com>
2017-08-12 03:33:43 +00:00
Augusto Callejas 3e88137fd5 Bump academic_benchmarks version
closes OUT-1431

notes:
  this upgrade is necessary to avoid imports from failing on Rails 5.

test plan:
  - confirm that importing standards from Academic Benchmarks v3 succeeds

Change-Id: I8daac14a2ec6100d5cc97d5a76433808d742bc44
Reviewed-on: https://gerrit.instructure.com/122487
Tested-by: Jenkins
Reviewed-by: Michael Brewer-Davis <mbd@instructure.com>
QA-Review: Andrew Porter <hporter-c@instructure.com>
Product-Review: Michael Brewer-Davis <mbd@instructure.com>
2017-08-11 22:02:21 +00:00
James Williams c5d2e625db create wiki pages directly on contexts
Change-Id: I2139b75e78b02fba2232cc78ccce527b20eea3da
Reviewed-on: https://gerrit.instructure.com/122325
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2017-08-11 20:46:17 +00:00
James Williams 858f509d54 spec: don't recreate roles on every spec
also remove a method that doesn't do anything

should make things faster maybe?

Change-Id: Ie3849b6faa539317338c6f55a0f7be86b8a20c3d
Reviewed-on: https://gerrit.instructure.com/122440
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2017-08-11 20:34:30 +00:00
Andrew Katsanevas a0757c75ed add a role filter to User Search
add the ability to select a role in User Search and
only see users enrolled as that role
closes CNVS-33428

test plan:
- turn on Account Course and User Search feature flag
- go to /accounts/1/search/people
- make sure the new role selector works
- make sure the correct users show up
- make sure keyboard navigation/a11y are good

Change-Id: Ib0620deb4618e06ce202ab41981e1301b3c8d256
Reviewed-on: https://gerrit.instructure.com/119365
Tested-by: Jenkins
Reviewed-by: Ryan Shaw <ryan@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Andrew Katsanevas <akatsanevas@instructure.com>
2017-08-11 20:05:21 +00:00
hh- 13aa70758d spec: 3263155 complete item
Change-Id: Ifc4c26a888759f849cb1175efa98b6aa53eca791
Reviewed-on: https://gerrit.instructure.com/119640
Tested-by: Jenkins
Reviewed-by: Robert Lamb <rlamb@instructure.com>
Product-Review: Robert Lamb <rlamb@instructure.com>
QA-Review: Robert Lamb <rlamb@instructure.com>
2017-08-11 19:41:07 +00:00
Simon Williams 94e3190f8b don't explode announcements when request format is */*
the issue is that our js_env helper short circuits if request.type.html?
is false, which apparently it is for */*, even though respond_to then
resolves it to html.

fixes CNVS-38332

test plan:
- request the announcements index page, passing a */* accept header
- it should respond without error

Change-Id: Ib9e2f48b5ff6419a1de5ef2af76b30a54b5c92db
Reviewed-on: https://gerrit.instructure.com/120096
Reviewed-by: James Williams  <jamesw@instructure.com>
Tested-by: Jenkins
QA-Review: Heath Hales <hhales@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
2017-08-11 18:11:08 +00:00
Rob Orton f5d19cb690 use distinct instead of uniq
fixes CNVS-38622

Change-Id: Ic024761a34dea2b1e3eeaea9cb03eaeffa127bb4
Reviewed-on: https://gerrit.instructure.com/122372
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Tucker McKnight <tmcknight@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
2017-08-11 17:53:21 +00:00
Jon Jensen 9a3ad8aa94 spec: don't let parallel workers stomp each others' cassandras
at some point we started loading/caching the cassandra config before
forking, which made every worker share the same keyspaces, causing
various specs to fail during the initial run

test plan:
* the build should be more stable

Change-Id: I804178152c165d72f3665ce1103c8af4736a9aa6
Reviewed-on: https://gerrit.instructure.com/122252
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2017-08-11 17:46:19 +00:00
Jon Jensen 2a93fa8a91 spec: fix brittle spec
Change-Id: I93e7764dc0a400ab0e422b824c6cb954dc135351
Reviewed-on: https://gerrit.instructure.com/122466
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2017-08-11 17:45:52 +00:00
James Williams 4b9838eba0 preload content tags in course progress
Change-Id: Ic66c2b859214bc9ab3f09f873f4deb2deab2637f
Reviewed-on: https://gerrit.instructure.com/122131
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2017-08-11 17:45:47 +00:00
Simon Williams f9d0cb4e7e optimize scheduler notifications
don't need to serialize a whole user AR object just for a name

closes CNVS-38377

test plan: make sure all scheduler notifications from appointment groups
still work

Change-Id: Ie2343b90ec189ca30ce9ae2f9dd35a529e57d9ff
Reviewed-on: https://gerrit.instructure.com/120519
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
Tested-by: Jenkins
2017-08-11 17:41:54 +00:00
Ed Schiebel ff9e6c10db Fix discussion index page icons
fixes: CNVS-38329

test plan:
  - create a master course with a discussion and sync to a child course
  - go to the master course discussions page
  > expect the lock, publich and subscribe buttons to be on a single
  > line
  - go to the child course's discussions page
  > ditto

Change-Id: I5b0109f25776bc7cca5c238399391e34ba1d5e2c
Reviewed-on: https://gerrit.instructure.com/120080
Reviewed-by: Steven Burnett <sburnett@instructure.com>
QA-Review: David Mirabile <dmirabile-c@instructure.com>
Product-Review: Matt Goodwin <mattg@instructure.com>
Tested-by: Jenkins
2017-08-11 15:35:04 +00:00
Cameron Matheson e083044059 graphql: make submission connection student ids non-nullable
Change-Id: I41196db448735c0df515d24bd3328523c96f24cb
Reviewed-on: https://gerrit.instructure.com/122349
Tested-by: Jenkins
Reviewed-by: Jonathan Featherstone <jfeatherstone@instructure.com>
Product-Review: Cameron Matheson <cameron@instructure.com>
QA-Review: Cameron Matheson <cameron@instructure.com>
2017-08-10 20:39:48 +00:00
Cameron Matheson 1606e9558b update graphiql
Change-Id: Ib5f5152ed915918ab95efe0fdf1fc93b8ca12eb9
Reviewed-on: https://gerrit.instructure.com/122348
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Tested-by: Jenkins
Product-Review: Cameron Matheson <cameron@instructure.com>
QA-Review: Cameron Matheson <cameron@instructure.com>
2017-08-10 20:37:39 +00:00
Neil Gupta 6a7d79f063 add external tool url to submission json
fixes GRADE-75

test plan:
* Create a Quizzes.Next quiz
* Complete the quiz as 2 different students
* As the teacher, access the quiz in speed grader
* Adjust the fudge points for the first student
* Navigate to the second student and then back to the first student
* The quiz should still be visible

Change-Id: I4cd9d743f8a2c0c5b511f8f5615c8ed0edc81991
Reviewed-on: https://gerrit.instructure.com/122041
Reviewed-by: Brian Park <brian@siimpl.io>
Reviewed-by: Shahbaz Javeed <sjaveed@instructure.com>
Tested-by: Jenkins
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
2017-08-10 20:11:50 +00:00
James Williams 6c7502e933 rails 5.1: fix migrations
Change-Id: I9a8764caf8e6d435a79b1b61db5526258ace63a2
Reviewed-on: https://gerrit.instructure.com/122358
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2017-08-10 19:54:01 +00:00
Jeremy Putnam bc3c5f7d95 spec: add student context card student avatar check
Change-Id: Iaabddc7a6a2ae95f7c1959c0f13c10ca9dbfe803
Reviewed-on: https://gerrit.instructure.com/120734
Tested-by: Jenkins
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Reviewed-by: Tucker McKnight <tmcknight@instructure.com>
Product-Review: Tucker McKnight <tmcknight@instructure.com>
2017-08-10 19:29:44 +00:00
Simon Williams 9a49b30067 a few more optimizations to CourseProgress#to_json
this will help speed up ContextModuleProgression#evaluate a bit more.

test plan: basic regression test of evaluate (tests should pass)

Change-Id: Id85c6c182a59b4f6afeb91e6a52137fd75d9518d
Reviewed-on: https://gerrit.instructure.com/122169
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
QA-Review: Simon Williams <simon@instructure.com>
2017-08-10 17:26:40 +00:00
hh- be94169429 spec: C927788 don't mark valid link as invalid
Change-Id: I7356030404414be737c21d319e985bc9b5068be0
Reviewed-on: https://gerrit.instructure.com/122249
Tested-by: Jenkins
Reviewed-by: David Mirabile <dmirabile-c@instructure.com>
Product-Review: Robert Lamb <rlamb@instructure.com>
QA-Review: Robert Lamb <rlamb@instructure.com>
2017-08-10 16:46:47 +00:00
David Mirabile 3c5ea89b89 spec: add additional specs to the planner specs
update: code review
update: add a force click function to the code
update: update the comments on the force click function

Change-Id: I6a7b2a631a6039cf86d721310038a76a2e72c17f
Reviewed-on: https://gerrit.instructure.com/121602
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-08-09 22:37:00 +00:00
Ryan Shaw d6e594ae2c Generate css, json & js files for themes on build
Closes: CNVS-38601


This change makes it so if you have a database 
connection, it will look at the db for the brand_configs
that exist there and generate them all when you 
compile_assets. It should prevent people in dev 
mode from getting the vanilla white page
that you get when you get a 404 for the css file
That has all of your brand_configs css variables.


Test plan:
* set up a custom theme for yourself in canvas
* rm -rf public/dist
* check this out
* run bin/rake canvas:compile_assets
* load a page, 
* you should not get a 404 for a css file or js file
  with your brand_variables
* the page should be themed and not be a vanilla white page 

Change-Id: I796ac99c06aafe5d7d229e457988094a7b48e8bd
Reviewed-on: https://gerrit.instructure.com/122155
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
2017-08-09 22:11:43 +00:00
Andrew Butterfield ba453e2deb Add show action for grading standards api
This came out of hack night at InstCon

Test plan:
* Create a grading standard via the api
* Using the id that is returned from that request retrieve the grading
  standard using the following endpoint:
  /api/v1/courses/:course_id/grading_standards/:grading_standard_id
* Try and retrieve a grading standard with an id that doesn't exist
* Ensure that you get a 404
* Try to retrieve a grading standard with a user that doesn't have
  permission to do that in the context
* Ensure that you get a permission related response

Change-Id: Id7f5652c9735078c4d7a29f3c3e6790eb51e7311
Reviewed-on: https://gerrit.instructure.com/120685
Tested-by: Jenkins
Reviewed-by: Neil Gupta <ngupta@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
QA-Review: KC Naegle <knaegle@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
2017-08-09 21:58:42 +00:00
James Williams 7ec22a0289 bump rails 5.1
Change-Id: Id0e0ad36c03cb52eb9ec158318a456386b169679
Reviewed-on: https://gerrit.instructure.com/122209
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2017-08-09 20:52:53 +00:00
Cody Cutrer c3c8c10360 try to explain the opaqueness of upload_params better
closes CNVS-37422

Change-Id: I3965d69e1382adc2f887ccc035777a2c3251bf65
Reviewed-on: https://gerrit.instructure.com/122181
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2017-08-09 19:30:08 +00:00
Pam Hiett 3d81df8a0b fix right-side "to do" links not underlining in HC
Fixes: CNVS-38514

test plan:
- as a user navigate to dashboard
- if *not* HC ensure the "To Do" links are not underlined by
  default.... but do underline upon hover
- now go to user settings and turn on HC to ensure the same
  links are now underlined by default and do not upon hover
- lastly, turn off HC mode for user settings but turn on
  "underline links" to ensure the same "To Do" links
  underline properly

Change-Id: Ic181a8067bd2abf5ca194314e0e0347ef6663427
Reviewed-on: https://gerrit.instructure.com/121806
Tested-by: Jenkins
Reviewed-by: Chris Hart <chart@instructure.com>
QA-Review: Dan Sasaki <dsasaki@instructure.com>
Product-Review: Stephen Jensen <sejensen@instructure.com>
2017-08-09 19:22:59 +00:00
Gary Mei ceece49b18 spec: Add missing specs for AssignmentApi
refs GRADE-134

Change-Id: Idb1ff5ffee77bda4525e3d3b55874bdf34f0d6d5
Reviewed-on: https://gerrit.instructure.com/122141
Reviewed-by: Derek Bender <djbender@instructure.com>
Product-Review: Gary Mei <gmei@instructure.com>
QA-Review: Gary Mei <gmei@instructure.com>
Reviewed-by: Shahbaz Javeed <sjaveed@instructure.com>
Tested-by: Jenkins
2017-08-09 17:58:16 +00:00
Cody Cutrer 6ddafb386b fix explicit pseudonym<->auth provider linking for LDAP
Change-Id: Ic7a9d0e511ec93ebd0550aeb6c4d5d3290db47c4
Reviewed-on: https://gerrit.instructure.com/121948
Tested-by: Jenkins
Reviewed-by: Tyler Pickett <tpickett@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2017-08-09 17:28:21 +00:00
Brian Park b4d8da3246 apply late policy in gradezilla frontend on change
closes: GRADE-133

Test Plan:
1. Navigate to gradezilla
2. Change some late policy values in settings cog menu
3. Observe that upon clicking 'Update' in the menu,
   all late and missing assignments are updated to show
   the new grades.
    - Late submission deductions are applied when enabled
    - Late submission deductions are updated when penalty
       value is changed
    - Late submission deductions persist when late
        deductions are turned off
    - Missing submission grades populated when policy set
       - Does not affect existing grades!
    - Missing submission grades unchanged when policy unset
    - Submissions in closed grading periods are unaffected
      by any late or missing policy changes

Change-Id: I6d0f759a1653ab58a749a9d7b0b95eff453a432c
Reviewed-on: https://gerrit.instructure.com/119148
Reviewed-by: Jeremy Neander <jneander@instructure.com>
Tested-by: Jenkins
Reviewed-by: Neil Gupta <ngupta@instructure.com>
QA-Review: Indira Pai <ipai@instructure.com>
Product-Review: Matt Goodwin <mattg@instructure.com>
2017-08-09 17:27:05 +00:00
Brian Park 8d72bb26f1 fix regraded submissions not getting late policy applied
fixes: GRADE-3

depends-on: GRADE-133

Test Plan:
1. As teacher/admin, navigate to Gradezilla
2. Set up a late policy
3. Find or locate a late submission
4. Grade the late submission
  - Observe late penalty is applied
5. Re-grade the submission as its adjusted grade, e.g.:
  - 90/100 is penalized to 80/100
  - submission is regraded as 80/100
6. Observe the late deduction is applied to the new grade
7. Repeat 3-6 with SpeedGrader, Submission Details Page

Change-Id: I392e5adeeef9354f7a8953f267d13b984b048530
Reviewed-on: https://gerrit.instructure.com/121200
Tested-by: Jenkins
Reviewed-by: Keith T. Garner <kgarner@instructure.com>
Reviewed-by: Jeremy Neander <jneander@instructure.com>
QA-Review: Indira Pai <ipai@instructure.com>
Product-Review: Matt Goodwin <mattg@instructure.com>
2017-08-09 17:27:02 +00:00
James Williams 45147e0911 bypass the wiki model as much as possible for wiki_pages
Change-Id: I60ec3b519219fcb5256a132c05f63538600df73f
Reviewed-on: https://gerrit.instructure.com/121760
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2017-08-09 16:09:06 +00:00
James Williams 39412c857e master courses: avoid unnecessary child tag creation errors
use content_tag_for on creation so we can populate the
@content_tag_index for reuse in the migration

closes #CNVS-38017

Change-Id: Ia1b9fd773f55b4e3dcd068c740896ff0ec6d43e0
Reviewed-on: https://gerrit.instructure.com/122108
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2017-08-09 15:29:39 +00:00
Derek Bender a0abc70cc4 replace data with attr for string IDs
this was caused by jquery's data() function converting strings to
integers. e.g. "01" -> 1

fixes: GRADE-169

test plan:
- Given an assignment created with an override
- When clicking save after editing the title of the assignment
- Then the assignment is saved and there are no javascript
errors in the console

Change-Id: Idf8f41b72488edf5c76fd201fa1c4fa922ee1446
Reviewed-on: https://gerrit.instructure.com/121879
Tested-by: Jenkins
Reviewed-by: Jeremy Neander <jneander@instructure.com>
Reviewed-by: Shahbaz Javeed <sjaveed@instructure.com>
QA-Review: Indira Pai <ipai@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
2017-08-09 15:21:43 +00:00