Commit Graph

616 Commits

Author SHA1 Message Date
Jacob Burroughs 7dcc507d0a Rubocop for ruby 3.1
[skip-stages=Flakey]

Change-Id: I6abefdfa9fed6dd4525c8786e93efa548b3710f2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/319603
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Isaac Moore <isaac.moore@instructure.com>
QA-Review: Jacob Burroughs <jburroughs@instructure.com>
Product-Review: Jacob Burroughs <jburroughs@instructure.com>
Build-Review: Jacob Burroughs <jburroughs@instructure.com>
Migration-Review: Jacob Burroughs <jburroughs@instructure.com>
2023-06-06 16:44:26 +00:00
Jackson Howe c196f5d48f Remove new_quizzes_modules_support flag
closes LF-290
flag = none

Test plan:
 (Requires a NQ connection to test)
 - Go to a course's modules page
 - Click '+' to add content to a module
 - Select each content type in the dropdown, and expect to see
   '[Create Assignment]', not '[New Assignment]' (or quiz, page, etc)
 - Select Quiz
 - Expect to be able to choose between NQ and CQ
 - Create a NQ and then a CQ
 - Open each quiz
 - Expect the quizzing engine to match the selected engine

Change-Id: I8a54874a78aace2c6a97250f704ecc0d6d61cb77
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/318759
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Jackson Howe <jackson.howe@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-05-23 16:44:03 +00:00
Jackson Howe 6c09ec71fc Remove submission_feedback_indicators flag
closes LF-285
flag = none

Test plan:
 - have an assignment with a rubric that uses
   free-form comments
 - as a student, submit the assignment
 - as a teacher, grade the assignment while leaving
   comments in the rubric in speedgrader
 - as a student, click the dashboard notification about
   the graded assignment to go to the submission details
   page
 - there should be an unread indicator next to the
   "Show Rubric" link
 - click "Show Rubric" and that indicator should go away
 - refresh the page and the indicator should still be gone

Change-Id: I382b6e580e46a780e246d58f572387c0ad0f2c14
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/318541
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Sarah Gerard <sarah.gerard@instructure.com>
QA-Review: Sarah Gerard <sarah.gerard@instructure.com>
Product-Review: Jackson Howe <jackson.howe@instructure.com>
2023-05-18 20:52:59 +00:00
Caleb Guanzon 294b38dcd7 make recent feedback section rqd aware
flag=restrict_quantitative_data
fixes VICE-3498

test plan:
- have a student be graded on a
points assignment, a percentage assignment,
a letter-grade assignment, and a complete-incomplete
assignment

- make sure that student is quantitative data restricted
- as the student visit your home page
- verify that recent feedback on the right
converts points and percent grades to letter-grade,
while leaving complete-incomplete and letter-grade grades
alone

Change-Id: Ic8961976c89bcb112dd65575c6e235f80be19baf
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/317789
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Allison Pittler <allison.pittler@instructure.com>
Reviewed-by: Chawn Neal <chawn.neal@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
2023-05-10 16:09:23 +00:00
Cody Cutrer 502aa068da rubocop: Layout/Multiline*LineBreaks
[skip-stages=Flakey]

Change-Id: I24912809267088bc19a4082c49bc5f78ca7b76bb
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/317302
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
Build-Review: Jacob Burroughs <jburroughs@instructure.com>
Migration-Review: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2023-05-01 19:31:42 +00:00
Jackson Howe 06902d53e1 Don't cache translated string in course settings
Constants in an AR model get loaded when the model is loaded, including
translated strings. If the user switches languages, the cached string
might be stale. Thus, use a lambda in the constant that calculates the
translated setting name instead of storing the translated value. An
alternative would have been to make this entire constant a method
instead of a constant, but this is a less intrusive solution since it
has a number of usages.

flag = none
closes LS-3947

Test plan:
 - Change user's language to something else (in the UI)
 - Go to course settings
 - Scroll down to visibility
 - Check "customize"
 - Expect "syllabus" and "files" to appear in the currently selected
   language

Change-Id: Ifcfb95476f1e8d4f97007bfad1ccea9b0e55aa07
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/316412
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Jackson Howe <jackson.howe@instructure.com>
2023-04-20 19:03:36 +00:00
Jackson Howe 80164d4cbd Make recent feedback url work for observers
The url to access submissions from the dashboard's recent feedback
sidebar was generating the subissions url with the observer's user
id, which does not work because the observer doesn't have a submission
in the course. Instead, construct the url with the id of the student
whom the observer is currently observing.

closes LS-3934
flag = none

Test plan:
 - Create an assignment in a course with a due date and online
   submission type
 - As a student, submit the assignment
 - As a teacher, leave a submission comment
 - As an observer (observing the student), open the dashboard and
   click the link to the comment in the recent feedback sidebar
 - Expect to be taken to the student's submission and see the comment

