Commit Graph

35704 Commits

Author SHA1 Message Date
Landon Gilbert-Bland 8e4e91d305 Display submission comments based on attempt
Fixes COMMS-2085

Test Plan:
  - Create an assignment with multiple submissions
  - Leave some comments on some of the submission attempts, using the
    next and previous buttons to cycle through submissions
  - Notice that the comments will only be displayed for the submission
    attempt that it was created on.
  - Create a new assignment
  - Create a comment on attempt 0
  - Submit the assignment
  - Notice that on reloading the page, the attempt 0 comments show up on
    attempt 1

Change-Id: Ie4e8196504272131a388a913217c30673df81eb3
Reviewed-on: https://gerrit.instructure.com/197899
QA-Review: Ryan Norton <rnorton@instructure.com>
Tested-by: Jenkins
Reviewed-by: Matthew Lemon <mlemon@instructure.com>
Product-Review: Landon Gilbert-Bland <lbland@instructure.com>
2019-06-18 17:55:43 +00:00
Clay Diffrient f8711628fc UploadImage: Unsplash Panel
refs CORE-2626

Test Plan:
  - Start RCE API using the proper ENV variables, I can provide
    those upon request
  - Go to the Upload Image dialog
  - Click the Unsplash Panel
  - Type in a search phrase
  - You should be able to do a search and get results back
  - NOTE: At this point, you can't select an image and have
    it be inserted into the RCE

Change-Id: I06832be6ef1c2e299c531c68a8d34782c3cebee0
Reviewed-on: https://gerrit.instructure.com/195273
Tested-by: Jenkins
Reviewed-by: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2019-06-18 17:37:20 +00:00
Landon Gilbert-Bland 279d23b196 Make submit button display with fixed bottom bars
Fixes COMMS-2087

Test Plan:
  - Navigate to an assignment 2 page as a student (without being
    masqueraded)
  - Upload a file so the submit button will display
  - Notice that the submit button displays at the bottom of the page and
    looks nice
  - Visit the same assignment, but this time by masquerading as a
    student.
  - Notice that the submit button now shows up right after the
    masquerading alert bar, and still looks nice.
  - Once this hits beta, go to bate and run the same tests, and notice
    that the submit button always displays and looks good with and
    without masquerading.

Change-Id: Id71e1ffdd4e48dd7590499dd5aa8ef82caee8371
Reviewed-on: https://gerrit.instructure.com/197971
Reviewed-by: Ryan Norton <rnorton@instructure.com>
Tested-by: Jenkins
QA-Review: Landon Gilbert-Bland <lbland@instructure.com>
Product-Review: Landon Gilbert-Bland <lbland@instructure.com>
2019-06-18 17:12:36 +00:00
Ryan Norton 144bb347bd add grade display above content preview in a2
when an assignment has been submitted or graded (the attempt is
ready for preview) we should display the current grade and
submission time for the attempt according to the design

Test Plan:
* As a teacher, create an assignment
* As a student, navigate to the submission page in A2
* Confirm that no submission date or grade is displayed

* Upload, but do not submit, some files
* Confirm that no submission date or grade is displayed

* Submit to the assignment
* Confirm that the submission date and grade are displayed

* As a teacher, grade the attempt
* Confirm that the submission date and grade are displayed

* The displayed grade should match whatever we display in the top right
* The submission time displayed should be accurate for the
  selected attempt
* They should match the design
** They should align just above the content tab bar to the right
** The text should align along the right-hand sidebar
* The display should look acceptable for any grading type (points,
  percentage, letter, etc)

fixes COMMS-2095

Change-Id: I40d5cc079adeb3e79060cbb29c35fad7ebf15ba6
Reviewed-on: https://gerrit.instructure.com/197725
Tested-by: Jenkins
Reviewed-by: Steven Burnett <sburnett@instructure.com>
QA-Review: Landon Gilbert-Bland <lbland@instructure.com>
Product-Review: Ryan Norton <rnorton@instructure.com>
2019-06-18 17:12:01 +00:00
Michelle Simmons 2b6e281199 specs: reconfigure Assi_2 tests to test only same-level component
fixes COMMS-2127

Reconfigure StepContainer.test, Header.test, and StepItem.test to
test only their level of component and to use React testing
library.

Test Plan:
* Tests pass Jenkins

