1. 18 Oct, 2016 2 commits
    • [TNL-5632] Optimize the single_thread view. · 6704e17a
      Firstly, we're now explicitly instructing the comments service to not
      return thread responses/comments if the request isn't AJAX.  So, if you
      load the URL for a single discussion thread in your browser, this would
      be a non-AJAX call and we'll avoid loading the responses for the entire
      thread behind-the-scenes.  Big win here for large threads.
      
      Next, we removed a redundant "get threads" call which was also happening
      behind-the-scenes.  This call was redundant as the front-end JS also
      grabs the thread list when a topic is chosen, so we were making an
      extranenous call for no benefit.  Poof, gone!
      
      Finally, we added some caching of database queries that are required to
      drive a lot of the permissions/cohorts machinery around discussion.
      This will have a minimal effect but introduced a cleaner way to apply
      general memoization at the per-request level which will let us further
      cache things as we identify them as issues.
      Toby Lawrence committed
  2. 14 Oct, 2016 3 commits
  3. 13 Oct, 2016 2 commits
  4. 12 Oct, 2016 3 commits
  5. 11 Oct, 2016 5 commits
  6. 07 Oct, 2016 10 commits
  7. 06 Oct, 2016 6 commits
  8. 05 Oct, 2016 1 commit
  9. 03 Oct, 2016 2 commits
    • Have DiscussionXBlock take care of loading JS and CSS files it depends on. · baa9d06e
      * Add openedx.core.lib.xblock_builtin.get_css_dependencies and get_js_dependencies,
        which respect PIPELINE_ENABLED setting when determining dependencies.
      * Move new discussion-related Sass files into discussion subdirectory.
      * Use "load_unicode" instead of "render_template" to load JS to add to fragment for DiscussionXBlock.
      * Remove unused "course" parameter from context for DiscussionXBlock.student_view.
      * Add RTL stylesheet for DiscussionXBlock, and enable the block to load correct stylesheet.
      * Load MathJax only once, and include code for configuring MathJax in discussion bundle.
      * Make sure username renders correctly in DiscussionXBlock response header.
      * Move WYSIWYIG Markdown editor styles to _build-discussion.scss.
      * Remove unnecessary import of discussion/utilities/v1-compatibility from _build-discussion.scss.
      * Keep courseware-chromeless.html in sync with courseware.html.
      * Load CSS for discussions on Teams tab.  This makes it possible to remove CSS for discussions from Sass files for "Course" tab.
      * Load js/src/tooltip_manager.js, jquery.autocomplete.js and jquery.autocomplete.css on "Course" tab.
      Tim Krones committed
  10. 30 Sep, 2016 3 commits
  11. 29 Sep, 2016 2 commits
  12. 28 Sep, 2016 1 commit