Change-Id: I52c16f4fc2efc885e4adc298b60a1140ac191b1d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/316066
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Luis Oliveira <luis.oliveira@instructure.com>
QA-Review: Luis Oliveira <luis.oliveira@instructure.com>
Product-Review: Jackson Howe <jackson.howe@instructure.com>
2023-04-17 20:41:04 +00:00
Eric Saupe d52cc9a058 Remove added space between LTI icon and label
Rendering external_tools/helpers/icon includes the new lines and spaces
that are present in the partial. Calling #squish on the output of that
partial in this helper will remove all the new lines and spaces but this
removes the html_safe flag on the out. Wrapping that entire thing in
the icon correctly and without spaces.

fixes LS-3926
flag=none

test plan:
- Create an LTI in a course with an icon
- Go to the course settings and verify the LTI is rendered with the icon
- Hover over the button and verify there isn't an extra space before
the label
- Inspect the HTML and verify there isn't an extra space or new line
between the icon and label

Change-Id: I954b65d5a6e2d2e2a6354235679d12023f15240c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/316073
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Jackson Howe <jackson.howe@instructure.com>
Product-Review: Eric Saupe <eric.saupe@instructure.com>
2023-04-14 20:24:31 +00:00
Cody Cutrer 7c37aa5f64 rubocop: prep for updating rubocop-rails
auto-correctable cops applied

[skip-stages=Flakey]

Change-Id: Ie80bdfd170d9233d4a750edce6be467c93f3493f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/315835
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2023-04-14 14:07:22 +00:00
Cody Cutrer 62fc5c033d rubocop: prep for updating rubocop-rspec
auto-correctable cops applied

[skip-stages=Flakey]

Change-Id: I17e18e2e1a230ef7b27f01ddb7e587045eabf97f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/315809
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2023-04-12 19:30:10 +00:00
James Logan 3fa8ec3567 Modules page doesn't show duplicating/failed_to_duplicate assignments
Launching duplicating/failed_to_duplicate new quizzes assignments
provides no value as the assignments do not yet exist, and is actually
destructive as it will create a blank assignment on the new quizzes
side with no connection to its parent assignment.

closes QUIZ-10828
flag=none

Test Plan:
- Create a BP parent course with a new quizzes assignment.
- ADD THE NQ ASSIGNMENT TO A MODULE.
- Create a child course.
- Ensure your live events are turned off and/or quiz lti is turned off.
- In the canvas rails console run this:
    Setting.set("quizzes_next_timeout_minutes", "1")
- Run a BPS.
- Check the child course.
  1. The Assignments/Quizzes list should have a spinner for the quiz.
  2. The modules list should have no entries.
- Wait 1 minute, then in the Canvas rails console run:
    Assignment.clean_up_duplicating_assignments
- Check the child course.
  1. The assignments/quizzes list should have an 'Oops!' entry for the quiz.
  2. The modules list should have no entries.
- Turn on quiz lti and your canvas live event streams.
- Run another BPS.
- Check the child course.
  1. The assignments/quizzes list should have a valid entry for the quiz.
  2. The modules list should have a valid entry for the quiz.

Change-Id: I971173ebca77e9ecfb152677092bd7f48f789d2b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/311411
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Marissa Pio Roda <marissa.pioroda@instructure.com>
QA-Review: Weston Dransfield <wdransfield@instructure.com>
Reviewed-by: Stephen Kacsmark <skacsmark@instructure.com>
2023-04-12 16:48:04 +00:00
Cody Cutrer dbfff50c2d rubocop: Layout
addresses minor changes in cops in rubocop 1.49

[skip-stages=Flakey]

Change-Id: I79503c905f59752d67391e70909e73441323faee
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/315160
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2023-04-12 14:57:56 +00:00
AJ Esa 1a2879b622 Fix bug where sso-icon does not populate
User login sso-icons were not showing in login information of the
user page. This was due to the lookup code for the svg not working,
when the view is checking if the svg exists. In my testing, the old
lookup code works for erb files but not svg files. This code change
will correctly check if the svg file exists.

fixes FOO-3368
flag=none

test plan:
 - Import user with authentication_provider_id set to canvas
 - Confirm login information of user shows canvas icon on user page

Change-Id: I09736471b5c317ce1b73a5f44439095c5547de2a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312704
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: August Thornton <august@instructure.com>
QA-Review: Ajmal Esa <ajmal.esa@instructure.com>
Product-Review: Ajmal Esa <ajmal.esa@instructure.com>
2023-03-13 16:34:48 +00:00
Chris Soto c51a310341 fix student unread grade content participation
currently when a student has unread grades in their grade
summary, the blue unread dots appear for 5 seconds then disappear.
the blue dots will display if reloaded and only permanently disappear
if the student clicks into the submission. new change will make it
so that when a student goes to summary page, the blue dots stay on
the screen but a bulk api call is made to mark all the unread
submissions as read. next time user loads the page the blue dots will
not be there.