Change-Id: I30884b9a71ea1605cac0e2d9ca9a39baab00b8f2
Reviewed-on: https://gerrit.instructure.com/197706
Tested-by: Jenkins
Reviewed-by: Ryan Norton <rnorton@instructure.com>
Reviewed-by: Landon Gilbert-Bland <lbland@instructure.com>
QA-Review: Landon Gilbert-Bland <lbland@instructure.com>
Product-Review: Michelle Simmons <misimmons@instructure.com>
2019-06-18 17:05:21 +00:00
wdransfield 1d7b8de179 Add LTI tool data to external tool asset accessed events
Closes PLAT-4442

Test Plan:
- Launch an external tool that has a url, domain, and name
- Verify these fields are included in the asset accessed
  event that is sent
- Verify other asset accessed event bodies remain unchanged

Change-Id: Ia728a784b01cc640a8619fa05ca01acae2e918b7
Reviewed-on: https://gerrit.instructure.com/197694
Tested-by: Jenkins
Reviewed-by: Drake Harper <dharper@instructure.com>
Reviewed-by: Clint Furse <cfurse@instructure.com>
Reviewed-by: Marc Phillips <mphillips@instructure.com>
QA-Review: Brent Burgoyne <bburgoyne@instructure.com>
Product-Review: Weston Dransfield <wdransfield@instructure.com>
2019-06-18 16:11:20 +00:00
Landon Gilbert-Bland 3b64bd7c6d Skip some flakey tests while we work things out
Test Plan:
  * Jenkins passes

Change-Id: Id33d11b717cc9630d41a9c59a0e6d9d4057b03a3
Reviewed-on: https://gerrit.instructure.com/197571
Tested-by: Jenkins
Reviewed-by: Steven Burnett <sburnett@instructure.com>
QA-Review: Steven Burnett <sburnett@instructure.com>
Product-Review: Steven Burnett <sburnett@instructure.com>
2019-06-18 15:20:57 +00:00
Jeremy Stanley faee0cd913 fix opening student context tray
when using VO with Safari, a descendant of the button
is supplied to the event handler as the event target.
work around this weirdness by moving up the DOM to the button.

test plan:
 - in assignments 2, student tab, be sure you can open the
   student context tray with VO/Safari

fixes ADMIN-2719

Change-Id: I25d6958cbf4c2cd32b81fee6f2d4fdd99efc5e2f
Reviewed-on: https://gerrit.instructure.com/197787
Tested-by: Jenkins
Reviewed-by: Carl Kibler <ckibler@instructure.com>
QA-Review: Carl Kibler <ckibler@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
2019-06-18 15:17:13 +00:00
James Butters b5114c87c3 spec: wait for element to be displayed
wait for the success banner before trying to continue on with
test.

Change-Id: I0af808d85ce20e7d8481069e4f6026ac2ffdb082
Reviewed-on: https://gerrit.instructure.com/197939
Tested-by: Jenkins
Reviewed-by: Jeremy Neander <jneander@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2019-06-18 14:45:09 +00:00
Drake Harper 0df1e52bb0 dd public_jwk_url and is_lti_key fields to developer key model
refs PLAT-4493

Test Plan:
-Create a developer key and verify that it has the new fields
	(public-jwk_url and is_lti_key)

Change-Id: I72508ae26709ce5f7560de35d5ee0c03d4000b5d
Reviewed-on: https://gerrit.instructure.com/197314
Tested-by: Jenkins
Reviewed-by: James Williams <jamesw@instructure.com>
Reviewed-by: Clint Furse <cfurse@instructure.com>
Reviewed-by: Weston Dransfield <wdransfield@instructure.com>
QA-Review: Weston Dransfield <wdransfield@instructure.com>
Product-Review: Drake Harper <dharper@instructure.com>
2019-06-18 14:33:50 +00:00
James Williams bb3f8a0c04 make failed_jobs.handler a text column
just like delayed_jobs.handler

test plan: existing specs

closes #CORE-3091

Change-Id: I8c073cd269e4b52acd1431924970cec18634356c
Reviewed-on: https://gerrit.instructure.com/198033
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
2019-06-18 13:55:51 +00:00
James Butters be4509ab53 spec: add wait_for_new_page_load
tests showing flaky results after cliking link and trying to
interact with the new page before it's finished loading. Add
wait_for_new_page_load before attempting to interact.

