Commit Graph

10 Commits

Author SHA1 Message Date
Landon Gilbert-Bland 659169db57 Add eslint and refactor a few things
Test Plan:
  - Nothing breaks

fixes COMMS-2301

flag = assignments_2

Change-Id: I12cd92265eb5a282bda5d9da1bcc2a0d26768e0f
Reviewed-on: https://gerrit.instructure.com/205048
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Reviewed-by: Steven Burnett <sburnett@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
Tested-by: Jenkins
2019-08-14 19:53:31 +00:00
Ryan Shaw d2a84ecc9b eslint —fix page_views.js
Change-Id: Ib1f2fda1d78e8437e5831376cf4565e48a7aed5b
Reviewed-on: https://gerrit.instructure.com/196415
Tested-by: Jenkins
Reviewed-by: Steven Burnett <sburnett@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-06-04 23:10:32 +00:00
Aaron Hsu 020121e22b add shared components to eslint + prettier formatting
Change-Id: I130160e2e504bf161e17892b87a0319b972fb63d
Reviewed-on: https://gerrit.instructure.com/183770
Tested-by: Jenkins
Reviewed-by: Steven Burnett <sburnett@instructure.com>
Reviewed-by: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-03-05 20:12:40 +00:00
Brent Burgoyne 4e3592bc99 format external_tools tinymce plugin with prittier
refs CORE-2286

test plan:
- no functional change
- tests pass

Change-Id: Ie44541949105a016ef2485b9cf6e8128a6490280
Reviewed-on: https://gerrit.instructure.com/177780
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Clay Diffrient <cdiffrient@instructure.com>
Product-Review: Brent Burgoyne <bburgoyne@instructure.com>
2019-02-05 17:13:38 +00:00
Clay Diffrient cb54b2631d Add app/jsx/course_settings to the prettier whitelist
Test Plan:
  - Automated tests pass

Change-Id: I25aaf3e4789e7af73b4a6b85d4804d68767a4295
Reviewed-on: https://gerrit.instructure.com/178285
Tested-by: Jenkins
QA-Review: Tucker Mcknight <tmcknight@instructure.com>
Reviewed-by: Brent Burgoyne <bburgoyne@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2019-01-23 14:44:10 +00:00
Derek Bender ca2b55c4df add speed_grader*.js to prettier list
Change-Id: I0ef5b2fa8960a418d6f33b7a1d0ee0616f912f07
Reviewed-on: https://gerrit.instructure.com/177878
Tested-by: Jenkins
Reviewed-by: Jeremy Neander <jneander@instructure.com>
QA-Review: Derek Bender <djbender@instructure.com>
Product-Review: Derek Bender <djbender@instructure.com>
2019-01-15 15:28:04 +00:00
Jeremy Neander 06accf997a spec: add grading front end files to prettier whitelist
test plan:
 * Verify Jenkins passes

Change-Id: I248656c342a0b949acb2bd299d587b9ee21bdc21
Reviewed-on: https://gerrit.instructure.com/177864
Tested-by: Jenkins
Reviewed-by: Keith Garner <kgarner@instructure.com>
QA-Review: Jeremy Neander <jneander@instructure.com>
Product-Review: Jeremy Neander <jneander@instructure.com>
2019-01-14 23:34:13 +00:00
Derek Bender 21e45fa076 move final grades override setting to modal
closes: GRADE-1867

test plan:
 - checking and unchecking the final grade override checkbox still works
 - interacting with both the late policies and the advanced tab works as
   expected (two separate requests that both fire on save)
 - interacting with just the late policies tab does not trigger a
   request to save the gradebook settings
 - interacting with just the advanced tab settings does not trigger a
   request to save late policy settings

Change-Id: I5c5bfdc7c62cf0adec64d06b8e2af88c4f39ff7a
Reviewed-on: https://gerrit.instructure.com/175559
Reviewed-by: Gary Mei <gmei@instructure.com>
Reviewed-by: Keith Garner <kgarner@instructure.com>
Tested-by: Jenkins
QA-Review: Adrian Packel <apackel@instructure.com>
Product-Review: Jonathan Fenton <jfenton@instructure.com>
2019-01-07 15:44:51 +00:00
Clay Diffrient 6cc657c9ad Add security tab to account settings page
closes CORE-2106

Test Plan:
  - Enable Content Security Policy feature flag
  - Go to account settings
  - There should be a tab there that says 'Security'
  - Clicking it should show you some placeholder text

Change-Id: Id34feba1b831d57951a0ba5ab2b717af29a5f449
Reviewed-on: https://gerrit.instructure.com/171476
Tested-by: Jenkins
QA-Review: Tucker Mcknight <tmcknight@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
Reviewed-by: Brent Burgoyne <bburgoyne@instructure.com>
2018-12-05 18:07:19 +00:00
Clay Diffrient 93a6d18046 Add precommit hook for auto fixing files
This only affects javascript files and only affects things
from the prettier whitelist

This will run slowly if you don't have node_modules installed
locally (e.g., in Docker), but it will gladly attempt to
run things in Docker for you.

This adds a new githook_installer image that will install
the githook whenever a docker-compose up happens in the
repo.  It will also install the hook whenever a `yarn`
occurs locally (as a postinstall hook).

This commit should also not fail things.  For example
having unused variables is an ESLint error, but it isn't
autofixable.  It will log the error, but will otherwise
continue.  However, it will make this pretty with prettier
as well as fix any other autofixable ESLint errors.

closes CORE-2118

Test Plan:
  - Run `yarn`
  - Add some semicolons to something from the whitelist
  - git add that file
  - git commit and it will strip semicolons
  - In a dockerized Canvas:
     - docker-compose up
     - Add semicolons to a file
     - git add that file
     - git commit, it will take forever (~60s)
     - It should have stripped out semicolons

Change-Id: Id9198aa008808e898f29acb9ed64dd14ff843222
Reviewed-on: https://gerrit.instructure.com/171510
Tested-by: Jenkins
Reviewed-by: Brent Burgoyne <bburgoyne@instructure.com>
QA-Review: Brent Burgoyne <bburgoyne@instructure.com>
Product-Review: Brent Burgoyne <bburgoyne@instructure.com>
2018-11-27 21:07:31 +00:00