fixes EVAL-2775
flag=visibility_feedback_student_grades_page
flag=assignments_2_student

test plan:
- as teacher, make 3 changes to student's grade for 3 different
  assignments
- as the student, view the grade summary page
- notice that the unread grade blue dots appear next to those 3
  assignments and do not disappear
- notice that the content participation count next to grades tab is
  correct with a count of 3
- as the student, refresh the grade summary page
- notice that the unread blue dots are no longer there and the content
  participation count should now be 0.

Change-Id: Ief3bbe12fafe5cb4b022126b2a3bcddedd220cd2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/308109
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Cameron Ray <cameron.ray@instructure.com>
Reviewed-by: Derek Williams <derek.williams@instructure.com>
Reviewed-by: Cameron Ray <cameron.ray@instructure.com>
QA-Review: Kai Bjorkman <kbjorkman@instructure.com>
2023-01-13 18:06:08 +00:00
August Thornton 7f07728730 improve recent submission filtering in eportfolios
refs OUT-1718
closes FOO-3281
flag = none

The ordering is the same for both views (and is working per the
docs linked above) with the exception that the “Recent Submissions”
filters out submissions belonging to assignments and their
respective context (i.e Course) that is not currently published.
It seems like we just missed the “Course Submission” view when
making that addition.

test plan:
- create a course
- create an assignment and publish it
- create another assignment and do not publish it
- create a quiz that has at least one text only
  question (such as an essay)
- add a student to the course
- as the student, create an ePortfolio (found under
  the 'account' submenu on the left-hand side)
- ensure that the unpublished assignment
  is not seen under "Recent Submissions"
- as the student, submit to the publushed assignment
- the eportfolio should now show that assignment
- as the student, take the quiz
- the quiz should still not show in the portfolio
- as the teacher, grade the assignment submission
- the submission should still show for the student
  in the portfolio
- as the teacher, grade the text only questions of
  the quiz
- the quiz should now show in the portfolio

Change-Id: I1e3383b14acb8e3323c4fd7c9de78621297db086
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/308514
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
Product-Review: Jesse Poulos <jpoulos@instructure.com>
QA-Review: August Thornton <august@instructure.com>
2023-01-10 22:55:55 +00:00
Derek Williams 4fc4538460 add submit for student file upload button and modal
closes EVAL-2685
closes EVAL-2686
closes EVAL-2687
closes EVAL-2688
flag=proxy_file_uploads

test plan:
- turn on proxy_file_uploads siteAdmin FF
- grant Teachers permission with proxy_assignment_submission
- create an assigment on a course with file_upload submissions
- as a teacher, navigate to that assignment in gradebook
- notice 'Submit for Student' button on the submission tray
- upload a file and see that it saves to the student's folder
- click 'submit' to save the submission
- notice that the proxy submitter is saved on the submission
- verify proxy upload indicator appears in the following places
    - gradebook submission tray
        - SubmissionTray.tsx
    - speedgrader
        - submissions_dropdown.handlebars
    - A2 student views
        - SubmissionWorkflowTracker.js
    - A1 student views
        - submission_sidebar.html.erb
        - views/submissions/show.html.erb

Change-Id: I2b9a7b8a5d1bd7c31bd2fe0c15b3316ce8b7e4bc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304943
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
Reviewed-by: Cameron Ray <cameron.ray@instructure.com>
Migration-Review: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Christopher Soto <christopher.soto@instructure.com>
Product-Review: Deborah Kwak <deborah.kwak@instructure.com>
2023-01-03 21:28:01 +00:00
Chris Soto 76afb69d7a possible_points feedback visibility grades
With feedback visibility flag we combined the out of and score
columns. This change adds the out of total for all special classes
which are total and group grades

fixes EVAL-2785
flag=visibility_feedback_student_grades_page

test plan:
- have a course with students and assignments/groups
- grade some of the assignments for some of the students
- verify that next to the Assignments row, any group rows,
  and the Total score row, that you can see the out of values
  or 0.00/0.00 if the score is N/A

Change-Id: I0df604faca6e53721baff1e3eae304f666604dfa
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/307522
Reviewed-by: Eduardo Escobar <eduardo.escobar@instructure.com>
Reviewed-by: Cameron Ray <cameron.ray@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Kai Bjorkman <kbjorkman@instructure.com>
Product-Review: Deborah Kwak <deborah.kwak@instructure.com>
2022-12-19 20:38:34 +00:00
Eduardo Escobar 40db35f752 Revert "remove title attribute from icons in score column"
This reverts commit 61e81a8855.

Reason for revert: build issue

Change-Id: I6f1a52075eff6da7bf3955722834871feae759dc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/307100
Reviewed-by: Christopher Soto <christopher.soto@instructure.com>
Reviewed-by: Cameron Ray <cameron.ray@instructure.com>
QA-Review: Eduardo Escobar <eduardo.escobar@instructure.com>
Product-Review: Cameron Ray <cameron.ray@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-12-13 21:27:09 +00:00
Eduardo Escobar 61e81a8855 remove title attribute from icons in score column
closes: EVAL-2763
flag=none

