Skip to content
Snippets Groups Projects
  1. Oct 05, 2017
  2. Oct 03, 2017
    • Rob Orton's avatar
      api: only scope enrollment_states to section · 5eefccac
      Rob Orton authored
      fixes CNVS-39626
      
      test plan
       - have 2 enrollments in different sections same
         user and same course
       - conclude one of the enrollments
       - hit submission api for concluded enrollment
         section with enrollment state concluded
       - it should only have concluded enrollment 
      
      Change-Id: I321b876351b54df9e517d4c736e7d5fe4f234a3f
      Reviewed-on: https://gerrit.instructure.com/127795
      
      
      Tested-by: Jenkins
      Reviewed-by: default avatarJames Williams <jamesw@instructure.com>
      QA-Review: Tucker McKnight <tmcknight@instructure.com>
      Product-Review: Rob Orton <rob@instructure.com>
    • Rob Orton's avatar
      create multi_term_batch_mode · 383f9ef8
      Rob Orton authored
      fixes CNVS-39621
      
      test plan
       - run multi_term_batch_mode sis imports
       - it should remove excluded items from all
         included terms
       - run rake doc:api
       - api docs and sis_csv doc should generate and be
         clear
      
      Change-Id: I315b8bf4a78422a8b9f96cf330da6aa1553cacb8
      Reviewed-on: https://gerrit.instructure.com/127686
      
      
      Tested-by: Jenkins
      Reviewed-by: default avatarTyler Pickett <tpickett@instructure.com>
      QA-Review: Jeremy Putnam <jeremyp@instructure.com>
      Product-Review: Rob Orton <rob@instructure.com>
      383f9ef8
    • Keith Garner's avatar
      fix mgp related N+1s in courses API · 341a590c
      Keith Garner authored
      This patchset cleans up a few N+1s related to grading periods and
      scores when the courses API is called for a student with
      include=current_grading_period_scores and include=total_scores
      
      fixes GRADE-300
      
      test plan:
       - Have a few courses in an enrollment term with multiple grading
         periods set up.
       - Have a few courses in an enrollment term without MGP set up.
       - Register a student in those courses
       - As the student hit the courses API endpoint as:
         /api/v1/courses?include%5B%5D=needs_grading_count&include%5B%5D=syllabus_body&include%5B%5D=total_scores&include%5B%5D=term&include%5B%5D=permissions&include%5B%5D=current_grading_period_scores&include%5B%5D=favorites&include%5B%5D=tabs&per_page=99
       - Observe in the logs that grading period information and score
         information is only loaded once and not once per course
      
      Change-Id: I5c2caf23bb7f51274a0a482ac8b4f3135e887cd6
      Reviewed-on: https://gerrit.instructure.com/127447
      
      
      Reviewed-by: default avatarShahbaz Javeed <sjaveed@instructure.com>
      Tested-by: Jenkins
      Reviewed-by: default avatarJeremy Neander <jneander@instructure.com>
      QA-Review: Derek Bender <djbender@instructure.com>
      Product-Review: Keith T. Garner <kgarner@instructure.com>
      341a590c
    • wdransfield's avatar
      Unify create and update OriginalityReport endpoints · 7a11e9f5
      wdransfield authored
      Closes PLAT-2818
      
      Test Plan:
      - Using the Create endpoint API found at
        https://canvas.instructure.com/doc/api/originality_reports.html
        and specify an originality score.
      - Verify the originality report is created with the specified
        originality score and other data.
      - Repeat the exact same post request, but change the originality
        score value.
      - Verify the originality report is updated and a new one is not
        created.
      - Verify you can still update the originality report via the
        PUT endpoint found in the same docs.
      
      Change-Id: I4a2b8ad6f5b68e49a6195862cf7826fe31152bca
      Reviewed-on: https://gerrit.instructure.com/125944
      
      
      Tested-by: Jenkins
      Reviewed-by: default avatarAndrew Butterfield <abutterfield@instructure.com>
      QA-Review: August Thornton <august@instructure.com>
      Product-Review: Weston Dransfield <wdransfield@instructure.com>
      7a11e9f5
  3. Sep 30, 2017
  4. Sep 27, 2017
    • Mark Valentine's avatar
      add rubric range feature flag to cache key. · c935482f
      Mark Valentine authored
      Fixes: PFS-8712
      
      Test Plan:
      In environment with page caching -
      1.  View rubric page (account or course
          shouldn't matter)
      2.  Turn on "rubric criterion range" in
          account features.
      3.  Wait 5 minutes and View rubric page
          - range option should be available.
      4.  Turn off "rubric criterion range".
      5.  Wait 5 minutes and Reload rubric page
          - range option should not be available.
      
      To enable caching on a local dev environment:
      In config/environments/development.rb:
      
      1) config.cache_classes = true
      
      2) config.action_controller.perform_caching = true
      
      Change-Id: I43114086c1df903cc4ee103c0e63ce4f0018d8e5
      Reviewed-on: https://gerrit.instructure.com/127456
      
      
      Tested-by: Jenkins
      Reviewed-by: default avatarMatt Berns <mberns@instructure.com>
      QA-Review: Aiona Hernandez <ahernandez@instructure.com>
      QA-Review: Andrew Porter <hporter-c@instructure.com>
      Product-Review: Sidharth Oberoi <soberoi@instructure.com>
    • Transifreq's avatar
      update pt-BR translation · e8399569
      Transifreq authored
      Change-Id: I5268d3dc937fe65ccfbe535ef0d74c7da9cc8b55
      e8399569
    • James Williams's avatar
      fix offline course export rendering error · 47d9d10a
      James Williams authored
      and patch some other `render :text`s
      
      test plan:
      * check the "allow students to download course content"
       setting on the account level
      * on the modules page of a course, click on
       "export course content"
      * should not get an error
      
      closes #CNVS-39505
      
      Change-Id: I06e210b84f44756d85131853daff5d4a682e5fea
      Reviewed-on: https://gerrit.instructure.com/127347
      
      
      Tested-by: Jenkins
      Reviewed-by: default avatarDan Minkevitch <dan@instructure.com>
      QA-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
      Product-Review: James Williams  <jamesw@instructure.com>
      47d9d10a
    • Ryan Shaw's avatar
      Fix High Contrast for MS edge 15 · 8983bc0e
      Ryan Shaw authored
      Fixes: CNVS-38996
      
      If this style rule is included, the entire page
      Crashes in Edge 15. Not a server error, not a JS
      error, Edge itself crashes.
      
      UI-Devs: if you still want to have this different
      box-shadow in High Contrast mode, you could maybe
      toy with why it caused the page to crash or do it in a way
      That it doesn’t apply to Edge 15. But deleting it was
      The easiest way I found to fix the problem
      
      Test plan:
      * in edge 15 (you can go to modern.ie and launch a live edge 15 from 
        your normal browser for free)
      * log in and set your user settings to use high contrast
      * go to any page
      * edge should not crash and the page should display correctly
      
      Change-Id: I2df0da7e328f5200a9fe1fa9235d28bbb561a10a
      Reviewed-on: https://gerrit.instructure.com/127216
      
      
      Tested-by: Jenkins
      Reviewed-by: default avatarbrian kirkby <bkirkby@instructure.com>
      Reviewed-by: default avatarChris Hart <chart@instructure.com>
      QA-Review: Jeremy Putnam <jeremyp@instructure.com>
      Product-Review: Ryan Shaw <ryan@instructure.com>
      8983bc0e
    • Ed Schiebel's avatar
      Fix rogue scrolling by fixing $.windowScrollTop() · fe9e40e8
      Ed Schiebel authored
      With chrome 61, jquery's $.windowScrollTop() returns 0.  This fixes it.
      
      fixes OUT-1525
      
      Test plan
        - create an assignment in a course and add a rubric
        - make the browser window small enough that you can scroll down
          vertically
        - wait a few seconds
        > expect the window to stay still
      
      Be sure to test in chrome 61 and a few other browsers.
      
      Change-Id: Ie8992eb1f46207a0a3a94f7c48fcc8c4f34b3cba
      Reviewed-on: https://gerrit.instructure.com/126604
      
      
      Tested-by: Jenkins
      Reviewed-by: default avatarFelix Milea-Ciobanu <fmileaciobanu@instructure.com>
      QA-Review: Anju Reddy <areddy@instructure.com>
      Product-Review: Ed Schiebel <eschiebel@instructure.com>
      fe9e40e8
  5. Sep 26, 2017
  6. Sep 25, 2017
    • Jeremy Stanley's avatar
      allow default help link text to be edited · 730e5ce0
      Jeremy Stanley authored
      fixes CNVS-39004
      
      this was allowed before, but was disallowed because it broke I18n
      (see CNVS-37038). we will use the same technique we used with
      the menu name in CNVS-38421 to allow link text and subtext to be
      customized, or localized if it isn't customized; namely, we will
      not store the saved value if it matches the default value from
      the code in the locale of the user saving it.
      
      test plan:
       0. enable help links by doing the following in a Rails console:
      
          Setting.set("show_feedback_link", "true")
      
       1. still in the Rails console, clear existing custom link
          definitions, if present, as follows:
      
          a = Account.default
          a.settings.delete(:custom_help_links)
          a.save!
      
       2. start your server with RAILS_LOAD_ALL_LOCALES=1
      
       3. go to /accounts/1/settings and edit the text of one of
          the default help links (note the URL is still immutable).
          Save account settings.
      
       4. change your language to Spanish.
      
       5. go back to /accounts/1/settings, and the link text you
          edited should be what you set it to. the other links
          should be displayed in Spanish.
      
       6. edit another link and save.
      
       7. switch back to English. the two links you edited should
          remain edited; the others should now show in English.
      
      Change-Id: I44bd407c57f88166562b7e0745560133e78ad4ea
      Reviewed-on: https://gerrit.instructure.com/126948
      
      
      Reviewed-by: default avatarRob Orton <rob@instructure.com>
      Tested-by: Jenkins
      QA-Review: Heath Hales <hhales@instructure.com>
      Product-Review: Jeremy Stanley <jeremy@instructure.com>
      730e5ce0
  7. Sep 24, 2017