Brian Beggs
7568e91a76
feat: check for session existance before cache access. ENT-9187.
2024-07-08 18:02:17 -04:00
Sameen Fatima
282d639e32
refactor: simplify code logic for consent_needed_for_course utility ( #30775 )
2022-07-27 16:34:06 +05:00
muhammad-ammar
dd70066644
chore: refine source param in dsc url
2022-06-17 15:05:29 +05:00
Zaman Afzal
ec36d3a949
fix: revert Add Learner pathway progress update signal ( #30598 )
2022-06-16 01:59:40 +05:00
Zaman Afzal
6c6dabaa3c
Feat: Add Learner pathway progress update signal ( #30547 )
...
* feat: Add Learner pathway progress update signal
2022-06-15 00:58:22 +05:00
Feanil Patel
b9131ac1af
Merge pull request #30299 from raccoongang/depr/remove-course-info
...
FC-0001: Remove legacy course info page & related code
2022-06-13 08:23:25 -04:00
muhammad-ammar
415291fd27
feat: add source query param in data sharing consent url
2022-06-13 14:43:51 +05:00
Sagirov Eugeniy
92ca176fde
refactor: Remove legacy course info page & related code
2022-06-05 19:00:05 +03:00
Eugene Dyudyunov
289e682b8f
FC-0001: Remove old EdxRestAPIClient usage across the platform ( #30301 )
...
* refactor: remove EdxRestAPIClient
* test: update tests according to EdxRestAPIClient removal
* fix: remove unused import
2022-05-09 12:48:26 -04:00
Long Lin
9514cb5732
feat: add enterprise course enrollments data to enrollments for support
2022-01-19 10:14:13 -05:00
edX requirements bot
bb20b17428
Python Requirements Update ( #29516 )
...
* chore: Updating Python Requirements
* fix: fix pylint issues
Co-authored-by: Mohammad Ahtasham ul Hassan <mohammad.ahtasham@arbisoft.com >
2021-12-08 14:13:27 +05:00
Usama Sadiq
780a6f3c2d
Revert "chore: install codejail from pypi ( #29481 )" ( #29501 )
...
This reverts commit 21551095ac .
2021-12-02 22:19:15 +05:00
Mohammad Ahtasham ul Hassan
21551095ac
chore: install codejail from pypi ( #29481 )
...
* chore: install codejail from pypi
* chore: Updating Python Requirements
* chore: Updating Python Requirements
* fix: fixed failing tests
* fix: fixed pytest failures
* fix: fixed failing test bug
* Update mocks.py
Co-authored-by: edX requirements bot <testeng+edx-requirements-bot@edx.org >
2021-12-02 17:07:29 +05:00
Adam Stankiewicz
31f66a4f2c
feat: enterprise learner portal access modal ( #27736 )
...
* feat: enterprise learner portal access modal
* fix: quality
* fix: remove log.info
2021-05-27 15:31:27 -04:00
muhammad-ammar
3929d098b6
update cache key for dsc
2021-04-06 17:34:42 +05:00
Awais Qureshi
b5a6580ecc
BOM-2442
...
pyupgrade in enterprise-support.
2021-03-12 12:39:48 +05:00
Awais Qureshi
d24f79a264
BOM-2442
...
pyupgrade in enterprise_support
2021-03-11 14:54:23 +05:00
Aarif
93a4f96e30
replaced unittest assertions pytest assertions ( #26575 )
2021-02-22 16:19:37 +05:00
Zainab Amir
c260f72c2e
VAN-311: Add multiple enterprise support for Authn MFE ( #26526 )
2021-02-18 17:24:44 +05:00
Awais Qureshi
5ea60327b1
BOM-2336
...
Apply pylint-amnesty.
2021-02-04 16:49:47 +05:00
Saleem Latif
dfb36644c9
Upgraded edx-enterprise version to 3.15.0 and updated field name changed in that version.
2020-12-15 19:13:14 +05:00
muhammad-ammar
f19b074927
try to get learner's enterprise information from DB if there is no
...
enterprise customer associated with sso provider id
ENT-3670
2020-12-02 19:49:21 +05:00
Alex Dusenbery
2204caaa6b
ENT-3503 | Adds more unit tests for enterprise_support.api, and one TODO for same.
2020-11-23 11:42:36 -05:00
Kyle McCormick
151bd13666
Use full names for common.djangoapps imports; warn when using old style ( #25477 )
...
* Generate common/djangoapps import shims for LMS
* Generate common/djangoapps import shims for Studio
* Stop appending project root to sys.path
* Stop appending common/djangoapps to sys.path
* Import from common.djangoapps.course_action_state instead of course_action_state
* Import from common.djangoapps.course_modes instead of course_modes
* Import from common.djangoapps.database_fixups instead of database_fixups
* Import from common.djangoapps.edxmako instead of edxmako
* Import from common.djangoapps.entitlements instead of entitlements
* Import from common.djangoapps.pipline_mako instead of pipeline_mako
* Import from common.djangoapps.static_replace instead of static_replace
* Import from common.djangoapps.student instead of student
* Import from common.djangoapps.terrain instead of terrain
* Import from common.djangoapps.third_party_auth instead of third_party_auth
* Import from common.djangoapps.track instead of track
* Import from common.djangoapps.util instead of util
* Import from common.djangoapps.xblock_django instead of xblock_django
* Add empty common/djangoapps/__init__.py to fix pytest collection
* Fix pylint formatting violations
* Exclude import_shims/ directory tree from linting
2020-11-10 07:02:01 -05:00
muhammad-ammar
5adf9fdd8b
store a learners enterprise customer info into request session only if
...
user is authenticated. This is needed to avoid storing `None` as
enterprise customer info in request session.
2020-10-27 19:12:01 +05:00
Alex Dusenbery
3292104470
enterprise_customer_uuid_for_request() should not return a __CACHE_MISS__.
2020-09-29 12:03:33 -04:00
Alex Dusenbery
de277ce46b
Prevent an unbound local variable exception in enterprise_support.api. Add more unit tests for same.
2020-09-22 11:15:17 -04:00
Alex Dusenbery
4ad2df083d
Ensure that get_enterprise_learner_portal_enabled_message() returns None when there is no associated enterprise customer for the given request. Add unit tests for this function.
2020-09-21 12:47:00 -04:00
Alex Dusenbery
4bb1914ec6
ENT-3367 | Show at most 1 Enterprise Learner Portal dashboard link in the header user-menu. Also, guard against no branding config when getting learner portal data.
2020-09-18 10:23:32 -04:00
Brittney Exline
1af80ff205
[ENT-3315] Reduce calls to enterprise-learner endpoint by looking up data from db
2020-08-12 15:24:39 -06:00
HammadAhmadWaqas
11893ad69e
refactored imports from edx-django-utils
2020-04-20 12:11:28 +05:00
HammadAhmadWaqas
b4ebe11a6b
removed get_cache_key and using it from edx-django-utils.
2020-04-13 12:51:39 +05:00
Zaman Afzal
363a75cc99
ENT-2518 Fix Enterprise Login Page not showing to the user ( #22602 )
2020-01-01 15:18:45 +05:00
Feanil Patel
046feb0cf0
Merge pull request #22649 from edx/feanil/fix_pep8
...
Fix all E303 pep8 errors.
2019-12-30 13:32:26 -05:00
Feanil Patel
6e3fe00fff
Fix all E303 pep8 errors.
2019-12-30 12:25:38 -05:00
Feanil Patel
2df8b8226b
Merge pull request #22643 from edx/feanil/2to3_asserts
...
Run `2to3 -f asserts . -w` on edx-platform.
2019-12-30 12:13:42 -05:00
Feanil Patel
9cf2f9f298
Run 2to3 -f future . -w
...
This will remove imports from __future__ that are no longer needed.
https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00
Feanil Patel
70294b0ad2
Run 2to3 -f asserts . -w on edx-platform.
...
https://docs.python.org/3.5/library/2to3.html#2to3fixer-asserts
2019-12-30 10:22:19 -05:00
Zia Fazal
94166afa64
Revert "Revert "ENT-1849: Removed EnterpriseMiddleware""
2019-12-02 11:28:59 +05:00
Zia Fazal
052035bcfd
Revert "ENT-1849: Removed EnterpriseMiddleware"
2019-11-27 19:26:07 +05:00
Zia Fazal
e1cb10b41d
Removed EnterpriseMiddleware
...
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
2019-11-19 10:45:58 +05:00
Ayub khan
298fbdaec2
BOM-894 python3 order mismatch
...
Python3 arguments have different positions as compared to python2
2019-10-09 15:06:27 +05:00
Jeremy Bowman
553d35e53e
Upgrade mock BOM-596 ( #21717 )
2019-09-24 10:14:17 -04:00
Matt Tuchfarber
4e1877670e
Check if enterprise matches site before consent
...
We don't support enterprises with catalogs that span sites, so we can
safely ignore checking for consent when the site a learner is viewing a
course in is different than the enterprise that the learner is linked
to.
2019-06-24 14:30:59 -04:00
Michael Youngstrom
e868c54a18
INCR-176
2019-04-26 15:42:24 -04:00
Hammad Ahmad Waqas
974a937f70
session is replaced with cache to hold data_sharing_consent_needed
...
flag value
added signal to destroy data_sharing_consent_needed flag if user is
is enrolled in enterprise course.
2019-04-05 18:06:54 +05:00
Nimisha Asthagiri
dc56a63e03
Remove deprecated JwtBuilder
...
ARCH-248
2018-10-17 07:43:59 -04:00
Nimisha Asthagiri
02ba5fb0e8
Login service support for JWT Cookies
2018-10-01 13:08:40 -04:00
Eric Fischer
247bb50ed2
s/django.core.urlresolvers/django.urls/g
...
Django 1.10 deprecation fix for Hackathon XIX
Addresses PLAT-1397
2018-06-05 13:59:09 -04:00
Uman Shahzad
87919f4d53
Add Enterprise middleware that injects customer data.
2018-04-21 08:14:52 +05:00