Test Plan:
- have a published course.
- have a course with a teacher and a student.
- have an assignment created.
- as the teacher using the speedgrader or gradebook
  grade the student.
- as the student go to the grade summary page.
- hover over the values of the grade column.
- ensure only "Click to test a different score"
  custom tooltip is present.

Change-Id: I2cac720d658de301ff6bd14393da7dd5cc0a0d0f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/306559
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Kai Bjorkman <kbjorkman@instructure.com>
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
QA-Review: Kai Bjorkman <kbjorkman@instructure.com>
Product-Review: Deborah Kwak <deborah.kwak@instructure.com>
2022-12-13 19:52:32 +00:00
Chris Soto 30ba119c0b assignment enhancements print urls
fix issue where when assignment enhancements flag
is on, when trying to print grades from student
grade page, it shows the speed grader url

fixes EVAL-2679
flag=assignments_2_student

test plan:
- have a course with a text assignment that is due
- with assignments_2_student flag on, navigate to
  individual student grade page as a teacher
- for the text assignment, verify the url of the
  assignment title navigates to speed grader page
- from the student grade page, right click and go
  to print the page
- verify in the pdf preview that the url for the
  assignment doesn't exist
- before the fix, the url would be displayed

Change-Id: I1bd3e059cc7f73dab932ecc2d32e3d58bb654d73
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/305548
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Derek Williams <derek.williams@instructure.com>
Reviewed-by: Kai Bjorkman <kbjorkman@instructure.com>
Product-Review: Deborah Kwak <deborah.kwak@instructure.com>
QA-Review: Kai Bjorkman <kbjorkman@instructure.com>
2022-11-29 16:46:50 +00:00
Ethan Knapp 57dff67b5d add setting to limit profile editing by non-admins
Test Plan:
1. Validate that a non-admin user can modify their name, profile links,
    bio and communication channels
2. Disable the respective settings in the Account settings tab
3. Validate that the non-admin user can no longer edit the listed items
4. Validate that the API does not allow these changes either

flag=none

refs PFS-20887

Change-Id: I0d852613a64ee763c6de1bca8797f226c74f5f43
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304025
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Vaughn Hepworth <vhepworth@instructure.com>
QA-Review: Douglas Rist <douglas.rist@instructure.com>
2022-11-01 21:21:07 +00:00
Jacob Burroughs be5fed6c45 Fix a bunch of erb related specs on rails 7.0
[ignore-stage-results=Flakey Spec Catcher]

Change-Id: Iabf5cb78da428849f89e7e7d02c35d76afc7dafb
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304423
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Alex Slaughter <aslaughter@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: Jacob Burroughs <jburroughs@instructure.com>
Product-Review: Jacob Burroughs <jburroughs@instructure.com>
2022-11-01 15:13:13 +00:00
paulo.chaves df736a8f95 Add blue dot to unread grade
- Blue dot styling refactor
- Add specs for unread grade, comment and rubric on grade summary
- Doesn't show the blue dot if submission is not posted
- Remove unread grade blue dot after 5 seconds
- Fix blue dot position if a RTL lang is selected

closes EVAL-2542
flag=assignments_2_student
flag=visibility_feedback_student_grades_page

Test Plan:
  - Enable the "Assignment Enhancements - Student" feature flag
  - Enable the "Improve Feedback on Students Grade Page" feature flag
  - Have a course with at least two students
  - Have a published assignment (post grades - automatically)
  - As a student submit the assignment
  - As a teacher grade the student
  - As a student, when landing on the grades page the blue dot
    shows up on the grade
    - That blue dot should disappear after 5 seconds
    - If the page is reloaded the blue dot should be gone because
      the grade is marked as read when the user views the grade
    - And if the teacher changes the grade the blue dot should
      appear again.

  - Have a published assignment (post grades - manually)
  - As a student submit the assignment
  - As a teacher grade the student
  - As a student, when landing on the grades page, you
    should see no blue dot on the grade

Change-Id: I7f40137049ca00bb69cd0b50129b13f6cc6af19c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/302822
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
Reviewed-by: Cameron Ray <cameron.ray@instructure.com>
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
QA-Review: Cameron Ray <cameron.ray@instructure.com>
Product-Review: Deborah Kwak <deborah.kwak@instructure.com>
2022-10-18 14:37:05 +00:00
Aaron Ogata 97dffd25ee introduce bootsnap
refs DE-1383

Change-Id: I6ab3efff2328717a74626a4fc2b4e171e41bcb06
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/293150
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: Aaron Ogata <aogata@instructure.com>
2022-10-04 13:18:03 +00:00
Samuel Lee 0a0d3a2cdd Newly graded assignment badge doesn't decrement
Fixed bug where badge next to grade does not disappear once student
refreshes or leaves the grade summary page while
Assignment Enhancement - Student feature flag is on.
Also fixed bug where badge count does not increment when teacher grades
assignment while Assignment Enhancement - Student feature flag is on.

