forked from openedx/edx-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #223 from CUCWD/feature.nutmeg/figures
Merge in prior release changes for figures analytics
- Loading branch information
Showing
9 changed files
with
417 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -638,23 +638,65 @@ | |
# Tests are not behind any proxies | ||
CLOSEST_CLIENT_IP_FROM_HEADERS = [] | ||
|
||
#################### BigCommerce Settings ####################### | ||
#################### OpenBadges Settings ####################### | ||
|
||
FEATURES.update({ | ||
# FEATURES['ENABLE_OPENBADGES'] = True | ||
|
||
# Enable BigCommerce feature. | ||
'ENABLE_BIGCOMMERCE': True, | ||
# Be sure to set up images for course modes using the BadgeImageConfiguration model in | ||
# the certificates app. | ||
# BADGR_API_VERSION = "v2" | ||
# BADGR_API_TOKEN_EXPIRATION = 86400 | ||
# BADGR_API_TOKEN = "FymTGk7wQ3hR268JwS00ngkefdA0GR" # "0WVtn1RWangTSBqf5DDNvEdMTCvSL0" | ||
# BADGR_API_REFRESH_TOKEN = "F0HDDPNHK1ZBnSVXpMYHslRiD6Qdir" # Ur7ZWamo8pwaPkK3dim124ak7c1YPG" | ||
|
||
}) | ||
# BADGR_USERNAME = "[email protected]" | ||
# BADGR_PASSWORD = "Ca2ves2018" | ||
# BADGR_TOKENS_CACHE_KEY = "badgr_api_token_cache" | ||
BADGR_API_TOKEN_CACHE = 'default' | ||
|
||
# Do not add the trailing slash here. | ||
# BADGR_BASE_URL = "https://api.badgr.io" | ||
# BADGR_ISSUER_SLUG = "abcdefghijklmnopqrstuv" # This override defined in Site Configuration | ||
|
||
# Number of seconds to wait on the badging server when contacting it before giving up. | ||
# Already set in edx-platform/lms/envs/common.py | ||
# BADGR_TIMEOUT = 10 | ||
|
||
# Only for v1 Badgr API | ||
# BADGR_API_NOTIFICATIONS_ENABLED = True | ||
|
||
# BADGR_PUBLIC_URL = "https://badgr.io" | ||
|
||
# if FEATURES.get('ENABLE_OPENBADGES'): | ||
# course_badges_templates_dir = OPENEDX_ROOT / 'features' / 'course_badges' / 'templates' | ||
# if course_badges_templates_dir not in MAKO_TEMPLATE_DIRS_BASE: | ||
# MAKO_TEMPLATE_DIRS_BASE.insert(0, course_badges_templates_dir) | ||
|
||
# BADGR_ENABLE_NOTIFICATIONS = True | ||
|
||
#################### BigCommerce Settings ####################### | ||
|
||
FEATURES['ENABLE_BIGCOMMERCE'] = True | ||
|
||
if FEATURES.get('ENABLE_BIGCOMMERCE'): | ||
BIGCOMMERCE_APP_ACCESS_TOKEN = "rg2zptq3s9x1nzh8sttgy8zcjgd9gyu" | ||
BIGCOMMERCE_APP_CLIENT_ID = "6ms4rvrkhnv5m3h1o582mtqb7wzixyr" | ||
BIGCOMMERCE_APP_CLIENT_SECRET = "385d434a82fe40cd838ad5891bdbc1548209547112f1e81c4b16bc2842d1a329" | ||
BIGCOMMERCE_APP_STORE_HASH = "1nol3cto8" | ||
BIGCOMMERCE_APP_STORE_URL = "https://educateworkforce-development.mybigcommerce.com" | ||
|
||
INSTALLED_APPS.append('bigcommerce') | ||
|
||
#################### OpenBadges Settings ####################### | ||
INSTALLED_APPS.append('social_auth_backend_bigcommerce') | ||
|
||
BADGR_API_TOKEN_CACHE = 'default' | ||
##### Third-party auth options | ||
# Order of AUTHENTICATION_BACKENDS matters. See https://docs.djangoproject.com/en/2.2/topics/auth/customizing/#specifying-authentication-backends # lint-amnesty, pylint: disable=line-too-long | ||
################################################ | ||
if FEATURES.get('ENABLE_THIRD_PARTY_AUTH'): | ||
tmp_backends = [ | ||
'social_auth_backend_bigcommerce.backend.BigCommerceCustomerDefaultAuth', | ||
'social_auth_backend_bigcommerce.backend.BigCommerceCustomerTrustworksAuth', | ||
] | ||
|
||
AUTHENTICATION_BACKENDS = list(tmp_backends) + list(AUTHENTICATION_BACKENDS) | ||
del tmp_backends |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -502,7 +502,8 @@ edx-opaque-keys[django]==2.3.0 | |
# openedx-events | ||
# ora2 | ||
# xmodule | ||
edx-organizations==6.11.1 | ||
# Using our own CUCWD verison for EducateWorkforce | ||
# edx-organizations==6.10.0 | ||
# via -r requirements/edx/base.in | ||
edx-proctoring==4.10.2 | ||
# via | ||
|
@@ -1142,3 +1143,11 @@ zipp==3.8.0 | |
|
||
# The following packages are considered to be unsafe in a requirements file: | ||
# setuptools | ||
|
||
# EducateWorkforce specific packages. This was manually added because `make upgrade` was causing a lot of packages to update. This limits the Python package changes for the release. | ||
-e git+https://github.com/CUCWD/[email protected]#egg=bigcommerce==0.22.2 | ||
# via -r ./requirements/edx/private.txt | ||
-e git+https://github.com/CUCWD/[email protected]#egg=edx-organizations==6.10.0-cucwd-maple.1 | ||
# via -r ./requirements/edx/private.txt | ||
-e git+https://github.com/CUCWD/[email protected]#egg=social-auth-backend-bigcommerce==0.1.0-maple.1 | ||
# via -r ./requirements/edx/private.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -617,7 +617,8 @@ edx-opaque-keys[django]==2.3.0 | |
# openedx-events | ||
# ora2 | ||
# xmodule | ||
edx-organizations==6.11.1 | ||
# Using our own CUCWD verison for EducateWorkforce | ||
# edx-organizations==6.10.0 | ||
# via -r requirements/edx/testing.txt | ||
edx-proctoring==4.10.2 | ||
# via | ||
|
@@ -1649,7 +1650,9 @@ zipp==3.8.0 | |
# setuptools | ||
|
||
# EducateWorkforce specific packages. This was manually added because `make upgrade` was causing a lot of packages to update. This limits the Python package changes for the release. | ||
-e git+https://github.com/CUCWD/[email protected]#egg=bigcommerce==0.22.2 | ||
# via -r ./requirements/edx/private.in | ||
-e git+https://github.com/CUCWD/[email protected]#egg=social-auth-backend-bigcommerce==0.1.0-maple.1 | ||
# via -r ./requirements/edx/private.in | ||
-e git+https://github.com/CUCWD/[email protected]#egg=bigcommerce==0.22.2 | ||
# via -r ./requirements/edx/private.txt | ||
-e git+https://github.com/CUCWD/[email protected]#egg=edx-organizations==6.11.1 | ||
# via -r ./requirements/edx/private.txt | ||
-e git+https://github.com/CUCWD/[email protected]#egg=social-auth-backend-bigcommerce==0.1.0-maple.1 | ||
# via -r ./requirements/edx/private.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
-e git+https://github.com/CUCWD/[email protected]#egg=bigcommerce==0.22.2 | ||
-e git+https://github.com/CUCWD/[email protected]#egg=social-auth-backend-bigcommerce==0.1.0-maple.1 | ||
|
||
# Organizations (reworked for Figures) | ||
-e git+https://github.com/CUCWD/[email protected]#egg=edx-organizations==6.10.0-cucwd-maple.1 |
Oops, something went wrong.