Calen Pennington
be5ca3dedd
Add a test that shows that CourseModes aren't deleted when CourseOverview versions are updated
2020-01-16 12:07:27 -05:00
Calen Pennington
675b8c0d71
CourseOverviews may be deleted, but we don't want to delete related objects
2020-01-15 15:23:51 -05:00
Zulqarnain
cf58da6ee0
Update assertRedirects usage
2020-01-08 14:35:40 +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
David Ormsbee
a4b64c3a79
Merge pull request #21166 from open-craft/guruprasad/fix-courseenrollment-mode-default
...
[BB-1506] Use a callable as the default value for CourseEnrollment.mode
2019-12-26 10:25:27 -05:00
Dillon Dumesnil
7165eeff44
DISCO-1522: check if enrolled before congrats message
...
This helps out the Verified Only case where the user
is not first enrolled as an audit learner.
2019-12-18 19:54:28 +00:00
Guruprasad Lakshmi Narayanan
6f524ce223
Use a callable as the default value for CourseEnrollment.mode
...
The previous behaviour of using a variable causes Django to complain
about changes not reflected in a migration when the default course
mode slug is changed.
2019-12-09 12:26:07 +05:30
Ned Batchelder
1d6db9bccb
Merge pull request #22271 from eduNEXT/lmm/coursemodeladmin
...
Improve load times of Django Admin - CourseMode
2019-11-14 11:57:36 -05:00
Luis Moreno
b514c9d8d1
Change courses field from select to input
2019-11-13 13:19:12 -04:00
Matthew Piatetsky
b0c9662b51
remove discount banner from track selection
2019-11-12 13:28:27 -05:00
adeelehsan
1adc01b45c
Allow certification regenration for existing honor certificates
...
staff should be able to regenerate certificates for the students
who have already earned the certificate using honor mode
Prod-612
2019-11-07 14:08:20 +05:00
julianajlk
afae1f1d2a
a11y: add role to FPD banner ( #22225 )
...
REV-705
2019-11-04 10:46:53 -05: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
Ayub
8cc509e448
Merge pull request #22107 from edx/BOM-949
...
BOM-949
2019-10-25 11:01:51 +05:00
Manjinder Singh
a384e753fd
BOM-933: Fix type mismatches in various migrations ( #22112 )
...
* Fix type mismatches in the course_modes migrations
* Fix type mismatches in the course_action_state migrations
* Fix type mismatches in the schedules migrations
* Fix type mismatches in grades migrations
* Fix type mismatches in video_pipeline
* Fix type mismatches in api_admin
* Fix mismatches in credential migrations
2019-10-24 11:42:39 -04:00
Ayub khan
897bd25b01
BOM-949
...
student: Explicitly Set fields to unicode to avoid migration
2019-10-24 13:16:57 +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
Feanil Patel
9946fd3918
Merge pull request #22099 from edx/revert-22058-julianajlk/REV-980/first-purchase-discount-courseware
...
Revert "add first purchase discount to courseware (#22058 )"
2019-10-22 09:39:08 -04:00
Feanil Patel
aa25b4a365
Merge pull request #22097 from edx/feanil/fix_sandbox_issues
...
Feanil/fix sandbox issues
2019-10-21 14:08:29 -04:00
julianajlk
98f907f23c
Revert "add first purchase discount to courseware ( #22058 )"
...
This reverts commit 059b619794 .
2019-10-21 13:57:18 -04:00
julianajlk
059b619794
add first purchase discount to courseware ( #22058 )
...
REV-980.
* moved get_first_purchase_offer_banner_fragment to Discounts utils.py
* added banner wrapper method
* updated banner with time limit
2019-10-21 13:56:38 -04:00
Feanil Patel
798dde2156
Fix type mismatches in the course_modes migrations.
...
Mixing byte and unicode strings causes migrations to fail.
2019-10-21 10:56:50 -04:00
Matthew Piatetsky
f6d0bf77df
check if discount expired
2019-10-16 11:32:27 -04:00
Ayub khan
5c47a3b425
BOM Project
...
Updated __unicode__ to __str__
2019-09-25 18:31:54 +05:00
Ayub khan
7d5f66853d
BOM-647
...
python3 compatibility
2019-09-19 18:47:43 +05:00
Ayub khan
8a95a8e520
BOM-95
...
assertItemsEqual with six.assertCountEqual
2019-08-21 17:01:40 +05:00
Christie Rice
3d062aab62
REVMI-354 Add enroll_in_course permission ( #21243 )
...
* REVMI-354 Add enroll_in_course permission
* Fix test
2019-08-01 08:37:41 -04:00
uzairr
07821927e2
Add credit modein support enrollment tool.
...
Currently, enrollment support tool is only allowing support members
to change course enrollment only one of the two modes i.e. audit and
verified.To move a learner other than these modes,they need to ping
devops.To broaden the scope of enrollment support tool,changes have
been done so that enrollment would be changed to other modes as well.
PROD-305
2019-07-19 18:14:35 +05:00
Emma Green
c4ae093e75
remove discount banner display flag
2019-06-28 14:46:21 -04:00
Ned Batchelder
b3a731550c
Fix problems that drf-yasg uncovered.
...
These were originally fixed individually, but had to be reverted, and
are now combined in one commit. The originals were:
7b9040f6b0 This enum was backwards
8774ff1f9b Use ref_name to disambiguate serializers that drf-yasg would otherwise assume are the same.
8a44397139 Is this field missing because it is None?
4a1154a7ca Give a safer buffer for clearing the rate limiting
64c47856dd DRF 3.7.4 changed how you delegate to another view, so don't
7359ca4fb2 Is this right? It fixes two tests
fdd66e5390 Adjust the expected error message for DRF 3.7.7
9257f68fd8 The default TIME_ZONE should be UTC
2019-06-21 18:04:15 -04:00
Calen Pennington
e37e7e67fb
Add metrics and logging around track selection rendering without enrollment
2019-06-21 13:15:14 -04:00
Hassan Javeed
6d14f288e5
Added history to CourseMode
...
DE-1557
2019-06-20 19:04:26 +05:00
Ned Batchelder
39c7a2db7c
Revert "Use drf-yasg for Open API documentation"
2019-06-11 16:05:00 -04:00
Ned Batchelder
8774ff1f9b
Use ref_name to disambiguate serializers that drf-yasg would otherwise assume are the same.
2019-06-10 15:27:39 -04:00
Matthew Piatetsky
ce5b976f5e
update local currency code
2019-06-05 15:46:16 -04:00
Matthew Piatetsky
ad77392f8d
add discount banner to track selection
2019-06-03 14:18:17 -04:00
Waheed Ahmed
2c80a76f8e
Add feature flag to disable honor mode certificates.
...
Added a feature flag to disable honor mode certificates for
edx.org, by default set to false to allow honor mode certificates
for open community.
PROD-269
2019-05-20 12:53:22 +05:00
Waheed Ahmed
98c286a009
Revert "Making honor code not eligible for Certificate"
...
This reverts commit 25130ae3c8 .
2019-05-13 15:39:35 +05:00
Kyle Mulka
b2e6ed0488
incr-205 ran modernize on common/djangoapps/course_modes ( #20465 )
2019-05-08 13:35:40 -04:00
Dave St.Germain
0e590c0f7e
Moved these functions out of helpers because they're not needed elsewhere
2019-04-24 15:53:24 -04:00
Dave St.Germain
27437bc03f
Ran python-modernize
2019-04-23 15:29:27 -04:00
Dave St.Germain
a5e5591262
Automatically add master's to the group access of verified content
2019-04-23 14:14:32 -04:00
Michael Roytman
f7d0753210
remove enroll CTA on course homepage for logged out users visiting a Master's only course
2019-04-16 16:05:56 -04:00
Alex Dusenbery
d134a435d5
Add get_queryset method to CourseModesView; cleanup tests again
2019-04-05 16:12:35 -04:00