flag=assignments_2_student
Fixes EVAL-2514

Test Plan:
1. Turn on the Assignment Enhancement - Student feature flag
2. Have a course with a student and at least one assignment
3. As a teacher/admin, grade the assignment in the course
for that student
4. Go to the student profile and on the grades tab
you should see a badge with the unread graded count of 1
5. Click the grade tab to enter the grade summary page.
6. You should notice that the badge count does not go away and
there is a blue dot next to the graded assignment.
7. Refresh or go to another link and you should see that the
badge count goes away.
8. Regrade the assignment with a different grade
and check to see if the badge reappears with a 1
9.Turn off feature flag and see that the old functionality
still exists.

Change-Id: Ifc02903745b71e39e46804dd0c499bac909f367b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/295491
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Kai Bjorkman <kbjorkman@instructure.com>
Product-Review: Jody Sailor
Reviewed-by: Kai Bjorkman <kbjorkman@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
2022-08-17 21:36:40 +00:00
Spencer Olson 6bcb11c733 remove flag edit_submission_status_from_speedgrader
closes EVAL-2564
flag=edit_submission_status_from_speedgrader

Test Plan:
- specs pass

Change-Id: Ieb5c451a819c897b5d7af9aa9a62323728fc2292
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/298289
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Spencer Olson <solson@instructure.com>
Product-Review: Spencer Olson <solson@instructure.com>
Reviewed-by: Samuel Lee <samuel.lee@instructure.com>
Reviewed-by: Kai Bjorkman <kbjorkman@instructure.com>
2022-08-17 18:05:34 +00:00
paulo.chaves cc98f803fc Show a blue dot when a rubric is graded
Show blue dot on the region surrounding
the rubrics icon when a rubric is graded
or a comment is added

Closes EVAL-2419
flag=visibility_feedback_student_grades_page

test plan:

- Have a graded assignment with a rubric and
  peer reviews (manually assign peer reviews)
  and at least two students where one assesses
  each others assignments, or you can assess
  as a teacher via SpeedGrader where you
  select the student then click on the rubric
  - With the FF on:
    - As a teacher go to SpeedGrader and make
      a comment on the rubric or grade it.
      Or as a student peer review the other
      student's submission.
    - As the student who owns the submission
      go to the grades page
    - The rubric icon should be present with
      a gray region surrounding it. The blue
      dot should also show up
    - The blue is removed when clicking on
      the rubric icon. The blue dot should
      not show up after refreshing the page
  - With the FF off:
    - As a teacher go to SpeedGrader and make
      a comment on the rubric or grade it.
      Or as a student peer review the other
      student's submission.
    - As the student who owns the submission
      go to the grades page
    - Only the icon without the gray region
      and blue dot should appear

Change-Id: I13f255d40e1471a4df56747af2304315c0588072
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/295765
Tested-by: Paulo Chaves <paulo.chaves@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
Reviewed-by: Kai Bjorkman <kbjorkman@instructure.com>
QA-Review: Kai Bjorkman <kbjorkman@instructure.com>
Product-Review: Jody Sailor
2022-07-19 20:44:19 +00:00
Jacob Burroughs 24eb2672bb Rip out google analytics
fixes FOO-3006

Change-Id: I41b1b071ef5421ef176a1db55c379fcdd540ed5c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/295706
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ben Rinaca <brinaca@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
QA-Review: Jacob Burroughs <jburroughs@instructure.com>
2022-07-07 23:01:14 +00:00
Jacob Burroughs 0d642c7506 Some little rails 7.0 spec fixes
Change-Id: Id62960940fbc59563668be147888a8696ccbbdbe
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/293448
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Alex Slaughter <aslaughter@instructure.com>
QA-Review: Jacob Burroughs <jburroughs@instructure.com>
Product-Review: Jacob Burroughs <jburroughs@instructure.com>
2022-06-08 16:14:47 +00:00
Eduardo Escobar 955fcc8950 render list of peer reviews in modules view
fixes EVAL-2436
flag=assignments_2_student
flag=peer_reviews_for_a2

test plan:
- enable the FF "Assignment Enhancements - Student".
- enable the FF "Peer Review Support in Assignment
  Enhancements".
- have a published course.
- have a course with a teacher and at least 2
  students.
- create an assignment A1 with "Peer Reviews"
  enabled and the "Peer Reviews Appear Anonymously"
  disabled.
- create an assignment A2 with "Peer Reviews"
  enabled and the "Peer Reviews Appear Anonymously"
  enabled.
- assign some peer reviews to the students for
  both assignments A1 and A2.
- as a student go to the "Modules" tab.
- notice the list of peer reviews is present
  for each assignment.
