Skip to content
Snippets Groups Projects
  1. Sep 21, 2020
  2. Sep 18, 2020
  3. Sep 17, 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 12, 2020
  6. Aug 04, 2020
  7. Jul 30, 2020
  8. Jul 29, 2020
  9. Jul 24, 2020
  10. Jul 17, 2020
  11. Jul 15, 2020
    • Binod Pant's avatar
      ENT-3007 : round 2 API endpoints for samlproviderconfig and samlproviderdata (#24456) · 167d8f27
      Binod Pant authored
      * ENT-3007 auth/saml/v0/saml/providerdata and auth/saml/v0/saml/providerconfig endpoints
      
      Move code to subfolder for samlproviderconfig
      
      extra comma
      
      undo accidental remove of import
      
      GET works for a single config now
      
      Use ModelViewSet to get all CRUD method. Test still fails
      
      Add auth/saml/v0/providerdata endpoints
      
      fixup reverse and test issue, remove leading caret
      
      just triggering run, why is it failing in CI?
      
      pycodelint fixes
      
      Skip auth tests unless feature is on
      
      Tests for post/put for samlproviderdata
      
      move urls to their own folders
      
      api tests for post samlprovierconfig
      
      create 1 providerconfig test case
      
      lint fixes
      
      lint
      
      lint
      
      cleanup code local urls /samlproviderconfig works
      
      note needed right now
      
      Fix import errors
      
      lint
      
      unused import
      
      wip: first attempt at rbac auth and jwt cookie in test
      
      round 2 with enterprise uuid as url param for samlproviderconfig
      
      improve tests, still dont pass
      
      fix test by using system role, wip other test
      
      fix create test
      
      add get/post tests for providerdata
      
      isort fixes
      
      string lint fix
      
      Cleanup based on feedback round1
      
      move utils to tests package
      
      Move util fn to openedx.feature area
      
      lint
      
      ENT-3007 : Round 2 of work on auth/saml/v0/providerconfig and auth/saml/v0/providerdata endpoints
      
      * Fix test issue use string uuid for permission obj
      
      * snake case changes provider_config
      
      * snake case
      
      * provider_data, tests and lint
      
      * patch and delete tests for providerdata
      
      * snake_case
      
      * snake_case
      
      * snake_case
      
      * make patch test stronger
      
      * 404 if invalid uuid for get param
      
      * common util for validate uuid4
      
      * unused import
      
      * lint fixes for pycodestyle
      
      * 400 when uuid is missing
      
      * 400 instead of 404 for missing uuid
      
      * spell fix
      
      * update docstring for api usage
      
      * docstring clarify
  12. Jul 10, 2020
    • Feanil Patel's avatar
      Revert "ENT-3007 : Add auth/saml/v0/providerconfig|data CRUD endpoints for use... · 5470ce58
      Feanil Patel authored
      Revert "ENT-3007 : Add auth/saml/v0/providerconfig|data CRUD endpoints for use in admin portal (#24298)"
      
      This reverts commit 96ddcdc2.
      5470ce58
    • Binod Pant's avatar
      ENT-3007 : Add auth/saml/v0/providerconfig|data CRUD endpoints for use in admin portal (#24298) · 96ddcdc2
      Binod Pant authored
      * Add auth/samlproviderconfig CRUD endpoints for use in admin portal
      
      Fixes: ENT-3007
      
      * Move code to subfolder for samlproviderconfig
      
      * extra comma
      
      * undo accidental remove of import
      
      * GET works for a single config now
      
      * Use ModelViewSet to get all CRUD method. Test still fails
      
      * Add auth/saml/v0/providerdata endpoints
      
      * fixup reverse and test issue, remove leading caret
      
      * just triggering run, why is it failing in CI?
      
      * pycodelint fixes
      
      * Skip auth tests unless feature is on
      
      * Tests for post/put for samlproviderdata
      
      * move urls to their own folders
      
      * api tests for post samlprovierconfig
      
      * create 1 providerconfig test case
      
      * lint fixes
      
      * lint
      
      * lint
      
      * cleanup code local urls /samlproviderconfig works
      
      * note needed right now
      
      * Fix import errors
      
      * lint
      
      * unused import
      
      * wip: first attempt at rbac auth and jwt cookie in test
      
      * round 2 with enterprise uuid as url param for samlproviderconfig
      
      * improve tests, still dont pass
      
      * fix test by using system role, wip other test
      
      * fix create test
      
      * add get/post tests for providerdata
      
      * isort fixes
      
      * string lint fix
      
      * Cleanup based on feedback round1
      
      * move utils to tests package
      
      * Move util fn to openedx.feature area
      
      * lint
      
      * lint fix
      
      * remove unused import
      96ddcdc2
  13. Jun 29, 2020
  14. Jun 24, 2020
  15. Jun 19, 2020
  16. May 28, 2020
  17. May 01, 2020
  18. Apr 20, 2020
  19. Apr 13, 2020
  20. Apr 08, 2020
  21. Apr 06, 2020
  22. Apr 03, 2020
  23. Feb 26, 2020
  24. Feb 14, 2020
  25. Jan 07, 2020
  26. Jan 02, 2020
  27. Jan 01, 2020
  28. Dec 30, 2019
  29. Dec 02, 2019
  30. Nov 27, 2019
  31. Nov 22, 2019
  32. Nov 19, 2019
    • Zia Fazal's avatar
      Removed EnterpriseMiddleware · e1cb10b4
      Zia Fazal authored
      EnterpriseMiddleware set value of user's enterprise customer in session. In order to get value of enterprise customer it calls `enterprise/api/v1/enterprise-learner` API. Sometimes this middleware is called many times which result in many call to the under lying API and throttling of API causes 429 http errors.
      We are not removing that middleware and storing value of user's enterprise customer in session inside underlying method.
      ENT-1849
      
      Removed pdb statement
      e1cb10b4
  33. Nov 14, 2019
  34. Nov 11, 2019
    • Zia Fazal's avatar
      Added caller in to the exception message · 5b6e0514
      Zia Fazal authored
      Added caller in to the exception message to debug ENT-1849
      Replaced `get_enterprise_learner_data` method call with `enterprise_customer_for_request` to get enterprise customer data from cache or session instead of hitting API.
      5b6e0514
Loading