Change-Id: I969137152275e174837d6aa5c4a7f7f7435ab610
Reviewed-on: https://gerrit.instructure.com/197914
Reviewed-by: Jeremy Neander <jneander@instructure.com>
Tested-by: Jenkins
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2019-06-18 13:09:19 +00:00
Ed Schiebel 7749fe9102 Wire up the view kb shortcut buttons and shortcuts
closes CORE-3021

test plan
  - go to /courses/:course:id/assignments/new for example
  - click the kb shortcut button in the status bar
  > expect the dialog to open
  - click the close button or type ESC
  > expect the dialog to close and the editor to receive focus
  - focus on the assignment name and TAB
  > expect the kb shortcut button above the RCE to appear
  - click it
  > expect the dialog to open
  - close the dialog
  > expect focus to return to the editor
  - type ALT-0 or ALT-F8 (from anywhere in the RCE)
  > expect the dialog to open
  - close the dialog
  > expect focus to return to the editor

Change-Id: Ia8ce42fbf1b52b765e8a8961b8bac1156d4f7780
Reviewed-on: https://gerrit.instructure.com/196913
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Clay Diffrient <cdiffrient@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2019-06-18 12:24:53 +00:00
Ubuntu af3eea2057 update locales with new translations
Change-Id: I8692b922c3810abb23d3c3de7cc9b0a69409142f
Reviewed-on: https://gerrit.instructure.com/198030
Tested-by: Jenkins
2019-06-18 10:47:11 +00:00
Ubuntu ab8730ab18 [i18n] update locales with new translations
Change-Id: I13b707547bae0cd1b5db38a2d68eacce8daaa7f6
Reviewed-on: https://gerrit.instructure.com/198028
Tested-by: Jenkins
2019-06-18 07:42:18 +00:00
Derek Bender b942bc2876 Fix yarn for initial docker-compose build
Fixes: GRADE-2257

It appears that several `yarn build:canvas` scripts in
packages/ open files with `rw` permissions that they
don't have at an early enough stage in the Dockerfile.
We were previously making all the directories writeable
but this wasn't going far enough since it was ignoring
files. I have a hunch that the files don't need to be
opened with `rw` permissions but that might be a problem
with babel or something else upstream. Since we eventually
make all files owned by docker:docker might as well do it
sooner with `COPY --chown=docker:docker`.

A follow up patchset should do add this feature to all
the other COPY directives.

Change-Id: I6a09161a34d6895284a87750091de3f82aa44e15
Reviewed-on: https://gerrit.instructure.com/197837
Tested-by: Jenkins
QA-Review: Derek Bender <djbender@instructure.com>
Product-Review: Derek Bender <djbender@instructure.com>
Reviewed-by: Steven Burnett <sburnett@instructure.com>
2019-06-17 22:58:54 +00:00
Ed Schiebel a690a93c6d Make RCE StatusBar behave like a toolbar
closes CORE-2903

test plan:
  - load a page with the rce
  - TAB into the RCE and into the StatusBar
  > expect right/left arrows to move focus from one button to
    the next.
  > expect focus to cycle back to the other
    end when you go too far
  - tab out of the status bar
  - click one of the buttons to give it focus
  - use the arrow keys again
  > expect focus to move right|left from the starting point
  - give he drag handle focus
  > expect up/down arrows to resize the RCE w/o scrolling the page
  - fire up a screenreader
  > expect the button area of the status bar to be announced as a
    toolbar

Change-Id: I00e5a761ebc25ae784267c57bb5a653b68ccacba
Reviewed-on: https://gerrit.instructure.com/197059
Tested-by: Jenkins
Reviewed-by: Jon Willesen <jonw+gerrit@instructure.com>
QA-Review: Jon Willesen <jonw+gerrit@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2019-06-17 22:12:57 +00:00
Ed Schiebel 46c18d059f Focus editor on closing content tray
closes CORE-3078

test plan:
  - load a page with the rce
  - enter some text and move the text cursor somewhere in the middle of
    what you typed
  - select Links -> Course Links
  - type Escape or click the X to immediately close the tray
  > expect focus to return to the editor. The text cursor is where you
    left it. If you start typeing, it goes right there. If you had
    selected text, it's still selected and typing replaces the selection
  - select Images -> upload image
  - type Escape or click the X to close the modal
  > expect the same reasult as with the tray
  - the same should be true for Images -> Course Images or
    media -> upload media