- when the student clicks on the peer review
  for A1 it should redirect to
  /assignments/:assignment_id?reviewee_id=:id
- when the student clicks on the peer review
  for A2 it should redirect to
  /assignments/:assignment_id?anonymous_asset_id=:id
- disable the FF "Peer Review Support in Assignment
  Enhancements".
- notice the list of peer reviews is not present
  anymore.

Change-Id: I471a1b0fa98129c47cdd8c719ccf1100fa748853
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/291575
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Kai Bjorkman <kbjorkman@instructure.com>
Product-Review: Jody Sailor
Reviewed-by: Spencer Olson <solson@instructure.com>
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
2022-06-06 19:42:21 +00:00
Syed Hussain 3d77ea01da Direct admins and instructors to Speedgrader from grades page
closes EVAL-2149
flag=assignments_2_student

Test plan:
Have a site admin, admin, teacher, student and observer  with:
- an assignment and
- an anonymous grading assignment

1. With the FF ON, go to the student grades page for the
assignment (not anonymously graded) and click on the
assignment title:
1.1. As a student and observer, make sure it shows the
assignment in the improved assignment submission flow
1.2. As an admin, see that it takes you to speedgrader for
that assignment and student
1.3. Repeat 1.2. as a teacher and site admin

2. With the FF OFF, go to the student grades page for the
assignment (not anonymously graded) and click on the
assignment title:
2.1. As a student, see that you go to the old submission
details page
2.2 Repeat 2.1. as a teacher, admin, site admin

3. With the FF ON, go to the anonymous grading assignment
and click on the assignment title:
3.1. student and observer see the improved assignment
submission flow
3.2. link is hidden for teacher and admin
3.3. takes the site admin to speedgrader

4. With the FF OFF, go to the anonymous grading assignment
and click on the assignment title:
4.1. student goes to old submission details page
4.2. link is hidden for teacher and admin
4.3. site admin goes to old submission details page

Change-Id: I9f8e6d75b9151123616e07db2265cd4e07968bd8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/290382
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
Reviewed-by: Paulo Chaves <paulo.chaves@instructure.com>
QA-Review: Kai Bjorkman <kbjorkman@instructure.com>
Product-Review: Jody Sailor
2022-06-03 13:24:59 +00:00
paulo.chaves 0790fac9f3 Add region around icon and show blue dot
closes EVAL-2323, EVAL-2324
flag=visibility_feedback_student_grades_page

test plan:

- Have a graded assignment with comments and
  a rubric
- With the FF on:
  - Go to the students grade page
  - If there is any comment for an assignment
    - There should be a gray region around the
      comment icon and the number of comments
      right next to the icon
    - If any unread comment for an assignment
      the blue dot should show up in the
      top-right corner
  - If there is any rubric for an assignment
    - There should be a gray region around the
      rubric icon
    - If a comment is added and unread by
      a student the blue dot should show up
      in the top-right corner
- With the FF off:
  - Go to the students grade page
  - If any comment is present only the icon
    without the gray region surrounding it
    should appear
  - if any rubric is present only the icon
    without the gray region should appear

Change-Id: I5f3a303c1ab2e14796c75fceb0706476a11b77e2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/289708
Reviewed-by: Eduardo Escobar <eduardo.escobar@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
QA-Review: Eduardo Escobar <eduardo.escobar@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Jody Sailor
2022-05-27 22:00:15 +00:00
Jackson Howe 0bbc82576d Add org_type to fullstory data
closes LS-1502
flag = none

Test plan:
 - In a rails console, run:
   Account.site_admin.external_integration_keys.create!(key_type: "salesforce_org_type", key_value: "Higher Ed")
 - In config/dynamic_settings.yml, set
   development.config.canvas.fullstory.sampling_rate to '1.0'
 - Restart rails server and log user out
 - Log in (as a siteadmin user)
 - Inspect the head section of the html (search for org_type_str)
 - Expect to see "org_type_str: 'Higher Ed'" in FS.setUserVars

Change-Id: Ie66668234ca78197f2b6cff8dd877a08f938478c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/291706
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
QA-Review: Ed Schiebel <eschiebel@instructure.com>
Product-Review: Jackson Howe <jackson.howe@instructure.com>
2022-05-12 15:28:54 +00:00
Isaac Moore 11b0a9a4b8 Add page for managing internal settings
This adds a new page where Site Admin users can manage `Setting`s (aka,
"Internal Settings"). This can be done on the Site Admin settings page,
on the "Internal Settings" tab. Only Site Admin users see and may access
this tab.

The table displayed renders each setting and its value, and offers the
ability to edit or delete each setting. New settings may also be added.
Settings denoted internally as `secret` will be displayed, but their
values obscured. These settings may not be edited or deleted from the UI.

There is also a "Download as..." button that allows all internal settings
(except for secret ones) to be downloaded in JSON or CSV format.

closes DE-1136
flag=none

