Skip to content
Snippets Groups Projects
  1. Mar 25, 2021
    • Feanil Patel's avatar
      test: Fix date tests that rely on user preference. · 4f9fe597
      Feanil Patel authored
      The function under test by the StrftimeLocalizedHtmlTest checks the
      timezone in the user preferences of the user making the request.  If we
      don't explicitly set a request here, it will simply use the last Request
      that `crum` cached in the thread local cache.  This broke now
      that we sometimes set the crum request.user to an invalid user in other
      tests.
      
      This change ensures that we have a valid request for these tests as a
      part of the setup of this test class.
      4f9fe597
    • Feanil Patel's avatar
      test: Update query counts. · c2eabf6c
      Feanil Patel authored
      The new WaffleFlag.is_enabled check in middleware increased query counts
      for multiple tests.
      c2eabf6c
    • Feanil Patel's avatar
      feat: Add more detailed request user change logging. · 0714ac5f
      Feanil Patel authored
      The change is behind a WafleFlag and can be turned on to log every time
      the `user` attribute of an instrumented request changes.  This will
      significantly increase log volume so it shouldn't be left on all the
      time but can be turned on to quickly debug issues related to sessions.
      
      Ticket: https://openedx.atlassian.net/browse/ARCHBOM-1718
      0714ac5f
  2. Mar 22, 2021
  3. Mar 19, 2021
Loading