Change-Id: I3ea663191be1fa3a8abaf94408d76849f384b47b
Reviewed-on: https://gerrit.instructure.com/197589
Tested-by: Jenkins
Reviewed-by: Jon Willesen <jonw+gerrit@instructure.com>
QA-Review: Jon Willesen <jonw+gerrit@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2019-06-17 22:12:38 +00:00
Marc Phillips 1362052ad5 Add additional context to live events
fixes PLAT-4441

Test Plan:
 - see that they are added correctly given the context
   for each value being added

Change-Id: I60127a66981b7a1b8aa1bc157446a3e83c61f379
Reviewed-on: https://gerrit.instructure.com/197643
Tested-by: Jenkins
Reviewed-by: Clint Furse <cfurse@instructure.com>
Reviewed-by: Weston Dransfield <wdransfield@instructure.com>
QA-Review: Marc Phillips <mphillips@instructure.com>
Product-Review: Marc Phillips <mphillips@instructure.com>
2019-06-17 20:39:21 +00:00
Ryan Shaw c3e6d33bfd Fix icon font showing up garbled sometimes
closes: CORE-3087

I think I finally found what was causing the icons from the icon font
to show up garbled sometimes. It was because the browser was just
guessing about what type of character encoding the file used. By setting
it explicitly as UTF-8 in a response header, it will be unambiguous.


Test plan:
* with canvas_cdn.yml set up
* the fonts from the font icon should not ever show up garbled

Change-Id: Ib5f4995e23d90a9bdd146c74c3a8850e563bba8a
Reviewed-on: https://gerrit.instructure.com/197277
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
Tested-by: Jenkins
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-06-17 19:29:42 +00:00
Ryan Shaw d9993015d5 use woff2 for icon font in modern browsers since it's smaller
closes: CORE-3085

all the browsers we support (except IE11) can handle woff2, so serve 
them that. That is better because it has better compression so will
be smaller.
For IE 11 we still serve a woff format. But all the other older formats
aren’t needed anymore though.


Test plan:
* icons should show up the same as before but should download a little
  faster since the file is smaller.

Change-Id: I9eb183e1f028a7390d86b8dc901d375df8b334fa
Reviewed-on: https://gerrit.instructure.com/197250
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
Tested-by: Jenkins
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-06-17 19:29:19 +00:00
James Williams 34fd027d7a student context card LTI placement
test plan:
* configure a tool with a "student_context_card" placement
 and the "require_permissions" extension setting set
 to a comma-separated list of permissions
* enable the "Student Context Card" feature

* as a teacher, when showing the student context card
 (e.g. when clicking on a student name on the roster or gradebook)
 it should show a link underneath "Grades" for the tool
 (assuming the current user has all of the permissions in
 "require_permissions")
* following the link should launch the tool with an
 "ext_lti_student_id" param corresponding to the student
 being viewed

closes #PLYT-1746 #PLYT-2076

Change-Id: Iace4f0ef035fd1fd3686d4f539db28af5ce2502e
Reviewed-on: https://gerrit.instructure.com/195134
Tested-by: Jenkins
Reviewed-by: Nathan Mills <nathanm@instructure.com>
QA-Review: Nathan Mills <nathanm@instructure.com>
Product-Review: Nathan Mills <nathanm@instructure.com>
2019-06-17 19:23:19 +00:00
Jeremy Putnam d903b521fd spec: add test for add image modal in rce-next
Change-Id: Ifadef125d99f6f651dba223c9796ddb81090d89b
Reviewed-on: https://gerrit.instructure.com/197492
Tested-by: Jenkins
Reviewed-by: Robert Lamb <rlamb@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
2019-06-17 18:31:34 +00:00
Ryan Norton 0c5908707c spec: update GradeDisplay specs in a2
update to use react-testing-library with our GradeDisplay
specs instead of ReactDOM

Test Plan:
* the tests should still pass

fixes COMMS-2128