test plan:
- confirm that, as a site admin, you can add, edit, and delete internal
  settings from the "Internal Settings" tab
  (note: you can edit a setting by clicking on its value)
- confirm the table is sortable by clicking on the column headers
- confirm the table is downloadable by choosing either the JSON or CSV
  options
- confirm that your changes are reflected in the database, and in
  `Settings.get` once settings have been reloaded
- confirm that, as a non-site admin user, you can not see the Internal
  Settings tab

Change-Id: Ia143bf40e85b43a1db2f6fcc2791718179c351c4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/290906
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: Isaac Moore <isaac.moore@instructure.com>
2022-05-02 20:34:33 +00:00
paulo.chaves abd5853d1f Show out of value with Score
closes EVAL-2322
flag=visibility_feedback_student_grades_page

test plan:

- Have some graded assignment
- With the FF on:
  - Go to the students grade page
  - There should not be a `Out of` column
  - The `Score` column should now show the
    score with the format `Score/Points possible`
- With the FF off:
  - Go to the students grade page
  - There should be a `Score` column
  - There should  be a `Out of` column

Change-Id: Ibde7fa54e1ba20ae46d50fcc0480ab9f8c9c9723
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/288867
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
Reviewed-by: Eduardo Escobar <eduardo.escobar@instructure.com>
QA-Review: Eduardo Escobar <eduardo.escobar@instructure.com>
Product-Review: Jody Sailor
2022-04-19 14:55:10 +00:00
Xander Moffatt 60e5eb9121 refactor: normalize tool loading in modules index
why:
* placements added after the modules page was created were loading
tools in separate queries and formats
* there was already a hash of placement -> tool but instead newer
placements were using separate variables

* standardize calls to external_tools_menu_items for all placements
* load tools for newer placements during same call for older
placements
* ignore tools for tray placements if FF is disabled, as before
* group all tool definitions sent to front end for consistency

refs INTEROP-7294
flag=none

test plan:
* with a tool with assignment_menu, module_menu, module_index_menu,
module_group_menu,
 and module_index_menu_modal placements configured
* with these feature flags enabled on the root account:
  * commons_favorites
  * lti_multiple_assignments_deep_linking
  * lti_deep_linking_module_index_menu_modal
