1. 20 Mar, 2014 1 commit
  2. 19 Mar, 2014 1 commit
  3. 12 Mar, 2014 1 commit
  4. 11 Mar, 2014 1 commit
  5. 26 Feb, 2014 1 commit
  6. 20 Feb, 2014 1 commit
  7. 18 Feb, 2014 1 commit
  8. 13 Feb, 2014 1 commit
    • Check for forum data errors in LMS · 9ae6bb0b
      Some messages generated by the comments service are not readily
      translated because they come from third-party libraries. Thus, we plan
      to try to avoid showing any comments service generated message to the
      user. This check preempts the only end-user-visible CS-generated error
      message that we are presently aware of.
      Greg Price committed
  9. 12 Feb, 2014 2 commits
  10. 10 Feb, 2014 1 commit
  11. 07 Feb, 2014 1 commit
    • Avoid requesting unnecessary thread responses · bc0ca63f
      The front-end code for rendering a thread always makes an AJAX request
      for the resopnses, regardless of how the thread was accessed (directly
      by URL or by selecting it from the thread list). Previously, when
      a user accessed a thread directly by URL, the LMS would initially
      request the thread from the comments service with responses, but that
      response data was never actually used. Now, the responses are not
      fetched with that initial query.
      Greg Price committed
  12. 31 Jan, 2014 1 commit
    • Make mako template lookups pluggable. · 0a1ed11d
      This code adds the ability to add Mako template lookup directories on
      the fly, allowing third party add-ons to contribute their own Mako templates.
      A new API function for registering Mako templates is introduced::
      
          from edxmako import add_lookup
      
          add_lookup('main', '/path/to/templates')
      
          # Or, specify a package to lookup using pkg_resources.  This will
          # add the 'templates' directory inside the current package:
          add_lookup('main', 'templates', package=__name__)
      Chris Rossi committed
  13. 30 Jan, 2014 3 commits
    • Unicode changes to support QRF · bc30addf
      fixing unit tests
      
      fixing merge error
      
      fixing xqueue submission issue with unicode url (trial 0.1)
      
      fixing fotmats as commented upon
      
      removing yaml file language selection
      
      Unicode changes to support QRF
      
      removed unnecessary pass in modulestore/init.py
      
      fixing merge error
      
      fixing fotmats as commented upon
      
      removing yaml file language selection
      
      fixing pep8 violations
      
      - fixing pylint violations
      
      pylint violation
      
      fixing line spaces and formats
      
      ignore pylint E1101
      
      remove empty line
      
      fixing pylint violations
      
       pep8 violations
      
      bulk mail unicode/decode
      
      fix migration error
      
      fix pep8 just to push again
      
      more unicode/decode
      Final changes to comments and error messages.
      Jay Zoldak committed
    • Allow LMS to do forum thread response pagination · fba6f2eb
      The relevant parameters and data are merely passed through between the
      front end and comments service.
      Greg Price committed
    • improve error reporting for reload_forum_users cmd · 5546a7fe
      If this management command fails it's tough to figure out why without
      seeing the text from the exception.  Luckily comment service does
      return useful feedback, we just have to show it.  This one-line
      change just add the exception text to the error message.
      
      Before (with spurrious debug msgs removed):
      
          sefk@util1:~$ ./manage.sh reload_forum_users Anthonyhubendurance
          update user info to discussion failed for user with id: Anthonyhubendurance
      
      After:
      
          sefk@util1:~$ ./manage.sh reload_forum_users Anthonyhubendurance
          update user info to discussion failed for user with id: Anthonyhubendurance, error=u'["Email is already taken"]'
      
      No unit testing (sorry) added since this doesn't have coverage
      already, and it's just a simple error case.
      Sef Kloninger committed
  14. 21 Jan, 2014 1 commit
  15. 15 Jan, 2014 1 commit
  16. 14 Jan, 2014 2 commits
  17. 07 Jan, 2014 1 commit
  18. 06 Jan, 2014 1 commit
  19. 12 Dec, 2013 1 commit
  20. 10 Dec, 2013 1 commit
  21. 09 Dec, 2013 1 commit
  22. 05 Dec, 2013 1 commit
  23. 03 Dec, 2013 2 commits
  24. 08 Nov, 2013 2 commits
  25. 01 Nov, 2013 1 commit
    • Remove label from forum posts by global staff · c4cdb457
      The motivation for this change is performance. The forums UI code gets
      the list of users for each role and renders the staff label based on
      those lists. The list for the staff role is expensive to compute because
      there is no index on the is_staff attribute, and we cannot create one
      because the User model is built into django.
      
      Users with is_staff=True are still assigned the Moderator role upon
      enrolling in a course, so this change will have no practical effect
      except that a user who is granted staff privileges after enrolling in a
      course will have to be made a Moderator in order for their posts to be
      labeled.
      
      Additionally, the UI did not use the list of users with the Student
      role, so that list has been removed as well.
      Greg Price committed
  26. 30 Oct, 2013 1 commit
  27. 28 Oct, 2013 5 commits
    • Improve performance of forum views · e6ecb6ec
      Avoid recomputing course module information for every thread, which
      should dramatically improve the performance of high-percentile latency
      queries.
      
      JIRA: FOR-250
      Greg Price committed
    • Remove an unnecessary global · a7d769df
      The _DISCUSSIONINFO global was originally used as a cache, but has since
      lost that capability and is therefore just harmful. This is a precursor
      to more refactoring that will improve the performance of the forums and
      may itself provide some performance improvement because it separates the
      computation done by two functions that each previously computed the
      entirety of _DISCUSSIONINFO.
      Greg Price committed
    • Add forum utility code unit test coverage · 545701d5
      This is in preparation for significant refactoring of the code in
      question.
      Greg Price committed
    • Remove unused code · 54ad4110
      Greg Price committed
    • Improve forum error handling · 7abaecd8
      CommentClientError now has sane subclasses that are meaningfully
      distinct, and each subclass is handled appropriately. Errors raised by
      the requests library are no longer handled by turning them into
      CommentClientErrors, since there is no meaningful handling we can do,
      and this way we will get more visibility into why errors are occurring.
      Also, HTTP status codes from the comments service indicating client
      error are correctly passed through to the client.
      Greg Price committed
  28. 22 Oct, 2013 2 commits
  29. 16 Oct, 2013 1 commit
    • Log all comments service requests · bd477581
      Logging the duration of each request will allow us to determine
      whether there is a significant difference in the latency reported by
      the comments service and that observed by the LMS. Each request will
      be assigned a unique identifier to allow correlation of the reported
      latency on each end.
      Greg Price committed