Change-Id: I7c44884d07c907e9cf80f51c8004387730599d9e
Reviewed-on: https://gerrit.instructure.com/197724
Tested-by: Jenkins
Reviewed-by: Michelle Simmons <misimmons@instructure.com>
Reviewed-by: Steven Burnett <sburnett@instructure.com>
QA-Review: Ryan Norton <rnorton@instructure.com>
Product-Review: Ryan Norton <rnorton@instructure.com>
2019-06-17 18:20:34 +00:00
Adrian Packel e570f48ddd Don't allow auto-posting for certain assignments
Ensure that setAssignmentPostPolicy does not allow anonymous assignments
to be automatically posted (ever) and allows moderated (non-anonymous)
assignments to be auto-posted only after grades are published.

fixes GRADE-2206

Test plan:
- Set up some assignments
  - An anonymous assignment
  - A moderated assignment
- Open up /graphiql in your browser
- Run the query, substituting in the assignment IDs in turn:

  mutation {
    setAssignmentPostPolicy(input: {assignmentId: <id>, postManually: false}) {
      postPolicy {
        postManually
      }
      errors {
        attribute
        message
      }
    }
  }

- For A1, this should return an error
  - Using postManually: true in the query instead should not fail but
    also should not actually change anything
- For A2, this should also return an error
  - But after moderating/posting grades, it should succeed

Change-Id: I3a200a634694914df71d58365e1dde3e40423549
Reviewed-on: https://gerrit.instructure.com/197144
Tested-by: Jenkins
Reviewed-by: Jeremy Neander <jneander@instructure.com>
Reviewed-by: Gary Mei <gmei@instructure.com>
QA-Review: Gary Mei <gmei@instructure.com>
Product-Review: Keith Garner <kgarner@instructure.com>
2019-06-17 17:37:26 +00:00
Adrian Packel 787e852920 Change display of manual posting header icon
fixes GRADE-2236

Test plan:
- With Post Policies enabled, open up New Gradebook with a manually
  posted assignment
- The old "outline eye" (when an assignment that is manually-posted has
  nothing that needs posting) icon should now have a slash through it
- Nothing else should be affected

Change-Id: Ibb531773f4ba25d9850912c9f9e648b0057ec780
Reviewed-on: https://gerrit.instructure.com/197538
Tested-by: Jenkins
Reviewed-by: Gary Mei <gmei@instructure.com>
Reviewed-by: Jeremy Neander <jneander@instructure.com>
QA-Review: Adrian Packel <apackel@instructure.com>
Product-Review: Jonathan Fenton <jfenton@instructure.com>
2019-06-17 17:23:17 +00:00
Marc Phillips 2763e887b2 Add user timezone to live event metadata
closes PLAT-4495

Test Plan:
 - timezone added to live events metadata

Change-Id: I144455451dbf00f72d509583ac1e2c218efb799c
Reviewed-on: https://gerrit.instructure.com/197714
Tested-by: Jenkins
Reviewed-by: Weston Dransfield <wdransfield@instructure.com>
QA-Review: Marc Phillips <mphillips@instructure.com>
Product-Review: Marc Phillips <mphillips@instructure.com>
2019-06-17 15:30:05 +00:00
Rob Orton f7255e9b52 add integration_id to grade export
fixes GRADE-2229

test plan
 - export gradebook
 - it should work
 - set root_account to include integration_ids in gradebook
 - export gradebook
 - it should include integration_id
 - account grade export reports should also use account setting
 - import grade export that includes integration_id
 - it should import with out error

Change-Id: I7b5eb980492c3ee657e87df27217263c36615cb4
Reviewed-on: https://gerrit.instructure.com/196982
Tested-by: Jenkins
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
Reviewed-by: Keith Garner <kgarner@instructure.com>
Reviewed-by: Nathan Mills <nathanm@instructure.com>
2019-06-15 07:38:18 +00:00
Jeremy Stanley 2c58144a17 fix importing question groups that pick 0 questions
test plan:
 - create a quiz that includes a question group that picks 0 questions
   (either from a set of questions or a question bank)
 - copy the course
 - the copy should preserve the question group

fixes ADMIN-2724

Change-Id: If4a0197c307361b3cf1dce210fb6610c4ff05b0e
Reviewed-on: https://gerrit.instructure.com/197302
Tested-by: Jenkins
Reviewed-by: James Williams <jamesw@instructure.com>
QA-Review: Carl Kibler <ckibler@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
2019-06-14 22:49:38 +00:00
Jeremy Stanley b3333f6d15 hide context card message button for inactive enrollments
test plan:
 - enable student context cards feature
 - click a student with an active enrollment
   - there should be a message button on the context card
 - click a student with an inactive enrollment
   - there should not be a message button on the card