* launching the tool from all of these placements should work before
and after this commit is checked out:
(don't forget to run webpack)
  * module_index_menu: 3-dot menu at the top of
  the page, opens a side tray and launches tool
  * module_index_menu_modal: 3-dot menu at the top of the page, opens a
  modal and launches tool with deep linking request
  * module_menu: 3-dot menu in each module, redirects to tool in new
  page with module_menu placement
  * module_group_menu: same place, opens a side tray and launches tool
  * assignment_menu: add a normal assignment to a module and click on
  the 3-dot menu of the assignment, launching the tool redirects to the
  tool with the assignment_menu placement in a new page

Change-Id: I8e5c338f27443b03a4710fb577194f5b9509d1e4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/287767
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Xander Moffatt <xmoffatt@instructure.com>
Reviewed-by: Tucker Mcknight <tmcknight@instructure.com>
QA-Review: Tucker Mcknight <tmcknight@instructure.com>
2022-04-11 20:02:30 +00:00
Spencer Olson 70838f0c98 add submission comment emojis 🎉
closes EVAL-2302
flag=submission_comment_emojis

Test Plan:
1. Verify a 'Emojis in Submission Comments' Course Feature Flag exists
   (needs to be enabled at SiteAdmin level before visible at account and
   course level). Enable the feature at the SiteAdmin account.
2. In the Account settings for your root account (not the SiteAdmin
   account), 'unlock' the feature. Then, go to settings for the root
   account and verify there is a 'Blocked Emojis' section. Click the
   emoji picker, select 😬, and then click 'Update Settings' at the
   bottom of the page.
3. Enable the feature flag in a course.
4. At the following pages, verify that the submission comment textarea
   now includes an emoji 'picker' (button that opens a menu to pick
   an emoji) and a emoji 'quick picker toolbar' (three emoji buttons
   below the textarea, that when clicked insert the pictured emoji into
   the textarea. The icons shown include the most recently used emoji
   and the two most popular emojis. By default, 👍, 👏, and 😀 are
   shown.

   Logged in as a student:
     - "Assignment Enhancement — Student" page
     - Submission Details page
     - "Submit Assignment" page (with "Assignment Enhancement —
       Student" disabled). Make sure to check the textarea for each
       submission type (easiest way to do this is to create an
       assignment and click the checkbox for every submission type).

   Logged in as a teacher:
     - Gradebook
     - SpeedGrader

5. Verify the 😬 emoji is not available in the emoji picker at any of
   those pages listed above.
6. Disable the feature flag and verify at the pages listed above that
   the emoji 'picker' and emoji 'quick picker toolbar' are no longer
   shown.

Change-Id: I2c790904927a897bfb0ac30091a5bafb291fd115
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286283
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Kai Bjorkman <kbjorkman@instructure.com>
Reviewed-by: Eduardo Escobar <eduardo.escobar@instructure.com>
QA-Review: Kai Bjorkman <kbjorkman@instructure.com>
Product-Review: Jody Sailor
2022-03-17 14:46:07 +00:00
Aaron Ogata bbd28c647a fix shared/_fullstory_snippet.html.erb specs
refs FOO-2746

Change-Id: I73b071445c18b0566bc3fede08ff4ecac07094b0
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/287148
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
2022-03-15 23:41:05 +00:00
Luis Oliveira 9d581ee792 Removes covid responsive flagging
closes: LS-858
flag=none

test plan:
- Confirm that responsive behavior sill works as it would
with the removed flags (responsive_awareness and responsive_misc)  ON

Change-Id: Ia34f8c273db756fcc24f1412b4c3f7f5d88efc12
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/285420
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
QA-Review: Ed Schiebel <eschiebel@instructure.com>
Product-Review: Luis Oliveira <luis.oliveira@instructure.com>
2022-02-17 21:43:00 +00:00
Charley Kline 0517710926 Replace some href-less <a> with <buttons> for Voiceover
Fixes FOO-2545
flag=none

See the description in the ticket; when "buttons" are
instead coded as <a href="#" ...> it can confuse some
screenreaders because they think we're navigating to a
new page and thus restart at the top.

Converted everything called out in the ticket from
<a> to <button> as appropriate. Also did a few other
<a href="#" ...> elements as I saw them. Eventually we
should clean all of these up everywhere but that's
beyond the scope of this ticket.

Test plan:
* See the problem description in the ticket
* Voiceover should now navigate the page properly

Change-Id: Ic742c72c74d41380a13a4e5c0158eb59ea8f7f33
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282127
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: August Thornton <august@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Daniel Sasaki <dsasaki@instructure.com>
2022-01-06 19:08:37 +00:00
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 e73cf9ddf4 RuboCop: Style/HashSyntax
[skip-stages=Flakey]

auto-corrected

Change-Id: I9371a61046aee6b148f89dd434114a8ba2b1188c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/279533
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@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:02:35 +00:00
Cody Cutrer eaca556b81 RuboCop: Style/NumericLiterals
[skip-stages=Flakey]

auto-corrected

Change-Id: I88363d87d5a70be941aa81b4ffe5306ce7506b98
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/279207
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Migration-Review: Cody Cutrer <cody@instructure.com>
2021-11-24 23:31:34 +00:00
Cody Cutrer 9b71ed2054 RuboCop: Style/BlockDelimiters, Style/Lambda
[skip-stages=Flakey]

auto-corrected

Change-Id: I642f868d75c079e698f1fe4161bbbe419dbe1827
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/279374
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Migration-Review: Cody Cutrer <cody@instructure.com>
2021-11-23 21:30:47 +00:00
Cody Cutrer c302dd8bc1 RuboCop: Style/SymbolArray, Style/WordArray
[skip-stages=Flakey]

auto-corrected

Change-Id: Id187ed60c5590025e780d81b85b5212f51368f27
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/279196
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Migration-Review: Cody Cutrer <cody@instructure.com>
2021-11-23 14:30:08 +00:00
Cody Cutrer efc87c595a RuboCop: Style/LineEndConcatenation
[skip-stages=Flakey]

auto-corrected, with post review looking for opportunities to convert
to heredocs

Change-Id: Ic163882ebb5f4d2d28b5e5fd65188781d8eef3c8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/279287
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2021-11-23 03:13:13 +00:00
Cody Cutrer dbfd4d4de4 RuboCop: Style/TrailingCommaInArguments
[skip-stages=Flakey]

auto-corrected

Change-Id: I042349a67e1473a0db9b07e66e13c149e5c92b55
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/278845
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2021-11-19 22:22:20 +00:00
Cody Cutrer b8e71beae4 RuboCop: Style/RedundantFileExtensionInRequire
[skip-stages=Flakey]

auto-corrected

Change-Id: Ie207afc9f417a60b88296380256c36966ae78ab8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/278788
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2021-11-19 01:40:50 +00:00
Cody Cutrer c4bc112611 RuboCop: Style/MethodCallWithoutArgsParentheses
[skip-stages=Flakey]

auto-corrected

Change-Id: Idcbd419ab2196101398715e6b8cdd8d70ae5c587
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/278698
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Migration-Review: Cody Cutrer <cody@instructure.com>
2021-11-18 23:07:30 +00:00
Cody Cutrer a0096a3375 RuboCop: Style/BarePercentLiterals
[skip-stages=Flakey]

auto-corrected

also enable Style/PercentQLiterals forcing uppercase with it, so that
both %q and %Q get changed to bare %

Change-Id: I91389c18d864b3ec638c6cd366c2c74f78c69a57
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/278673
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2021-11-18 23:06:03 +00:00