Commit Graph

10 Commits

Author SHA1 Message Date
Cody Cutrer c2cba46851 RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation
[skip-stages=Flakey]

auto-corrected

Change-Id: I4a0145abfd50f126669b20f3deaeae8377bac24d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/279535
Tested-by: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Migration-Review: Cody Cutrer <cody@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
2021-11-25 14:03:06 +00:00
Cody Cutrer c65d57737a RuboCop: Layout lib
Change-Id: I0655d9a9d750f2debd6378b03d8ddc1403ebc31b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274158
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2021-09-22 20:01:52 +00:00
Cody Cutrer 06763dd519 add # frozen_string_literal: true for lib
Change-Id: I59b751cac52367a89e03f572477f0cf1d607b405
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/251155
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2020-10-27 20:49:50 +00:00
James Williams ec00892c7e move unbounded user preference data to separate table
such as gradebook column settings stored for every
course, etc

test plan:
* all user preferences should behave as before, such as
 gradebook column sizes, course nicknames,
 dashboard card color settings, etc

closes #LA-571

Change-Id: I6896e0d97d577c554d450f377137cb4d6e78e2ef
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/226119
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Jeremy Stanley <jeremy@instructure.com>
Product-Review: James Williams <jamesw@instructure.com>
2020-03-02 20:10:32 +00:00
Derek Bender e15aa37067 extract submission serializer shared code
closes: GRADE-1312

test plan: specs pass

Change-Id: I274ae211ab55d7c0a135c609f9917df5ccc2c716
Reviewed-on: https://gerrit.instructure.com/157760
Tested-by: Jenkins
Reviewed-by: Adrian Packel <apackel@instructure.com>
Reviewed-by: Gary Mei <gmei@instructure.com>
QA-Review: Derek Bender <djbender@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
2018-07-23 16:22:46 +00:00
Gary Mei c6135e38aa hide concluded students in speedgrader
This changes SpeedGrader to be consistent with Gradebook in showing
or hiding concluded students in a soft concluded course. Concluded
students will show or be hidden depending on if "Show Concluded
enrollments" is checked or not.

closes GRADE-1204 and GRADE-585

Test Plan

 Setup
 - Have a course with at least 2 students.
 - Create an assignment.
 - Conclude 1 student.
 - Go to the course settings and change the course dates to start and
   end before the current day.
 - Under the course dates, check the box for
   "Users can only participate in the course between these dates"

 Testing SpeedGrader
 - Navigate to the Gradebook.
 - Uncheck the option to show concluded students, if it's checked.
 - Open SpeedGrader for the assignment.
 - Verify that the concluded student does not show.
 - Navigate to the Gradebook.
 - Check the option to show concluded students.
 - Open SpeedGrader for the assignment.
 - Verify that the concluded student does show.

 Testing Exports
 - Navigate to the Gradebook.
 - Uncheck the option to show concluded students, if it's checked.
 - Export the Gradebook.
 - Verify that the concluded student does not appear in the export.
 - Navigate to the Gradebook.
 - Check the option to show concluded students.
 - Export the Gradebook.
 - Verify that the concluded student does appear in the export.

Change-Id: Id237086263e47405c03e0ae4af20195fa4d8ca35
Reviewed-on: https://gerrit.instructure.com/155111
Tested-by: Jenkins
Reviewed-by: Keith T. Garner <kgarner@instructure.com>
Reviewed-by: Adrian Packel <apackel@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
2018-06-27 04:54:31 +00:00
Derek Bender 6725c76d8f tweak speed grader comment visiblity
closes: GRADE-1266

Test Plan:

enroll two students and two TAs and the teacher is the final grader (it
shouldn't matter if the final grader is a TA or a teacher, in fact feel
free to rotate them for more possibilities). If you're short on time the
following could be done on one assignment and for each test case toggle the
settings on and off, but then it would be difficult to quickly pull of the
correct configuration, if problems arise.

The titles of each feature are how they are found in the Assignment form.
This can cause some confusion due to some rules being enabling or disabling
a phrase with a 'not' present so be careful!

/------------+---------------------------+-----------+-----------------------+---------------------+-----------------------\
| assignment | anonymous (graders cannot | moderated | graders can view      | graders cannot view | final grader can view |
|            | view student names)       | grading   | each other's comments | each other's names  | other grader names    |
+------------+---------------------------+-----------+-----------------------+---------------------+-----------------------+
| I (basic)  |                           |           |                       |                     |                       |
+------------+---------------------------+-----------+-----------------------+---------------------+-----------------------+
| II         |                           | on        | on                    |                     | on                    |
+------------+---------------------------+-----------+-----------------------+---------------------+-----------------------+
| III        |                           | on        | on                    |                     |                       |
+------------+---------------------------+-----------+-----------------------+---------------------+-----------------------+
| IV         |                           | on        |                       |                     |                       |
+------------+---------------------------+-----------+-----------------------+---------------------+-----------------------+
| V          | on                        | on        | on                    | on                  | on                    |
+------------+---------------------------+-----------+-----------------------+---------------------+-----------------------+
| VI         | on                        | on        | on                    | on                  |                       |
+------------+---------------------------+-----------+-----------------------+---------------------+-----------------------+
| VII        | on                        | on        | on                    |                     |                       |
+------------+---------------------------+-----------+-----------------------+---------------------+-----------------------+
| VIII       | on                        | on        |                       |                     |                       |
+------------+---------------------------+-----------+-----------------------+---------------------+-----------------------+
| IX         | on                        |           |                       |                     |                       |
+------------+---------------------------+-----------+-----------------------+---------------------+-----------------------+
Note: if a cell is empty, it means `off`,