fixes ADMIN-2710

Change-Id: Ic633a6e38a20564c7f47a13e4b2e7721e4f7f64d
Reviewed-on: https://gerrit.instructure.com/197137
Reviewed-by: Mysti Lilla <mysti@instructure.com>
Tested-by: Jenkins
QA-Review: Carl Kibler <ckibler@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
2019-06-14 22:49:32 +00:00
Landon Gilbert-Bland 38b4c12f2d Do not expose drafts for submisison histories
Eventually this will be replace by the ability to create new submissions
of an unsubmitted or in-progress state and doing the check based on
that, but for now this should work fine.

Fixes COMMS-2129

Test Plan:
  * Jenkins passes
  * Create a submission draft for an old submission attempt in an
    assignment (via the rails console).
  * Insure that submission draft is not returned via a graphql query to
    submission_histories

Change-Id: I39f3a16f5d8d28d96236c7fd3d0a38d21a77cec0
Reviewed-on: https://gerrit.instructure.com/197682
Tested-by: Jenkins
Reviewed-by: Michelle Simmons <misimmons@instructure.com>
Reviewed-by: Cameron Matheson <cameron@instructure.com>
QA-Review: Landon Gilbert-Bland <lbland@instructure.com>
Product-Review: Landon Gilbert-Bland <lbland@instructure.com>
2019-06-14 21:19:28 +00:00
Ed Schiebel 1078a6284d Fix RCEWrapper unit tests
I could not find a way to get the describe("lifecycle") tests to run so
I added a testcafe test that confirms the actions tested in those
specs actually work. Except for replacing the textarea out from under
the RCE, which I just don't see as ever actually happening.

closes CORE-2930

test plan:
  - the tests all pass

Change-Id: I74129dc22249caade8c8569dbe18849c77b1e58b
Reviewed-on: https://gerrit.instructure.com/197262
Tested-by: Jenkins
Reviewed-by: Jeremy Neander <jneander@instructure.com>
QA-Review: Jeremy Neander <jneander@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2019-06-14 17:02:06 +00:00
Marc Phillips cc6b0786f1 Don't match domain with schema
Tool lookups were failing if the tool defined the domain
to have a scheme. Remove the scheme so that it only
checks for the provided domain.

closes PLAT-4545

Test Plan:
 - create a test tool with a domain that has a scheme
 - in teh console, try to look up the tool using a url
 - it should resolve to the created tool

Change-Id: Ice8b3dfddbceae018defb353fd788013b95a6045
Reviewed-on: https://gerrit.instructure.com/197617
Tested-by: Jenkins
Reviewed-by: Clint Furse <cfurse@instructure.com>
Reviewed-by: Weston Dransfield <wdransfield@instructure.com>
QA-Review: Marc Phillips <mphillips@instructure.com>
Product-Review: Marc Phillips <mphillips@instructure.com>
2019-06-14 15:57:07 +00:00
James Williams 3d73b22322 ensure cache register uses consistent nodes across shards
test plan:
* in an environment with multiple redis rings
 separated by shard (e.g. production) enrolling a user
 from one ring (e.g. a site admin user) in to a
 course in an other ring should clear their cache
 (can be checeked via a call to /api/v1/courses )

closes #CORE-3080

Change-Id: I5d948e942652679c7698415c2ebaf1a5ccedd4e0
Reviewed-on: https://gerrit.instructure.com/197677
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
2019-06-14 15:21:30 +00:00
Rob Orton 2c4e8d327e increase priority of gradebook export
fixes GRADE-2249

test plan
 - existing specs should pass

Change-Id: Icb534bdb00cf983f6d58a8df8054538b65558001
Reviewed-on: https://gerrit.instructure.com/197670
Reviewed-by: Keith Garner <kgarner@instructure.com>
Tested-by: Jenkins
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
2019-06-14 14:17:06 +00:00
Drake Harper 68dfd6c012 Update tool configuration when public jwk is updated
fixes PLAT-4590

Test Plan:
-update public jwk on a lti key using the update public jwk
	endpoint
