Skip to content
Snippets Groups Projects
  1. Sep 23, 2020
  2. Sep 18, 2020
  3. Sep 16, 2020
  4. Sep 14, 2020
    • Régis Behmo's avatar
      Simplify hack to obtain waffle module names · 307457a2
      Régis Behmo authored
      Instead of going up the stacktrace to find the module names of waffle
      flags and switches, we manually pass the module __name__ whenever the
      flag is created. This is similar to `logging.getLogger(__name__)`
      standard behaviour.
      
      As the waffle classes are used outside of edx-platform, we make the new
      module_name argument an optional keyword argument. This will change once
      we pull waffle_utils outside of edx-platform.
      
      Note that the module name is normally only required to view the list of
      existing waffle flags and switches. The module name should not be
      necessary to verify if a flag is enabled. Thus, maybe it would make
      sense to create a `add` class methor similar to:
      
          class WaffleFlag:
              @classmethod
              def add(cls, namespace, flag, module):
                  instance = cls(namespace, flag)
                  cls._class_instances.add((instance, module))
      307457a2
  5. Aug 14, 2020
  6. Aug 06, 2020
  7. Jul 22, 2020
    • David Ormsbee's avatar
      Make Blocks API and Dates mobile views non-atomic. · 96ea413a
      David Ormsbee authored
      These are expensive, read-only web requests. Unfortunately,
      middleware adds writes, and we currently run with view-level
      transactions enabled by default. Holding those long transactions
      open has caused extra load on the database and been our largest
      sources of django.db.utils:OperationError exceptions.
      
      This has been particularly noticeable as we start deploying the
      new Courseware MFE, which uses the BlocksInCourseView more
      frequently.
      96ea413a
  8. Jul 09, 2020
  9. Jul 01, 2020
  10. Jun 29, 2020
    • Michael Terry's avatar
      AA-177: Add masquerading for course home MFE · 3030efec
      Michael Terry authored
      - Looks at masquerading config for dates, outline, metadata, and
        celebration APIs in course_home_api / courseware_api.
      - Consolidates and cleans up places we check whether masquerading
        gives us full access to a course.
      3030efec
  11. Jun 23, 2020
  12. May 14, 2020
  13. May 04, 2020
  14. May 01, 2020
  15. Apr 03, 2020
  16. Apr 01, 2020
    • Dillon Dumesnil's avatar
      Update the LMS courses API for staff permissions · 78a1b835
      Dillon Dumesnil authored
      We want to allow staff to see all courses in the LMS.
      This changes the behavior from staff being treated like
      an AnonymousUser (unless an username query parameter is
      provided) to being treated like staff.
      
      I also added in some tests for the other paths in this
      function that did not seem to be tested.
  17. Mar 11, 2020
    • adeelehsan's avatar
      Fixed pagination. · 98cc0b24
      adeelehsan authored
      Before getting data validate the page number
      on the current number of pages
      98cc0b24
  18. Mar 03, 2020
    • Michael Terry's avatar
      Add ExperimentWaffleFlag · e724a4bc
      Michael Terry authored
      This is a helpful class when running an experiment, to help
      bucket users and keep track of which enrollments to consider
      as part of the experiment.
      
      AA-53
      e724a4bc
  19. Feb 27, 2020
  20. Feb 21, 2020
  21. Jan 31, 2020
    • Robert Raposa's avatar
      add course_ids api · 9fa54433
      Robert Raposa authored
      Adds a course_ids api that can filter by user role, since the courses
      api could not perform well enough for this, and returned much more
      data than we need.
      
      Additionally, adds a LazyPageNumberPagination to provide more accurate
      counts in the pagination response when using LazySequence with the
      queryset.
      
      BOM-897
      9fa54433
  22. Jan 29, 2020
    • Feanil Patel's avatar
      Remove the role parameter from the courses api. · 79d097d3
      Feanil Patel authored
      BOM-1228
      
      The api is already not very performant and trying to limit it to only
      show courses where you are staff causes the code to iterate over almost
      all the courses and times out before it returns any results to the user.
      
      The plan is to build a different api for the thing we need that will
      just provide the course IDs for courses where you are staff and sholud
      be much faster.
      79d097d3
  23. Jan 28, 2020
  24. Jan 08, 2020
    • aarif's avatar
      updated the django-waffle to support django 2.2 · 79bf0894
      aarif authored
      made changes to test with previous version of django-waffle
      
      updated the query count to test
      
      testing with version 0.13
      
      testing with version 0.14
      
      testing with version 0.15
      
      added version 0.14
      
      updated the django-waffle version to use 0.18
      
      updated the django-waffle version to use 0.16
      
      updated the query counts to pass tests
      
      ran make upgrade
      
      updated the django-waffle to support django 2.2
      
      made changes to test with previous version of django-waffle
      
      updated the query count to test
      
      testing with version 0.13
      
      testing with version 0.14
      
      testing with version 0.15
      
      added version 0.14
      
      updated the django-waffle version to use 0.18
      
      updated the django-waffle version to use 0.16
      
      updated the query counts to pass tests
      
      removed the pdb statements
      
      ran make upgrade
      79bf0894
    • Alex Dusenbery's avatar
  25. Dec 30, 2019
  26. Dec 12, 2019
  27. Dec 10, 2019
  28. Nov 07, 2019
  29. Nov 06, 2019
Loading