Julia Eskew
84de6bc6de
Revert "This stage does the following: ( #22692 )"
...
This reverts commit cebeab4348 .
2020-01-14 13:01:21 -05:00
Julia Eskew
cebeab4348
This stage does the following: ( #22692 )
...
- Adds the new field and migration to create the column.
- Makes all writes go to both old and new field.
2020-01-14 10:40:39 -05:00
Nicholas D'Alfonso
3ad963b8a7
AA-3 course dates cleanup
...
-change Important Course Dates to Upcoming Dates
-remove today's date
-left align date, right aling rest of info
2020-01-13 14:58:23 -05:00
Zia Fazal
f9e73da4f7
Merge pull request #22772 from edx/ziafazal/ENT-2524
...
ENT-2524: Unmarked name field of content gating partition for translation
2020-01-10 12:26:17 +05:00
zia.fazal@arbisoft.com
5367af07d8
Unmarked name field of content gating partition
...
Unmarked name field of content gating partition. edX mobile apps expect it in english. If value of name field of content gating partition is not `Feature-based Enrollments` string literal mobile apps ignore gating restriction and try to pull content of the block which cause 404 errors for all those blocks which are gated.
ENT-2524
2020-01-09 16:06:51 +05:00
Matthew Piatetsky
a47e68321e
add coupon code to discount banner
2020-01-08 16:57:04 -05:00
hasnain.naveed
447f873924
ENT-2524 | Added the request META in exception traceback.
...
Only add `PATH_INFO` to log
removed METH from label too
2020-01-07 19:13:53 +05:00
Christian Clauss
6e8b4ccb08
Use ==/!= to compare str, bytes, and int literals
...
Identity is not the same thing as equality in Python so use ==/!= to compare str, bytes, and int literals. In Python >= 3.8, these instances will raise SyntaxWarnings so it is best to fix them now. https://docs.python.org/3.8/whatsnew/3.8.html#porting-to-python-3-8
2020-01-02 19:26:13 +01:00
Matthew Piatetsky
09e62afb99
Merge pull request #22598 from edx/REV-1061
...
[REV-1061] Set discount on order based on discount that was on basket
2020-01-01 22:53:01 -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
David Ormsbee
3f0281dd66
Fix test that assumes 2020 is in the future.
2019-12-31 17:25:02 -05:00
David Ormsbee
2cb2265ffe
Add request caching to reduce ORM queries
...
This adds request caching to the following places:
* course expiration wrapper (displayed in Units)
* offer banner generation (displayed in Units)
* get_enrollment
* user_by_anonymous_id
* youtube_disabled_for_course
On a sample course with edx-val enabled, this reduced the queries
for a large sequence from 450 to 155.
2019-12-30 16:19:25 -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
Zaman Afzal
c07268d1b5
Fix the broken privacy page link url on enterprise login page ( #22528 )
2019-12-30 14:57:28 +05:00
Matthew Piatetsky
2775b67787
Set discount on order based on discount that was on basket
2019-12-27 11:53:56 -05:00
Matthew Piatetsky
3a54df511a
show discount in sidebar and sock
2019-12-17 09:09:19 -05:00
David Ormsbee
aaf4c46645
Add ENABLE_COURSEWARE_SEARCH_FOR_COURSE_STAFF flag
...
Add an LMS feature flag to enable courseware search for course staff
only. TNL-6931
2019-12-05 15:14:26 -05:00
Zia Fazal
b2de1b5214
Merge pull request #22448 from edx/revert-22413-revert-22345-ziafazal/ENT-1849-b
...
Revert "Revert "ENT-1849: Removed EnterpriseMiddleware""
2019-12-05 19:00:15 +05:00
DawoudSheraz
2470d9a0f5
fix logs condition
2019-12-05 11:08:38 +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
DawoudSheraz
871f3bfb7e
conditional logs to find the inconsistent block id in MITx course
2019-11-27 12:28:15 +05:00
Zia Fazal
ec1825c755
Merge pull request #22345 from edx/ziafazal/ENT-1849-b
...
ENT-1849: Removed EnterpriseMiddleware
2019-11-25 17:22:40 +05:00
Matthew Piatetsky
51ea129267
never give users discount unless they've seen the banner
2019-11-22 15:54:59 -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
Matthew Piatetsky
7bed9b4d1f
stop bucketing into discount experiment a week before cyber monday
2019-11-15 11:03:31 -05:00
Manjinder Singh
d6bfa03993
Removing flaky tests ( #22328 )
...
These tests fail intermittently. The related jira ticket to remove flaky test can be found at: https://openedx.atlassian.net/browse/ENT-2479
The tests fail with error log output of: SafeCookieData BWC parse error: 'm3i1v99yuohzsbyjhfp4i9nktjrq4i05'
The error seems to be something to do with safe_cookie_string
2019-11-14 16:29:51 -05:00
Matthew Piatetsky
b0c9662b51
remove discount banner from track selection
2019-11-12 13:28:27 -05:00
Zia Fazal
5b6e0514de
Added caller in to the exception message
...
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.
2019-11-11 19:44:24 +05:00
hasnain-naveed
057f443a26
ENT-2437 | get_enterprise_customer_for_learner method replaced with enterprise_customer_for_request.
2019-11-08 15:47:52 +05:00
Stu Young
e229279f3c
fix invalid choices in toggle annotations ( #22266 )
2019-11-07 15:22:46 -05:00
Matthew Piatetsky
bd76a71019
delete old holdback code
2019-11-07 09:51:39 -05:00
Manjinder Singh
79c9231128
Revert "ENT-2437 | get_enterprise_customer_for_learner method replaced with e…" ( #22248 )
2019-11-05 16:51:44 -05:00
Matthew Piatetsky
6eb5466ee5
Merge pull request #22198 from edx/REV-693
...
[REV-693] Create table to keep track of FBE holdback experiment enrollments
2019-11-04 14:40:26 -05:00
julianajlk
afae1f1d2a
a11y: add role to FPD banner ( #22225 )
...
REV-705
2019-11-04 10:46:53 -05:00
Matthew Piatetsky
8d8626ca1f
address comments
2019-11-01 13:41:01 -04:00
hasnain-naveed
4b827d5be0
ENT-2437 | get_enterprise_customer_for_learner method replaced with enterprise_customer_for_request.
2019-11-01 17:19:56 +05:00
Matthew Piatetsky
c2774083ea
create table that excludes enrollments from FBE
2019-10-31 16:30:52 -04:00
julianajlk
a4ca026c19
add missing parameter to discount_percentage
2019-10-25 16:28:33 -04:00
Calen Pennington
47b8dfae75
Merge pull request #22156 from cpennington/expose-course-duration
...
Expose user course duration in the user metadata
2019-10-25 13:49:14 -04:00
Matthew Piatetsky
9df790cca5
Merge pull request #22123 from edx/REV-728
...
[REV-728] add discount percentage configuration
2019-10-25 10:10:20 -04:00
Calen Pennington
d92dcb28bb
Expose user course duration in the user metadata
2019-10-25 10:02:55 -04:00
Awais Qureshi
82fb16b2f7
BOM-981,983,984
...
Fixing migrations.
2019-10-24 14:53:39 +05:00
Matthew Piatetsky
86bb0cfa2c
add discount percentage configuration
2019-10-23 12:00:34 -04:00
julianajlk
6e0914ad5d
add FPD banner to courseware ( #22113 )
...
REV-980
2019-10-23 09:33:11 -04:00
Zia Fazal
7ccd2a6901
Refactored enterprise unlink code to fix ENT-1890
...
Refactored enterprise unlink code to fix ENT-1890
Fixed quality violations and brokent test
Fixed pylint quality violations
Fixed failing unit test
Fixed broken test after rebasing with master
2019-10-23 11:35:58 +05:00