-view json in manual edit and verify that the public jwk
	has changed

Change-Id: I1ddc6f0b3eca0b64ac0c15cefa44f5868d8bde32
Reviewed-on: https://gerrit.instructure.com/197498
Tested-by: Jenkins
Reviewed-by: Marc Phillips <mphillips@instructure.com>
QA-Review: Weston Dransfield <wdransfield@instructure.com>
Product-Review: Drake Harper <dharper@instructure.com>
2019-06-14 13:53:30 +00:00
James Williams c4f6d1bd9a allow editing designer enrollment section
test plan:
* should be able to edit a designer's section in a
 course through the roster UI

closes #ADMIN-2728

Change-Id: If0855a80138ab3e7b73bf68dcfbcb007e1e74ab2
Reviewed-on: https://gerrit.instructure.com/197529
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Jeremy Stanley <jeremy@instructure.com>
Product-Review: James Williams <jamesw@instructure.com>
2019-06-14 12:24:05 +00:00
Transifreq 28a446a739 update hu translation
Change-Id: I636199c21142bfe3012c42c55e0d724c3f406273
2019-06-14 05:51:43 -06:00
Ubuntu 9683659b62 update locales with new translations
Change-Id: I31bf7c70834db6c6b3073b9c75491706db903d54
Reviewed-on: https://gerrit.instructure.com/197664
Tested-by: Jenkins
2019-06-14 10:47:54 +00:00
Adrian Packel 1b349a3a05 spec: use post policy setting, not feature flag
Change-Id: I354dc7ac354d7105d9185e557f1c2b3fce247685
Reviewed-on: https://gerrit.instructure.com/197656
Reviewed-by: Landon Gilbert-Bland <lbland@instructure.com>
QA-Review: Landon Gilbert-Bland <lbland@instructure.com>
Product-Review: Adrian Packel <apackel@instructure.com>
Tested-by: Jenkins
2019-06-14 03:11:55 +00:00
Adrian Packel bfbe2faac9 Move post policies to setting, tie to NG
Convert post policies from a garden-variety feature flag into a global
setting and remove the old feature flag. Add some helper methods to
handle enabling and disabling, and have everywhere in the code that
references the feature use the new helper methods instead. Also, have
the activation of post policies for a given course depend on whether new
gradebook is active for that course.

closes GRADE-1974

Test plan:

Note that the Post Policies feature flag no longer exists, and instead
there's a setting you'll need to turn on. You can do so in the console
using:
  > PostPolicy.enable_feature!

To disable it:
  > PostPolicy.disabled_feature!

Note that, even when enabled, it should only apply to courses that have
new gradebook turned on.

- With the new setting ENABLED:
  - Courses with new gradebook behave as though post policies is enabled
    - Do a bit of smoke testing to see if stuff like posting/hiding and
      changing assignment posting policies hasn't broken
  - Courses with old gradebook do not
    - For example, calling a mutation like postAssignmentGrades on an OG
      course should return an error indicating the feature isn't enabled
- With the new setting DISABLED:
  - Courses with new gradebook behave as though post policies is
    disabled (e.g., old-style muting is active)
    - Calling a mutation, as described above, should return an error

Change-Id: I5e223d2c4ca4202cce0641f316ecaa505a66298c
Reviewed-on: https://gerrit.instructure.com/196062
Tested-by: Jenkins
Reviewed-by: Keith Garner <kgarner@instructure.com>
Reviewed-by: Gary Mei <gmei@instructure.com>
QA-Review: Derek Bender <djbender@instructure.com>
Product-Review: Keith Garner <kgarner@instructure.com>
2019-06-13 22:09:06 +00:00
Nathan Mills f898af4332 Revert "optimize dashcard course images"
fixes CORE-3034

This reverts commit 626140841b.

Reason for revert: Images are too small, and Inst-FS doesn't currently support specifying the resolution.

Change-Id: I3e7b1180e4e8ada363862887fc851037a9b566f6
Reviewed-on: https://gerrit.instructure.com/196445
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
2019-06-13 20:32:44 +00:00
wdransfield 5d8c25e7d0 Make custom fields text area larger
Fixes PLAT-4592

Test Plan:
When customizing a tool configuration, verify the custom fields
text area is large enought to easily read

