Muhammad Ammar
9d7e804236
Merge pull request #27255 from edx/ammar/update-cache-key-for-dsc
...
update cache key for DSC
2021-04-07 15:27:42 +05:00
Zaman Afzal
194f29ca55
ENT4134 Add the support for multiple IDPs ( #27073 )
...
* ENT4134 Add the support for multiple IDPs
2021-04-06 23:27:20 +05:00
muhammad-ammar
3929d098b6
update cache key for dsc
2021-04-06 17:34:42 +05:00
Usama Sadiq
aa618c460c
refactor: remove unused-imports ( #27083 )
2021-03-19 22:42:14 +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
Carla Duarte
7ecb393deb
AA-510: a11y fix for learner dashboard enterprise link
2021-03-02 11:37:10 -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
Alexander Sheehan
aaa375077c
replace bulk transmission task to intended single learner task
2021-02-09 11:55:22 -05:00
Soban Javed
5199bf7acb
Replace task decorator with shared_task in openedx
2021-02-04 18:35:38 +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
Alexander Sheehan
6ef93078f9
adding unit tests for assessment level reporting and hashing cache key.
2020-12-09 10:07:46 -08:00
Alexander Sheehan
66e0f6bf5d
caching enterprise learner lookup
2020-12-08 14:51:40 -08:00
Alexander Sheehan
440773a72d
Adding signals and receivers for assessment level reporting to integrated channels
2020-12-08 14:51:40 -08:00
Régis Behmo
a16cd71046
Start waffle namespace deprecation
...
By explicitly importing the legacy namespace classes, we make it clear
that we are using soon-to-be-deprecated classes. We will then be able to
start removing the legacy classes, one module at a time.
2020-12-03 16:06:14 +01:00
Muhammad Ammar
60f30a9aa5
Merge pull request #25734 from edx/ammar/ent-3670-get-learners-enterprise-info-from-db
...
try to get learner's enterprise information from DB if there is no enterprise customer associated with sso provider id
2020-12-02 21:02:38 +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
muhammad-ammar
b9e87817f8
add logs for dsc flow to identify why None is being returned as
...
enterprise customer uuid for a learner even though the leaner has a
valid active enerprise present
ENT-3670
2020-12-02 14:08:30 +05:00
Muhammad Ammar
c508d42a5c
Revert "extract a learners active enterprise existing details"
2020-12-01 22:29:59 +05:00
muhammad-ammar
a831520b8e
extract a learners active enterprise existing details
...
ENT-3670
2020-12-01 12:37:17 +05:00
Alex Dusenbery
341c1c98e5
ENT-3503 | Add unit tests to cover 100% of openedx.features.enterprise_support.utils, all in a single test file.
2020-11-23 14:52:41 -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
Robert Raposa
8eef18710d
set code_owner for celery tasks
...
ARCHBOM-1260
Co-authored-by: Tim McCormack <tmccormack@edx.org >
2020-11-17 15:33:33 -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
dd732c4f68
Merge pull request #25514 from edx/ammar/update-dsc-cache-key
...
refactor dsc logs to avoid splunk noise
2020-11-04 19:17:26 +05:00
muhammad-ammar
f0aae8ecf5
* update DSC needed cache key to invalidate existing stored values
...
* refactor DSC logs
ENT-3494
2020-11-04 17:52:02 +05:00
Régis Behmo
4586002956
Import waffle classes from edx_toggles instead of waffle_utils
...
Those classes were ported to edx_toggles. The imports remain in
waffle_utils.__init__ for backward compatibility.
2020-11-03 19:25:37 +01:00
Régis Behmo
2307dff4c9
Deprecate WaffleFlag.override method
...
This allows us to get rid of waffle_utils' custom WaffleFlag method.
2020-11-03 19:25:37 +01:00
muhammad-ammar
2cc0688e1c
convert enterprise customer uuid to str before comparison
...
ENT-3494
2020-11-03 00:20:05 +05:00
muhammad-ammar
5f04fd35a0
more logs for data sharing consent
...
ENT-3494
2020-11-02 20:24:44 +05:00
muhammad-ammar
b8a315933f
add log to get insights about why data sharing consent is not required
2020-10-29 20:57:27 +05:00
Muhammad Ammar
1d28f5d60f
Merge pull request #25447 from edx/ammar/enterprise-customer-session-storage
...
update logic to store learner's enterprise customer info in request session
2020-10-27 19:35:37 +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
Mike OConnell
0dc494360d
Correcting error with undeclared local ( #25422 )
...
Previous rollback introduced this error while resolving merge
conflicts. Line declaring the local variable was accidentally
omitted.
ENT-3494
2020-10-23 12:48:59 -04:00
Mike OConnell
64ee4a8972
Rolling back previous changes ( #25418 )
...
Rolling back previous changes after unexpected behavior
when testing in stage.
ENT-3494
2020-10-23 07:09:09 -04:00
Mike OConnell
b4f7647b40
Moco/ent 3494 ( #25408 )
...
* Added logging statements around DSC
Added logging statements to help diagnose failures in presenting
Data Sharing Consent views to learners who have not consented to
data sharing, but their enterprise requires it
ENT-3494
* Yet more logging statements around DSC
Added more logging statements to help diagnose failures in presenting
Data Sharing Consent views to learners who have not consented to
data sharing, but their enterprise requires it. These new logs provide
further detail into the call to the enterprise API to check for consent.
This changelist slightly changes the logic to determine if a consent
check is needed. The changes involve breaking out the conditions of the
iterated checks on the learner details to allow for more granular logging.
ENT-3494
2020-10-22 21:33:16 -04:00
Jeff Chaves
d25d4038fd
ENT-3460: updating usage of EnterpriseCustomerBrandingConfiguration, edx-enterprise 3.8.42 ( #25376 )
...
* bumping enterprise version
* adding pillow constraint
* updating usage of EnterpriseCustomerBrandingConfiguration
2020-10-19 16:42:16 -04:00
Alex Dusenbery
98719faca8
Revert "bumping enterprise version to 3.8.35 ( #25342 )"
...
This reverts commit 5bf54d696a .
2020-10-14 19:56:55 -04:00
Jeff Chaves
5bf54d696a
bumping enterprise version to 3.8.35 ( #25342 )
...
* bumping enterprise version
* fixing platform tests broken by branding config changes
2020-10-14 14:42:39 -04:00
Mike OConnell
fa435e697b
Added logging statements around DSC ( #25320 )
...
Added logging statements to help diagnose failures in presenting
Data Sharing Consent views to learners who have not consented to
data sharing, but their enterprise requires it
ENT-3494
2020-10-12 10:42:43 -04:00
Calen Pennington
4456269508
Merge pull request #25305 from cpennington/always-reference-task-packages-absolutely
...
Always import task packages by absolute paths
2020-10-08 14:41:00 -04:00
Calen Pennington
2714da86a4
Always import task packages by absolute paths
...
This follows the recommendation in the Celery documentation so as to
not confuse automatic task name generation.
Docs: https://docs.celeryproject.org/en/stable/userguide/tasks.html#automatic-naming-and-relative-imports
2020-10-08 14:10:17 -04:00
HammadAhmadWaqas
215d004930
Handle Client Error for the API called in refund_order_voucher signal.
2020-10-07 11:28:26 +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
Hammad Ahmad Waqas
3b23a9b227
Merge pull request #25003 from edx/hammad/ENT-3337
...
catch signal UNENROLL_DONE signal and call /api/v2/enterprise/coupons…
2020-09-22 19:51:35 +05: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