Commit Graph

6 Commits

Author SHA1 Message Date
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
Landon Wilkins 45b8efda41 da licença part 36
add consistent license headers to all source files

Change-Id: I15e544768e7361fc050089a5ed4699f7ee96bb2c
Reviewed-on: https://gerrit.instructure.com/110064
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-28 17:31:17 +00:00
Spencer Olson da237aacfb Fix grade display with cross shard grading periods
the global grades page will now use global grading
period IDs to support selecting grading periods
accross shards.

fixes CNVS-31407
fixes CNVS-31523

test plan:
* you will need an account in a trust relationship
  with a cross-shard account

1. enroll a user in a course in the main account.
2. enroll same user in a course in the
   cross-sharded account.
3. enable "Multiple Grading Periods" in the
   cross-sharded course.
4. create an assignment in each course as a teacher
5. create a submission for each assignment as the student
6. grade the submission from the cross-shard course
7. return to the main account and masquerade as the
   user.
8. visit the user's dashboard and click
   "View Grades". select a grading period from the
   dropdown on the cross-shard course.
9. verify no error message is shown and the total
   grade updates.
10. go to the non-global grades page for the
    cross-shard course (/courses/:course_id/grades).
11. select a grading period from the dropdown and
    verify the grade updates with no error.
12. go to the cross-shard account and masquerade as the
    user.
13. visit the user's dashboard and click
    "View Grades". select a grading period from the
    dropdown on cross-shard course.
14. verify no error message is shown and the total
    grade updates.

Change-Id: I3324c09f33ad976e76cf613a8163e3b7670a5cda
Reviewed-on: https://gerrit.instructure.com/89467
Tested-by: Jenkins
Reviewed-by: Spencer Olson <solson@instructure.com>
Reviewed-by: Derek Bender <djbender@instructure.com>
QA-Review: KC Naegle <knaegle@instructure.com>
Product-Review: Christi Wruck
2016-09-30 18:37:00 +00:00
James Williams e8d2f65c93 use multi-column plucks instead in visibility plucking helper
should be faster

Change-Id: I818aec69b5273bbaf7ef5933a00f2c32c1775823
Reviewed-on: https://gerrit.instructure.com/87886
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2016-08-17 13:13:25 +00:00
Spencer Olson 94eb0d90c3 optimize assignment student visibilities
avoid a chunk of student visibility logic if an
assignment is visible to all students. instead,
if an assignment is visible to all students, set
its associated visibility array to all students
in the course and sidestep the logic that was
previously run.

closes CNVS-19971

test plan:
- create a course that contains assignments with
  no overrides, student overrides, section
  overrides, group overrides, and combinations of
  different types of overrides.
- verify the gradebook loads without issue.
- verify grade cells are correctly greyed out
  in the gradebook (students that do not have an
  assignment assigned to them should have their
  cell greyed out in that assignment's column)

Change-Id: I14f363351ac2a3b631c74f027003fda2bd79d81a
Reviewed-on: https://gerrit.instructure.com/72281
Tested-by: Jenkins
Reviewed-by: Cameron Matheson <cameron@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
Product-Review: Spencer Olson <solson@instructure.com>
2016-02-23 01:17:29 +00:00
Michael Nomitch 78571b40a5 DA - module evaluation efficiency
fixes CNVS-16367

test plan:
  - go to modules page and change stuff and save
    - things dont break
  - DA'd discussions/assignments/quizzes filter out
    of the modules page for students
  - the page for all student progressions works
    as it should

Change-Id: I8403e4c508169e7f3750f3ddc7494f4a4ed3f371
Reviewed-on: https://gerrit.instructure.com/43113
Reviewed-by: Cameron Sutter <csutter@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Sean Lewis <slewis@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
2014-10-28 19:11:47 +00:00