Change-Id: If6a219bbe41aeed32fe996e4523d6f9b6c2f0f77
Reviewed-on: https://gerrit.instructure.com/197526
Reviewed-by: Marc Phillips <mphillips@instructure.com>
Tested-by: Jenkins
QA-Review: Marc Phillips <mphillips@instructure.com>
Product-Review: Jesse Poulos <jpoulos@instructure.com>
2019-06-13 19:46:22 +00:00
wdransfield b6a5e4da9f Add request url to live event context
Closes PLAT-3919

Test Plan:
Verify events tied to a Canvas request now include
a url field.

Change-Id: Iab6af4b5a15a5933f89ed657da59b37dc22ab00f
Reviewed-on: https://gerrit.instructure.com/197359
Reviewed-by: Marc Phillips <mphillips@instructure.com>
Tested-by: Jenkins
QA-Review: Marc Phillips <mphillips@instructure.com>
Product-Review: Oxana Jurosevic
2019-06-13 19:46:12 +00:00
Mysti Lilla cce8a7626e Show when no results found in ImageSearch
fixes ADMIN-2722

Test plan
- Ensure Unsplash image searching is
  enabled
- Search for a nonsense term or nsfw
  term
- Ensure you get the text "No Results
  found for {search term}"

Change-Id: I7147384b56a8b180498fbd6d5d406b77a5ebec6f
Reviewed-on: https://gerrit.instructure.com/197422
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Daniel Sasaki <dsasaki@instructure.com>
Product-Review: Lauren Williams <lcwilliams@instructure.com>
2019-06-13 19:43:49 +00:00
Mysti Lilla 9ebbef6abf Inactive student submissions do not show up for todo list
fixes ADMIN-2711

Test plan
- Set up a student who has two enrollments in different
  courses
- In one course, submit an assignment as the student
  and then mark that student's enrollment as inactive
- Make sure everything else for that assignment is
  graded
- Check /api/v1/users/self/todo and ensure you don't
  see the assignment in the list
- Ensure every other submission in
  /api/v1/users/self/todo_items_count has been graded
  and make sure you can't see a count for the submission

Change-Id: Id01333b990dbbef762b55ca2ba4f98382b0b2ad4
Reviewed-on: https://gerrit.instructure.com/197166
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
2019-06-13 19:37:37 +00:00
Steven Burnett 01945f8da2 video options tray resizing
fixes CORE-2664 CORE-2663

Test Plan:
- record or drag and drop a video into the video
  plugin modal
- in the video that shows up put your cursor on it
- notice the option pop up
- click options pop up
- change the size of the video
- click done
- notice the video resized

Change-Id: Ib17f58dbb639cd11307360527426a9f3b1eaf22f
Reviewed-on: https://gerrit.instructure.com/197048
Tested-by: Jenkins
Reviewed-by: Jeremy Neander <jneander@instructure.com>
QA-Review: Landon Gilbert-Bland <lbland@instructure.com>
Product-Review: Steven Burnett <sburnett@instructure.com>
2019-06-13 18:19:35 +00:00
Jeremy Putnam 99eb5a71d0 spec: unskip keyboard shortcut modal test
Change-Id: Id314b468c52c6a3fe04cdfdc2a1128f731c21397
refs: CORE-3021
Reviewed-on: https://gerrit.instructure.com/197015
Tested-by: Jenkins
Reviewed-by: Robert Lamb <rlamb@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
2019-06-13 17:55:06 +00:00
Ryan Norton 0809e289f7 add picture of rubic to a2 student view
fixes COMMS-2094

Change-Id: I4a73101cb60f06018077cc604f1bb4417dd63bdc
Reviewed-on: https://gerrit.instructure.com/197543
Reviewed-by: Steven Burnett <sburnett@instructure.com>
QA-Review: Steven Burnett <sburnett@instructure.com>
Product-Review: Steven Burnett <sburnett@instructure.com>
Tested-by: Jenkins
2019-06-13 17:16:31 +00:00
James Butters 26e8519020 spec: improve the wait after scrolling to bottom
fixes: GRADE-2248

Change-Id: I06e85bdcba77933547cd8c3516e898dfa159a40f
Reviewed-on: https://gerrit.instructure.com/197520
Tested-by: Jenkins
Reviewed-by: Jeremy Neander <jneander@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2019-06-13 17:15:14 +00:00