For assignments with Moderated Grading enabled the `Number of graders` will
always be `2` (the final grader makes three enrollments we'll use for
Speed Grader)

for each assignment do the following:
have the first student (Student A) submit their homework
- As the first TA (TA1), create a published comment and draft comment on
  Student A's submission
- As the second TA (TA2), create a published comment and draft comment on
  Student A's submission
- As the final grader (the teacher), create a published comment and draft
  comment on Student A's submission

For the follow instructions, negatives are presented in uppercase (`CANNOT`)
for enhanced clarity. Ensure for each grader (unless final grader is
specified) in each assignment referenced via the parens:

(I)
  1. can view student names
  2. can view each other's comments
(II)
  1. can view student names
  2. can view each other's comments
  3. final graders can view other graders' names
(III)
  1. can view student names
  2. can view each other's comments
  3. final grader CANNOT view other graders' names
(IV)
  1. can view student names
  2. CANNOT view each other's comments
  3. final grader can view each others' comments
(V)
  1. CANNOT view student names
  2. can view each other's comments
  3. CANNOT view each other's names
  4. final grader view other graders' names
(VI)
  1. CANNOT view student names
  2. can view each other's comments
  3. CANNOT each other's names
  4. final grader CANNOT view other graders' names
(VII)
  1. CANNOT view student names
  2. can view each other's comments
  3. can view each other's names
  4. final grader CANNOT view other graders' names
(VIII)
  1. CANNOT view student names
  2. CANNOT each other's comments
  3. final grader can view each others' comments
(IX)
  1. CANNOT view student names

Change-Id: I3e9a8787f04cf03a38ea651aa85b3eaa98f41f9c
Reviewed-on: https://gerrit.instructure.com/154391
Tested-by: Jenkins
Reviewed-by: Keith T. Garner <kgarner@instructure.com>
QA-Review: Indira Pai <ipai@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
2018-06-24 20:37:22 +00:00
Landon Wilkins e08cd0c241 da licença part 30
add consistent license headers to all source files
(ruby, coffeescript, javascript)

except for vendor files

Change-Id: I13ce64f5dea44b41fe32c7c4b2ee1e31c0878c85
Reviewed-on: https://gerrit.instructure.com/110055
Tested-by: Jenkins
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2017-04-27 21:59:55 +00:00
Keith Garner 2e1c641efd allow speedgrader to view concluded courses
Speedgrader now shows concluded students regardless of gradebook
settings if the course is concluded. Also, speedgrader link will show on
assignment pages for concluded courses.

fixes CNVS-28572

test plan:
 - Create a course with a few students and an assignment.
 - Conclude the course.
 - Go to speedgrader for the assignment. (Check all paths into
   speedgrader)
 - Note that speedgrader loads and you can view, but not edit, student
   information

Change-Id: I92c30554166a3729bf7d400f94af97802a8a2032
Reviewed-on: https://gerrit.instructure.com/89882
Tested-by: Jenkins
Reviewed-by: Derek Bender <djbender@instructure.com>
Reviewed-by: Cameron Matheson <cameron@instructure.com>
QA-Review: KC Naegle <knaegle@instructure.com>
Product-Review: Christi Wruck
2016-09-13 15:27:29 +00:00
Keith Garner 74e1b6ce67 honor gradebook inactive/concluded settings in export
Gradebook export now honors the settings from gradebook related to
showing active and inactive enrollments.

fixes CNVS-30640

test plan:
 - Create a course with an assignment, and three
   students, one active, one inactive, and one concluded.
 - In gradebook turn off show inactive and show concluded.
 - Export the gradebook and note that only the active student shows.
 - In gradebook turn on show inactive.
 - Export the gradebook and note that both the active and inactive
   students show.
 - In gradebook turn off show inactive and turn on show concluded.
 - Export the gradebook and note that both the active and concluded
   students show.
 - In gradebook turn on show inactive and turn on show concluded.
 - Export the gradebook and note that all the students show
 - Edit the export and change the grade for all students.
 - Upload the export and note that only the active and inactive students
   are graded

Change-Id: I40dfe08991049f0689e05588f189b33a59cf9813
Reviewed-on: https://gerrit.instructure.com/86570
Reviewed-by: Derek Bender <djbender@instructure.com>
Reviewed-by: Jeremy Neander <jneander@instructure.com>
Tested-by: Jenkins
QA-Review: KC Naegle <knaegle@instructure.com>
Product-Review: Christi Wruck
2016-08-04 18:13:09 +00:00